From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from rnd-relay.smtp.broadcom.com (rnd-relay.smtp.broadcom.com [192.19.229.170]) by dpdk.org (Postfix) with ESMTP id AFB272BAC for ; Thu, 26 Jul 2018 03:15:59 +0200 (CEST) Received: from nis-sj1-27.broadcom.com (nis-sj1-27.lvn.broadcom.net [10.75.144.136]) by rnd-relay.smtp.broadcom.com (Postfix) with ESMTP id 797AA30C01B; Wed, 25 Jul 2018 18:15:52 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 rnd-relay.smtp.broadcom.com 797AA30C01B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=broadcom.com; s=dkimrelay; t=1532567752; bh=PPX3SU4elBDRuw265EnqyP4/33AbwWEkrtGbmdwjGj4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pmEGLX+db6IN+5UoDonbW9XlwL4IWdPYblvUDFrTuEH6atyy3VXtA6PgbmC7q15a1 MF1LSix1bXGeZ7vx9LW/977ZjZy9KjgXoIveheTOksU8//nckaRGmAbs2TnANGwLsf dTp+GTWlr5S93h7KloiuYtWKA/4L9KmBXZlbAFdo= Received: from C02VPB22HTD6.vpn.broadcom.net (unknown [10.10.118.171]) by nis-sj1-27.broadcom.com (Postfix) with ESMTP id 29646AC0761; Wed, 25 Jul 2018 18:15:52 -0700 (PDT) From: Ajit Khaparde To: dev@dpdk.org Cc: Somnath Kotur , stable@dpdk.com Date: Wed, 25 Jul 2018 18:15:44 -0700 Message-Id: <20180726011548.97788-2-ajit.khaparde@broadcom.com> X-Mailer: git-send-email 2.15.2 (Apple Git-101.1) In-Reply-To: <20180726011548.97788-1-ajit.khaparde@broadcom.com> References: <20180726011548.97788-1-ajit.khaparde@broadcom.com> Subject: [dpdk-dev] [PATCH 1/5] net/bnxt: fix to remove element from the vnic's filter list X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jul 2018 01:16:00 -0000 From: Somnath Kotur bnxt_clear_hwrm_vnic_filters() was removing the created filter from HW, but not clearing the internal data structures by removing it from the struct bnxt_vnic_info->filter list. Fixes: 5ef3b79fdfe6 ("net/bnxt: support flow filter ops") Cc: stable@dpdk.com Signed-off-by: Somnath Kotur Signed-off-by: Ajit Khaparde --- drivers/net/bnxt/bnxt_hwrm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/bnxt/bnxt_hwrm.c b/drivers/net/bnxt/bnxt_hwrm.c index 02562f78c..69c83cdab 100644 --- a/drivers/net/bnxt/bnxt_hwrm.c +++ b/drivers/net/bnxt/bnxt_hwrm.c @@ -2020,6 +2020,7 @@ int bnxt_clear_hwrm_vnic_filters(struct bnxt *bp, struct bnxt_vnic_info *vnic) rc = bnxt_hwrm_clear_ntuple_filter(bp, filter); else rc = bnxt_hwrm_clear_l2_filter(bp, filter); + STAILQ_REMOVE(&vnic->filter, filter, bnxt_filter_info, next); //if (rc) //break; } -- 2.15.2 (Apple Git-101.1)