]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r326392:
authorhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 4 Dec 2017 09:36:47 +0000 (09:36 +0000)
committerhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 4 Dec 2017 09:36:47 +0000 (09:36 +0000)
commit2c14bf327957247bb9e7b1abc96c56a4ad239b9b
tree28abf3777355bcc49c2694392922f740c12b973f
parent4f8759e9aad15258565d964d2095eb5cf1dc1573
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/9@326513 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/net/if_vlan_var.h