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 5DD1A9189 for ; Mon, 21 Aug 2017 11:36:54 +0200 (CEST) Received: by mail-pg0-f49.google.com with SMTP id i12so96979697pgr.3 for ; Mon, 21 Aug 2017 02:36:54 -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=3f9iR05IhXJskBAKy6swRvYiklhDCtbQDI5XYIDThAQ=; b=ZXjdSaXnbYEDRvKOWGEqVua2nNdCEupj7bBk3wLIlsikqwWwKkuIyQ9y05Vpvm7rpu pCdys1SO8jFz7oKHaGkzvluYh2uc4jvMjp3VbTihkqcliapDJkYoS1GPLATSZqs0IwS6 nEQyrPS4rPRa3nK+GBvRUgT3X9wUk/+2upwcavnUDMLoWk+4S8p0/n9xaJcLVcnmIBzf nuWeG006C8KF4o2NcNHp4ryFOnFbO57vixiC41goJ/6g+QtPGE0ZocbFlCh1xKoRUCwT HgFjhs3e+RGTjtX1feGLqTs+fyNSz64MhpINNwAfyF5dX/uP1YeR1VvReC1sPdGgjTgZ OJnA== 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=3f9iR05IhXJskBAKy6swRvYiklhDCtbQDI5XYIDThAQ=; b=hd2hwkaCiuyiUCtZO0BLutB+4f4e++Or41tK2kQmqopFR6EK/C5LoBYbA4AMkZq4ir HbfQfhu9UFGQvJpZc8VQI8U2OSn7JbB8Z/2NjXxqWcjGJHENLLSiTTxV6/F/qNIjzX8W EBvBkuLTJESsTl0HNwJlkyLWXZaV8AU1LbACvVtrXMiASj7pjotDDHCqJRP9OJ5fM6iI 39zVHuRClK1Aoed21GfQTSdcLL+VYg/xqBFq4uU5wAyZiXEb7RlzaC7JSOB5L9xDtVg5 gNmVjqtGW6dpHu3BcpOVXkg3tZWT+FWdlg2EGwGCxtLls/rtaZ0HZqYlnQ9PUcTnghb6 8PiQ== X-Gm-Message-State: AHYfb5jjhfSBirbGIr5KrvPd/+GH+yh70p3et02mXVRp1tplBqPOwp8Y P5J28luv1NTIrT7P X-Received: by 10.84.225.146 with SMTP id u18mr10954585plj.64.1503308213548; Mon, 21 Aug 2017 02:36:53 -0700 (PDT) Received: from localhost.localdomain ([45.63.61.64]) by smtp.gmail.com with ESMTPSA id 69sm23355087pfh.186.2017.08.21.02.36.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 21 Aug 2017 02:36:52 -0700 (PDT) From: Yuanhan Liu To: Ajit Khaparde Cc: dpdk stable , Yuanhan Liu Date: Mon, 21 Aug 2017 17:30:58 +0800 Message-Id: <1503307878-16728-44-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: check invalid L2 filter id' 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:36:54 -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 d0b303549548ed0947cd7fb97780178d8299e749 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 eec29b3..6a5159c 100644 --- a/drivers/net/bnxt/bnxt_hwrm.c +++ b/drivers/net/bnxt/bnxt_hwrm.c @@ -196,6 +196,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