From: Ferruh Yigit Subject: Re: [PATCH v2 18/19] net/bnxt: add support for flow filter ops Date: Tue, 19 Sep 2017 13:38:43 +0100 Message-ID: <0a5dbf71-8943-426d-7dae-a508e9b9cabb@intel.com> References: <20170918151755.86605-1-ajit.khaparde@broadcom.com> <20170918151755.86605-19-ajit.khaparde@broadcom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit To: Ajit Khaparde , dev@dpdk.org Return-path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 550477CFD for ; Tue, 19 Sep 2017 14:38:45 +0200 (CEST) In-Reply-To: <20170918151755.86605-19-ajit.khaparde@broadcom.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 9/18/2017 4:17 PM, Ajit Khaparde wrote: > This patch adds support for flow validate/create/destroy/flush ops. > Also update doc/guides/nics/features/bnxt.ini to indicate this. > > Signed-off-by: Ajit Khaparde <...> > +int bnxt_hwrm_set_ntuple_filter(struct bnxt *bp, > + uint16_t dst_id, > + struct bnxt_filter_info *filter) > +{ > + int rc = 0; > + struct hwrm_cfa_ntuple_filter_alloc_input req = {.req_type = 0 }; > + struct hwrm_cfa_ntuple_filter_alloc_output *resp = > + bp->hwrm_cmd_resp_addr; > + uint32_t enables = 0; > + > + if (filter->fw_ntuple_filter_id != UINT64_MAX) { > + RTE_LOG(ERR, PMD, > + "NTUPLE id %lx\n", filter->fw_ntuple_filter_id); This breaks the 32bit build: .../drivers/net/bnxt/bnxt_hwrm.c:3270:50: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘uint64_t {aka long long unsigned int}’ [-Werror=format=] "NTUPLE id %lx\n", filter->fw_ntuple_filter_id); ~~~~~~~~~ ^ <...>