From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 760B0A053D for ; Tue, 4 Aug 2020 10:52:05 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5D0161C037; Tue, 4 Aug 2020 10:52:05 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 416861C025; Tue, 4 Aug 2020 10:52:02 +0200 (CEST) IronPort-SDR: jVFCenkMxztyt4uJZsvdB8C2MpUcgUzZEYRJ+SsgSpPIoR/Hz/1Ocjmxeop7oEJ5UXcH3Ho0Y0 s6D7+BWOmg5g== X-IronPort-AV: E=McAfee;i="6000,8403,9702"; a="152239895" X-IronPort-AV: E=Sophos;i="5.75,433,1589266800"; d="scan'208";a="152239895" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Aug 2020 01:52:01 -0700 IronPort-SDR: cmqeVArUKXXt1QJ5Pye0FdndyF1OBMVQ2iMPPLs+hMMtyAd/6JKaEcq2vyknivM9JdMroLcITN 4bPjYHjtHn0Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,433,1589266800"; d="scan'208";a="492811753" Received: from npg-dpdk-virtio-xiachenbo-nw.sh.intel.com ([10.67.119.123]) by fmsmga005.fm.intel.com with ESMTP; 04 Aug 2020 01:51:59 -0700 From: Chenbo Xia To: dev@dpdk.org Cc: ajit.khaparde@broadcom.com, somnath.kotur@broadcom.com, kishore.padmanabha@broadcom.com, venkatkumar.duvvuru@broadcom.com, stable@dpdk.org Date: Tue, 4 Aug 2020 17:41:47 +0000 Message-Id: <20200804174147.64473-1-chenbo.xia@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dpdk-stable] [PATCH] net/bnxt: fix variable size of port id X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Currenly the variable size of ethdev port id is 8 bits. This patch standarizes it to 16 bits. Fixes: 769de16872ab ("net/bnxt: fix port default rule create/destroy") Cc: stable@dpdk.org Reported-by: Yinan Wang Signed-off-by: Chenbo Xia --- drivers/net/bnxt/tf_ulp/ulp_def_rules.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/bnxt/tf_ulp/ulp_def_rules.c b/drivers/net/bnxt/tf_ulp/ulp_def_rules.c index 9fb1a028f..ff5aed3d7 100644 --- a/drivers/net/bnxt/tf_ulp/ulp_def_rules.c +++ b/drivers/net/bnxt/tf_ulp/ulp_def_rules.c @@ -397,7 +397,7 @@ void bnxt_ulp_destroy_df_rules(struct bnxt *bp, bool global) { struct bnxt_ulp_df_rule_info *info; - uint8_t port_id; + uint16_t port_id; if (!BNXT_TRUFLOW_EN(bp) || BNXT_ETH_DEV_IS_REPRESENTOR(bp->eth_dev)) -- 2.17.1