From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f50.google.com (mail-pg0-f50.google.com [74.125.83.50]) by dpdk.org (Postfix) with ESMTP id 9D6449187 for ; Mon, 21 Aug 2017 11:37:00 +0200 (CEST) Received: by mail-pg0-f50.google.com with SMTP id n4so33254604pgn.1 for ; Mon, 21 Aug 2017 02:37:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fridaylinux-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=vhtIHqy2GcJHTpSJOeLaS/kCLb45XR+KL+uCxuVo9P8=; b=E1uuMLLTQ5dq+6uMZQKln8sBhPqxgv/WeRTDVWIa5ScqsXecwcaMFwLuQIp5G0JFxY tI9hlptqaNn5pDeSt9Q2XmwD3WHKN8oExKwvP0sHOdfgX8arriBTX1fjaMjZFZBxxlPj z9f2j0mem5n+XWIKibaO2v1B6yGl3bZJNrzdJ/0MCcjB2iwomHuezrL5uwIw498Nvxkd bY2RJgQHLDV2UlaPGBVe1pb/WYY1OwCgPY1y0cdf70mIZIRFS9AcD1lEyXWrpTENYCEj rRSFI5+SsxgL2Et0o7QHay9grpaHbN47O3fV3A5GIRWlE9OWIusCJfUKy6UI9k0uOGfg FegA== 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; bh=vhtIHqy2GcJHTpSJOeLaS/kCLb45XR+KL+uCxuVo9P8=; b=NC9abAEcE33lz1cdLFMqeMA/H5z2D15DfOyfs8K7X0P2dMydg0R5d9mLAk0/tOEztN /4rBFO6esbPOt2ZdcaSPmaChV19PWQ9kikHT8usVVZ4FK8xK+eVeUwk/GW6PVJWoVKG4 7uwfb9xa2OeZwu26kvvVZwRu4rii6SkvGA3korvMMVNNPhEyGSYzLqw5m8BtOR3aQVOH XfuHtPpcr3nnAhRQH0jv8ZrHXp4KQv+K6gTTZY3C8DbMbxTA7S4UUgoAbb9H0YzHAxe7 2RuwqKQ3FBv3DDsiBsJNFU5f+AZoQJFNrPGkjC+WHXGqHAwy9BFYB2Q+sE7XiVzz+On2 n93Q== X-Gm-Message-State: AHYfb5iHHIIyQjucx71CbnsTDZkQbRKADZhGeJfUB6fNpmmSoVLbjpfh Rlx9mgPbKYjrJpBi X-Received: by 10.98.147.138 with SMTP id r10mr16369472pfk.47.1503308218854; Mon, 21 Aug 2017 02:36:58 -0700 (PDT) Received: from localhost.localdomain ([45.63.61.64]) by smtp.gmail.com with ESMTPSA id 69sm23355087pfh.186.2017.08.21.02.36.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 21 Aug 2017 02:36:57 -0700 (PDT) From: Yuanhan Liu To: Ajit Khaparde Cc: dpdk stable , Yuanhan Liu Date: Mon, 21 Aug 2017 17:30:59 +0800 Message-Id: <1503307878-16728-45-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1503307878-16728-1-git-send-email-yliu@fridaylinux.org> References: <1503307878-16728-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'net/bnxt: free filter before reusing it' has been queued to stable release 17.05.2 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, 21 Aug 2017 09:37:00 -0000 Hi, FYI, your patch has been queued to stable release 17.05.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 08/24/17. So please shout if anyone has objections. Thanks. --yliu --- >>From a4b95d1c86492c1a4eeaa9cd9027c6a6960b475d Mon Sep 17 00:00:00 2001 From: Ajit Khaparde Date: Thu, 20 Jul 2017 22:22:33 -0500 Subject: [PATCH] net/bnxt: free filter before reusing it [ upstream commit 4cddfcb71b1edeed845aff0b19c9ea73622f79c6 ] This patch sends the HWRM command to free a filter in the hardware, before using it again. Fixes: f92735db1e4c ("net/bnxt: add L2 filter alloc/init/free") Signed-off-by: Ajit Khaparde --- drivers/net/bnxt/bnxt_hwrm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/bnxt/bnxt_hwrm.c b/drivers/net/bnxt/bnxt_hwrm.c index 6a5159c..f64cb80 100644 --- a/drivers/net/bnxt/bnxt_hwrm.c +++ b/drivers/net/bnxt/bnxt_hwrm.c @@ -221,6 +221,9 @@ int bnxt_hwrm_set_filter(struct bnxt *bp, struct hwrm_cfa_l2_filter_alloc_output *resp = bp->hwrm_cmd_resp_addr; uint32_t enables = 0; + if (filter->fw_l2_filter_id != UINT64_MAX) + bnxt_hwrm_clear_filter(bp, filter); + HWRM_PREP(req, CFA_L2_FILTER_ALLOC, -1, resp); req.flags = rte_cpu_to_le_32(filter->flags); -- 2.7.4