From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bruce Richardson Subject: Re: [PATCH v2 1/3] i40e: fix log error Date: Tue, 5 Jul 2016 14:24:21 +0100 Message-ID: <20160705132420.GA23500@bricha3-MOBL3> References: <1467272056-14388-1-git-send-email-beilei.xing@intel.com> <1467699005-16235-1-git-send-email-beilei.xing@intel.com> <1467699005-16235-2-git-send-email-beilei.xing@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: jingjing.wu@intel.com, michalx.k.jastrzebski@intel.com, dev@dpdk.org To: Beilei Xing Return-path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 6744B5949 for ; Tue, 5 Jul 2016 15:24:25 +0200 (CEST) Content-Disposition: inline In-Reply-To: <1467699005-16235-2-git-send-email-beilei.xing@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 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 Acked-by: Bruce Richardson