[dpdk-dev] [PATCH v2 1/3] i40e: fix log error

2016-07-05 Thread Bruce Richardson
On Tue, Jul 05, 2016 at 02:10:03PM +0800, Beilei Xing wrote: > 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

[dpdk-dev] [PATCH v2 1/3] i40e: fix log error

2016-07-05 Thread Beilei Xing
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 conditio