net/i40e: fix log error
authorBeilei Xing <beilei.xing@intel.com>
Tue, 5 Jul 2016 06:10:03 +0000 (14:10 +0800)
committerBruce Richardson <bruce.richardson@intel.com>
Fri, 8 Jul 2016 20:50:46 +0000 (22:50 +0200)
commit3a70ade568307a5700036a81766045aae2501345
tree738a9fe745f3ac78ee6e1e988f6b4eae3f229aa1
parent0bd7e8d5dca34c8edda5c10c7885acd077a97d24
net/i40e: fix log error

The condition, "(pf->flags | I40E_FLAG_VMDQ)" will always be true,
regardless of the value of the flags operand, because I40E_FLAG_VMDQ
is 4ULL - meaning at least one bit will always be set in the result.
That will cause log error when VMDq is disabled.
Since the original intent behind the condition is to check if VMDq
is enabled, fix the code by changing "|" to "&".

Coverity issue: 13219, 13221
Fixes: 4805ed59e957 ("i40e: enhance mac address operations")

Signed-off-by: Beilei Xing <beilei.xing@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
drivers/net/i40e/i40e_ethdev.c