From: Ferruh Yigit Subject: Re: [PATCH v3 08/11] net/e1000: parse flex filter Date: Fri, 9 Jun 2017 13:23:05 +0100 Message-ID: References: <1496385391-12445-1-git-send-email-wei.zhao1@intel.com> <1496977908-2149-1-git-send-email-wei.zhao1@intel.com> <1496977908-2149-9-git-send-email-wei.zhao1@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: wenzhuo.lu@intel.com To: Wei Zhao , dev@dpdk.org Return-path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id E51992BB8 for ; Fri, 9 Jun 2017 14:23:21 +0200 (CEST) In-Reply-To: <1496977908-2149-9-git-send-email-wei.zhao1@intel.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 6/9/2017 4:11 AM, Wei Zhao wrote: > check if the rule is a flex byte rule, and get the flex info. > > Signed-off-by: Wei Zhao <...> > + const struct rte_flow_item_raw *raw_mask; <...> > + > + if (!raw_mask->length || > + !raw_mask->pattern || > + !raw_mask->relative) { This gives following clang build error: .../drivers/net/e1000/igb_flow.c:1094:17: error: address of array 'raw_mask->pattern' will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion] !raw_mask->pattern || ~~~~~~~~~~~^~~~~~~ <...>