From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id EE9398DB2 for ; Sun, 20 May 2018 15:09:12 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 9CA2121D4F; Sun, 20 May 2018 09:09:12 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Sun, 20 May 2018 09:09:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux.org; h=cc:date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=JmmJVdKVJ932qdfV9 FiASt9VvB1GS76mP151RbhXY/4=; b=ngSlLAH9DOM5dPyjE7EdnmotzSIf9OIsr 96PvMrY26P460AonG+kowMbYA3swivVXrDlJG/xm7cCgUxSIAJ166SgxeAFnZlqX Rw36HE1bqDYOBQ0G86rRk7KL2upOsR0CFvGx4t4aO59QhhIoka/VFKUyhIOkf7MC VgEjfNUupUNdUdyFX9VQYU/No+0wjPJPuvy8TV+ZUYCsHo2q+ciyJn2rPc8E/Txq kqvB6LKlUeNAGZd8qyfmkrFU7nT3ZhhV8SDEzSA5PA81kNdAgrKFKF1DOd81uRVj 3ZF4bdLBNzJJi9KB7fY4oeCYgUlcLR1mZRn3TjnSQkh7EUjxqA+sg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=JmmJVdKVJ932qdfV9FiASt9VvB1GS76mP151RbhXY/4=; b=hk4y2ZAo YL+YeKWAKZhio0zz5Cy1HORoFu6cTN49yz1HxsfvrW90cEFRun13I20IeZRKXxCe YkV4i5nWYr/SrjHm6iZKPqTHHNS0sySJgtjZ5hycXlsyHpoVKIG0Xg+/MkuG7pil BryfUuL5Aaveqpe2CtAm3gRESpAm0448uXLr34P9pPrNDWFlb6Bf8Gjw0OS4bi7Z liJjBRVmkSw8f4Mp09U6me6D/qFgPnYpM0AhF8MznB4jXTKndzM3qzwmeY0hMO/0 2dpJS9fJBLrFTqtVghXAwy9rMpuJlXpKadfbj5sRZpqPxGwVdaj9JDbVB5EvlcsS etkouY+WHbc9qA== X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Proxy: X-ME-Sender: Received: from yuanhanliu-NB0.tencent.com (unknown [223.74.148.80]) by mail.messagingengine.com (Postfix) with ESMTPA id 0A5511025C; Sun, 20 May 2018 09:09:09 -0400 (EDT) From: Yuanhan Liu To: Ajit Khaparde Cc: Scott Branden , Michael Wildt , Randy Schacher , Ray Jui , dpdk stable Date: Sun, 20 May 2018 21:02:36 +0800 Message-Id: <20180520130246.16287-20-yliu@fridaylinux.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180520130246.16287-1-yliu@fridaylinux.org> References: <20180520130246.16287-1-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'net/bnxt: fix usage of vnic id' has been queued to LTS release 17.11.3 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: , X-List-Received-Date: Sun, 20 May 2018 13:09:13 -0000 Hi, FYI, your patch has been queued to LTS release 17.11.3 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 05/27/18. So please shout if anyone has objections. Thanks. --yliu --- >>From 86b6d1f15ddf48ef4e80f2315b2f0b5c739873e5 Mon Sep 17 00:00:00 2001 From: Ajit Khaparde Date: Mon, 30 Apr 2018 18:06:15 -0700 Subject: [PATCH] net/bnxt: fix usage of vnic id [ upstream commit a6f4bb2a1510a633040ea1f90ba576cf816bd2b7 ] VNIC ID returned by the FW is a 16-bit field. We are incorrectly using it as a 32-bit value in few places. This patch corrects that. Fixes: daef48efe5e5 ("net/bnxt: support set MTU") Signed-off-by: Ajit Khaparde Signed-off-by: Scott Branden Reviewed-by: Michael Wildt Reviewed-by: Randy Schacher Reviewed-by: Ray Jui --- drivers/net/bnxt/bnxt_hwrm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/bnxt/bnxt_hwrm.c b/drivers/net/bnxt/bnxt_hwrm.c index 5018d3511..22f092f16 100644 --- a/drivers/net/bnxt/bnxt_hwrm.c +++ b/drivers/net/bnxt/bnxt_hwrm.c @@ -1125,7 +1125,7 @@ static int bnxt_hwrm_vnic_plcmodes_qcfg(struct bnxt *bp, HWRM_PREP(req, VNIC_PLCMODES_QCFG); - req.vnic_id = rte_cpu_to_le_32(vnic->fw_vnic_id); + req.vnic_id = rte_cpu_to_le_16(vnic->fw_vnic_id); rc = bnxt_hwrm_send_message(bp, &req, sizeof(req)); @@ -1153,7 +1153,7 @@ static int bnxt_hwrm_vnic_plcmodes_cfg(struct bnxt *bp, HWRM_PREP(req, VNIC_PLCMODES_CFG); - req.vnic_id = rte_cpu_to_le_32(vnic->fw_vnic_id); + req.vnic_id = rte_cpu_to_le_16(vnic->fw_vnic_id); req.flags = rte_cpu_to_le_32(pmode->flags); req.jumbo_thresh = rte_cpu_to_le_16(pmode->jumbo_thresh); req.hds_offset = rte_cpu_to_le_16(pmode->hds_offset); @@ -1397,7 +1397,7 @@ int bnxt_hwrm_vnic_plcmode_cfg(struct bnxt *bp, size -= RTE_PKTMBUF_HEADROOM; req.jumbo_thresh = rte_cpu_to_le_16(size); - req.vnic_id = rte_cpu_to_le_32(vnic->fw_vnic_id); + req.vnic_id = rte_cpu_to_le_16(vnic->fw_vnic_id); rc = bnxt_hwrm_send_message(bp, &req, sizeof(req)); @@ -1433,7 +1433,7 @@ int bnxt_hwrm_vnic_tpa_cfg(struct bnxt *bp, rte_cpu_to_le_16(HWRM_VNIC_TPA_CFG_INPUT_MAX_AGGS_MAX); req.min_agg_len = rte_cpu_to_le_32(512); } - req.vnic_id = rte_cpu_to_le_32(vnic->fw_vnic_id); + req.vnic_id = rte_cpu_to_le_16(vnic->fw_vnic_id); rc = bnxt_hwrm_send_message(bp, &req, sizeof(req)); -- 2.11.0