From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f45.google.com (mail-pg0-f45.google.com [74.125.83.45]) by dpdk.org (Postfix) with ESMTP id C6ABD388F for ; Wed, 9 Aug 2017 05:46:51 +0200 (CEST) Received: by mail-pg0-f45.google.com with SMTP id l64so22711958pge.5 for ; Tue, 08 Aug 2017 20:46:51 -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=iugeXaDiAIIbllUZgtxuGaGmrX5N/sG741cCDLtTy+U=; b=JN4hMrbUruBysWLQ4Nq4zq33lwEDKLPfiZfJM5R0+tMnlgPzYrGo8aDvI6ucM/AJMz oL2Qm+ZdYCJ2CkTwBZyB1BtKfjSclvm9TxzDRpcVA4vLpS9fkiaAz3R0fErFF2pxh2Ud 9R4IsGueEWMXEJ63TvBezUE9mpZoKVhiIhP0u9TB/UVn+NelZgcuOKISXwg4/PquhFSU OsMmPeWGIDO0ZPSnsxQFRJNUp0cwd5GZRUlscKOceHevBo1Q2tK9x5Wa3kJvJdvgqCFB 8sOxUvUV81HzHSuFKXKTb7miH0ZpBbZTl2L8kABlS/3e4W/TciHJQOMzITJ9tR/sK3MT 6smw== 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=iugeXaDiAIIbllUZgtxuGaGmrX5N/sG741cCDLtTy+U=; b=apqATm7Gcw9335rAqo95N0BU6Sy97N7RnKfWbA1ZlORxsroKqQROEk6Twbb6Y4TaJG R/rP91CD5UnIu4Lc3MAelBg6u5kyDmGQkEbHD0RUP98ziCgSTmvywJox3S26ymXVvj1S IoDV9GNBp1DnjiBNLlMnsEiurVXbO7CdOfxg9Hy/GVA62MucbCcQDXu7zIwxvTX+YHKT wm2xfvZ7EcY10807e2M3G0psUaG18Sc1Jawpxd5TaXpoltNwqrlpj3Rxf3HqsaPys9pE eq4o69fKFa2tNlXDgTgl63lNV1E8H3bcCBMDQ8Kok02Z+naCp6zGjq827yX2ZNtjRX+P B//Q== X-Gm-Message-State: AHYfb5j6IZoflZwKhy6dnwHRgCQ9oG+B8ZPYmaZ6o4OF6h2vcZJRjxuX 6D9nd/iUbHqATFCm X-Received: by 10.101.90.136 with SMTP id c8mr6188350pgt.168.1502250410859; Tue, 08 Aug 2017 20:46:50 -0700 (PDT) Received: from localhost.localdomain ([45.63.61.64]) by smtp.gmail.com with ESMTPSA id q3sm5093921pfl.89.2017.08.08.20.46.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 08 Aug 2017 20:46:49 -0700 (PDT) From: Yuanhan Liu To: Ajit Khaparde Cc: dpdk stable , Yuanhan Liu Date: Wed, 9 Aug 2017 11:43:47 +0800 Message-Id: <1502250240-6599-5-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: check invalid L2 filter id' 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:52 -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 5d40ea8b4a16ef2983d5fb8359a3dbca5abd51dd Mon Sep 17 00:00:00 2001 From: Ajit Khaparde Date: Thu, 20 Jul 2017 22:22:32 -0500 Subject: [PATCH] net/bnxt: check invalid L2 filter id [ upstream commit 778f6209bc3b39339f2969a57ffb46f2cd396f15 ] Add code to check for invalid filter_id in bnxt_hwrm_clear_filter 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 115ff05..f0ed704 100644 --- a/drivers/net/bnxt/bnxt_hwrm.c +++ b/drivers/net/bnxt/bnxt_hwrm.c @@ -194,6 +194,9 @@ int bnxt_hwrm_clear_filter(struct bnxt *bp, struct hwrm_cfa_l2_filter_free_input req = {.req_type = 0 }; struct hwrm_cfa_l2_filter_free_output *resp = bp->hwrm_cmd_resp_addr; + if (filter->fw_l2_filter_id == UINT64_MAX) + return 0; + HWRM_PREP(req, CFA_L2_FILTER_FREE, -1, resp); req.l2_filter_id = rte_cpu_to_le_64(filter->fw_l2_filter_id); -- 2.7.4