From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f49.google.com (mail-pg0-f49.google.com [74.125.83.49]) by dpdk.org (Postfix) with ESMTP id 708612B9D for ; Wed, 9 Aug 2017 05:46:56 +0200 (CEST) Received: by mail-pg0-f49.google.com with SMTP id u185so22817215pgb.1 for ; Tue, 08 Aug 2017 20:46:56 -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=Gd8nWtjwE8NrAeb1oVm8PGo5cjrb5ztmHhz29cyetKw=; b=gI269NXEop6Kf3KXafckgao+nOEcmdTHzVgoYJo3m6S8A9wg4/15jdTcIm+KTQ/GJl VL0wI9FRtQ72iuQxMF+aqdhtCC53k3o8NiV/Lj9E4fOsYHwvsSATZkkKJarz0trGrrK8 6FHkuQCL4gUoh1srLKNA6QV603BUSn2SJfKgY+38bCSzBfJnTnu4NS66V3jawWmFTig4 m0t2HsN/m+7K4qMTPtnYg3sXjkHDCAO8s7jyiPIDxHKVVVJT6P9e/Sao8TMtCTo088fQ stHrLRFIB5vIzd6VqB0DLaB77jr+1LWiukvQsfT9zLhiMzI5w9zNpoOrH6D5iEpu8Wyj v7Uw== 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=Gd8nWtjwE8NrAeb1oVm8PGo5cjrb5ztmHhz29cyetKw=; b=RB0yCFtckF/bnVL7SgIJzYhDVc4sZMFqzzHZidiVzdxgd4vCC5n7qJZ4+9CUP2lpwD 0FsH2asMDtJly69pSMmN6r0qTocCKxeaufPG7ZZTD94GIn+A8HTwHnmdX8p5BGW/+iZn YuiL3urEHLPbeU/cRwqMNwR4eZbwqoS2oaL3jO8BBlyBArhQ91pHdlTQAkgdrUDEXQQq kiInPNzO6+nkrwjrOg4ETSdtl1RJJwx1ReZbfvaJZ6cvQ1xQf1/gPTPk1iV2cm2xObKv zPjlzK97ZE83s/oXEDUI9N3xIw6v3JbFVKS1l77loRKb2dxhmqsNnNHjJwLYXV1jU094 FVxQ== X-Gm-Message-State: AHYfb5iOMRXtbQnXH0QSJEOTDVYO4o/1by5kCX06JIM49D429kUbtvrH SE34a4/SysqrLnnM X-Received: by 10.84.160.201 with SMTP id v9mr7244911plg.458.1502250415684; Tue, 08 Aug 2017 20:46:55 -0700 (PDT) Received: from localhost.localdomain ([45.63.61.64]) by smtp.gmail.com with ESMTPSA id q3sm5093921pfl.89.2017.08.08.20.46.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 Aug 2017 20:46:54 -0700 (PDT) From: Yuanhan Liu To: Ajit Khaparde Cc: dpdk stable , Yuanhan Liu Date: Wed, 9 Aug 2017 11:43:48 +0800 Message-Id: <1502250240-6599-6-git-send-email-yliu@fridaylinux.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1502250240-6599-1-git-send-email-yliu@fridaylinux.org> References: <1502250240-6599-1-git-send-email-yliu@fridaylinux.org> Subject: [dpdk-stable] patch 'net/bnxt: free filter before reusing it' has been queued to LTS release 16.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: Wed, 09 Aug 2017 03:46:56 -0000 Hi, FYI, your patch has been queued to LTS release 16.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 08/11/17. So please shout if anyone has objections. Thanks. --yliu --- >>From a28a5d08b48b49402ba2dd3943595334176ffea9 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 f0ed704..fef00f6 100644 --- a/drivers/net/bnxt/bnxt_hwrm.c +++ b/drivers/net/bnxt/bnxt_hwrm.c @@ -219,6 +219,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