From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by dpdk.org (Postfix) with ESMTP id 88B63201 for ; Mon, 15 Oct 2018 13:52:18 +0200 (CEST) Received: by mail-wr1-f66.google.com with SMTP id y16so20976775wrw.3 for ; Mon, 15 Oct 2018 04:52:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=9aYXafAo6LhVikk2GooPiqbZN/eEHayzrpkF0UwNfxQ=; b=IN6BMVKx1NiARelqjOGvh8TwbVhzbS+KVb8W38BBUQtFsr7La2g7ty59Kzg4DuNACa Dxn95jR6iesqPAY/0QkgMkMYazRquVjyWSrmub3gLzO8tvOAvY+C45ltvQz42tZYPnyp 0NZgXUYNmxLPxaeUXlL2s/OUI4jTorxsk8TaUGueURhruxWY0TVYzzjC84GUKere6ERr 2qj056ZIdVWUbD950p+hZFnBWZeKbT9UPXwdGGyX8dk+1rq7lRUZqnOP8iZyUgAjEcOM RFpgP5+izh3uz9tfgolY+PNjQPnfotDw6XhZyEQMm99hBIlcR5ylGT5xOCo4Zcq2c2Rk 4umA== X-Gm-Message-State: ABuFfohxezipWhoyZRDaScJJ1qYTW0luPOJ8DE8Fl11GziXIWPOfVYuu BmutrLT4hWX9+QgtouBWAzg= X-Google-Smtp-Source: ACcGV63d0bsPslAkYjy13a7hWHHzN4wcFQqMl4UQSyWwSW9lyZ6HJRpq/NcIamKYELXI6SEOL+ecQg== X-Received: by 2002:a5d:4fcf:: with SMTP id h15-v6mr13264136wrw.261.1539604338146; Mon, 15 Oct 2018 04:52:18 -0700 (PDT) Received: from localhost ([2a01:4b00:f419:6f00:8361:8946:ba2b:d556]) by smtp.gmail.com with ESMTPSA id j6-v6sm6270020wru.20.2018.10.15.04.52.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 15 Oct 2018 04:52:17 -0700 (PDT) From: Luca Boccassi To: Ajit Khaparde Cc: dpdk stable Date: Mon, 15 Oct 2018 12:51:35 +0100 Message-Id: <20181015115144.27626-15-bluca@debian.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181015115144.27626-1-bluca@debian.org> References: <20181003162121.16364-1-bluca@debian.org> <20181015115144.27626-1-bluca@debian.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'net/bnxt: set MAC filtering as outer for non tunnel frames' has been queued to LTS release 16.11.9 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: Mon, 15 Oct 2018 11:52:18 -0000 Hi, FYI, your patch has been queued to LTS release 16.11.9 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 10/17/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. Luca Boccassi --- >>From bb03213c3fc4f262675430d162ab6de813e16dc8 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 d65e28bec8..f4e4e23fcd 100644 --- a/drivers/net/bnxt/bnxt_hwrm.c +++ b/drivers/net/bnxt/bnxt_hwrm.c @@ -232,6 +232,8 @@ int bnxt_hwrm_set_filter(struct bnxt *bp, HWRM_PREP(req, CFA_L2_FILTER_ALLOC, -1, resp); 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.19.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2018-10-15 12:48:34.998522733 +0100 +++ 0015-net-bnxt-set-MAC-filtering-as-outer-for-non-tunnel-f.patch 2018-10-15 12:48:34.577096017 +0100 @@ -1,13 +1,14 @@ -From 50d3c51baecc5906cd72de549cc99b5c283aee96 Mon Sep 17 00:00:00 2001 +From bb03213c3fc4f262675430d162ab6de813e16dc8 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 51fe3a4c2e..b605659edb 100644 +index d65e28bec8..f4e4e23fcd 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); +@@ -232,6 +232,8 @@ int bnxt_hwrm_set_filter(struct bnxt *bp, + HWRM_PREP(req, CFA_L2_FILTER_ALLOC, -1, resp); req.flags = rte_cpu_to_le_32(filter->flags); + req.flags |=