From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by dpdk.org (Postfix) with ESMTP id 8A157322C for ; Fri, 30 Nov 2018 00:14:05 +0100 (CET) Received: from Internal Mail-Server by MTLPINE1 (envelope-from yskoh@mellanox.com) with ESMTPS (AES256-SHA encrypted); 30 Nov 2018 01:19:55 +0200 Received: from scfae-sc-2.mti.labs.mlnx (scfae-sc-2.mti.labs.mlnx [10.101.0.96]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id wATNCW7q032075; Fri, 30 Nov 2018 01:14:00 +0200 From: Yongseok Koh To: Ajit Khaparde Cc: dpdk stable Date: Thu, 29 Nov 2018 15:10:46 -0800 Message-Id: <20181129231202.30436-52-yskoh@mellanox.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20181129231202.30436-1-yskoh@mellanox.com> References: <20181129231202.30436-1-yskoh@mellanox.com> Subject: [dpdk-stable] patch 'net/bnxt: set MAC filtering as outer for non tunnel frames' has been queued to LTS release 17.11.5 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: Thu, 29 Nov 2018 23:14:06 -0000 Hi, FYI, your patch has been queued to LTS release 17.11.5 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 12/01/18. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. If the code is different (ie: not only metadata diffs), due for example to a change in context or macro names, please double check it. Thanks. Yongseok --- >>From 6d9f45fe4047f1a1a8ab302b95e1d8c56c23bbf0 Mon Sep 17 00:00:00 2001 From: Ajit Khaparde Date: Fri, 28 Sep 2018 19:00:02 -0700 Subject: [PATCH] net/bnxt: set MAC filtering as outer for non tunnel frames [ upstream commit 50d3c51baecc5906cd72de549cc99b5c283aee96 ] We need to set HWRM_CFA_L2_FILTER_ALLOC_INPUT_FLAGS_OUTERMOST bit in L2_FILTER_ALLOC for filtering non-tunnel packets based on outermost MAC. Fixes: f92735db1e4c ("net/bnxt: add L2 filter alloc/init/free") Signed-off-by: Ajit Khaparde --- drivers/net/bnxt/bnxt_hwrm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/bnxt/bnxt_hwrm.c b/drivers/net/bnxt/bnxt_hwrm.c index 3cadfc341..815bad97b 100644 --- a/drivers/net/bnxt/bnxt_hwrm.c +++ b/drivers/net/bnxt/bnxt_hwrm.c @@ -396,6 +396,8 @@ int bnxt_hwrm_set_l2_filter(struct bnxt *bp, HWRM_PREP(req, CFA_L2_FILTER_ALLOC); req.flags = rte_cpu_to_le_32(filter->flags); + req.flags |= + rte_cpu_to_le_32(HWRM_CFA_L2_FILTER_ALLOC_INPUT_FLAGS_OUTERMOST); enables = filter->enables | HWRM_CFA_L2_FILTER_ALLOC_INPUT_ENABLES_DST_ID; -- 2.11.0 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2018-11-29 15:01:47.523493155 -0800 +++ 0052-net-bnxt-set-MAC-filtering-as-outer-for-non-tunnel-f.patch 2018-11-29 15:01:45.115959000 -0800 @@ -1,13 +1,14 @@ -From 50d3c51baecc5906cd72de549cc99b5c283aee96 Mon Sep 17 00:00:00 2001 +From 6d9f45fe4047f1a1a8ab302b95e1d8c56c23bbf0 Mon Sep 17 00:00:00 2001 From: Ajit Khaparde Date: Fri, 28 Sep 2018 19:00:02 -0700 Subject: [PATCH] net/bnxt: set MAC filtering as outer for non tunnel frames +[ upstream commit 50d3c51baecc5906cd72de549cc99b5c283aee96 ] + We need to set HWRM_CFA_L2_FILTER_ALLOC_INPUT_FLAGS_OUTERMOST bit in L2_FILTER_ALLOC for filtering non-tunnel packets based on outermost MAC. Fixes: f92735db1e4c ("net/bnxt: add L2 filter alloc/init/free") -Cc: stable@dpdk.org Signed-off-by: Ajit Khaparde --- @@ -15,11 +16,11 @@ 1 file changed, 2 insertions(+) diff --git a/drivers/net/bnxt/bnxt_hwrm.c b/drivers/net/bnxt/bnxt_hwrm.c -index 51fe3a4c2..b605659ed 100644 +index 3cadfc341..815bad97b 100644 --- a/drivers/net/bnxt/bnxt_hwrm.c +++ b/drivers/net/bnxt/bnxt_hwrm.c -@@ -383,6 +383,8 @@ int bnxt_hwrm_set_l2_filter(struct bnxt *bp, - HWRM_PREP(req, CFA_L2_FILTER_ALLOC, BNXT_USE_CHIMP_MB); +@@ -396,6 +396,8 @@ int bnxt_hwrm_set_l2_filter(struct bnxt *bp, + HWRM_PREP(req, CFA_L2_FILTER_ALLOC); req.flags = rte_cpu_to_le_32(filter->flags); + req.flags |=