]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r326392:
authorhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 4 Dec 2017 09:27:36 +0000 (09:27 +0000)
committerhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 4 Dec 2017 09:27:36 +0000 (09:27 +0000)
commitaab941226093f5067d361ff3a001c34316ae96e0
treefdf98dfc43e2cc821eb8ac55f42af453b683a97e
parenteb086596e994fa79256949e43396dd340528476f
MFC r326392:
Properly define the VLAN_XXX() function macros to avoid miscompilation when
used inside "if" statements comparing with another value.

Detailed explanation:
"if (a ? b : c != 0)" is not the same like "if ((a ? b : c) != 0)"
which is the expected behaviour of a function macro.

Affects:
toecore, linuxkpi and ibcore.

Reviewed by: kib
Sponsored by: Mellanox Technologies

git-svn-id: svn://svn.freebsd.org/base/stable/10@326512 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/net/if_vlan_var.h