From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 03417A051C for ; Tue, 11 Feb 2020 12:41:06 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id EF49F1BFA7; Tue, 11 Feb 2020 12:41:05 +0100 (CET) Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) by dpdk.org (Postfix) with ESMTP id B062D1DB9 for ; Tue, 11 Feb 2020 12:41:04 +0100 (CET) Received: by mail-wm1-f52.google.com with SMTP id c84so3125440wme.4 for ; Tue, 11 Feb 2020 03:41:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Lvnly+U/2o/RTAWqa1wECebUnSTOZGb6Jpj+zeylYsI=; b=nT97I+bBSSi1NR3jQ3VQQ8l3DAX3VfBXpwE2fwZr+fPTn3UbA5xv8HGlDgoScoeU8o JxiSxJJVzSXcvLfLpNTnQvP6+FXbacH4+QbXNAryATdoUsjXR4PFLpifcHpOBY2HE+Mi SeNPz5ueJu9NVHFQsa+ldy7wD7TjgaLNwjDee14qdMZBDQI/Vudlks/Ky/KyD9Hp3z13 MuNfYR1tHW6hGZx6XEqSlvUyMlEYSJTdYymHQpvcNo8o/km+L0QB46dkS1/12YRCdVYa UhBGeTaUj33L3evb7W7tixX98JlDu8h+kTVNV3SHpxmkxXSfP7fEDMx4PBeveSVAPXe7 N5TA== 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:mime-version:content-transfer-encoding; bh=Lvnly+U/2o/RTAWqa1wECebUnSTOZGb6Jpj+zeylYsI=; b=un1DIyk6mLKVcOVqcP9V+eeB4tg2qRtee9q9Jtrohtw+hnOldkFARPcMEo6dYhd+Df tm7ggRVUanCuXvQ3aJTW8ruiX6+D8G3lgi9+6zTtv9sI9U3AGSl2eStSSAYj7nQrzgnR r6yG9Fbzplm9fyU6qNsj2ztqqKSH5TvmmSDu76rRcVNkUE0RGft2tA8Fd+vSzVf9Khkg 4gUFMCoO/1nN+vmqrxtBeH/RI3aPRi+NL6DX45tXtxMzMuotBcg3nlA+CiYv5jxI0B78 rhpWouQpEhr8BpMfRRwIFHYYl0/UhTSXriLurjCUkk16Uf0D8sFGzb9Df/EzOLT+SvcU lprw== X-Gm-Message-State: APjAAAUt6R7OQtvOet+DAWLdPzP1UBXM00+WULk01M9YqX2hiiVdXFOe nMdgZvTbYxdZPA2k+9JCKJE= X-Google-Smtp-Source: APXvYqyHTRHbX/OK4KAzYmGFZbn6vz+NKtSV/MM/Fgg1NbnRbelnPVWj/tCqYjbW73gAix8uVmpOnA== X-Received: by 2002:a05:600c:1007:: with SMTP id c7mr5145516wmc.158.1581421264397; Tue, 11 Feb 2020 03:41:04 -0800 (PST) Received: from localhost ([88.98.246.218]) by smtp.gmail.com with ESMTPSA id k8sm4810610wrq.67.2020.02.11.03.41.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Feb 2020 03:41:03 -0800 (PST) From: luca.boccassi@gmail.com To: Somnath Kotur Cc: Kalesh AP , Ajit Khaparde , dpdk stable Date: Tue, 11 Feb 2020 11:21:45 +0000 Message-Id: <20200211112216.3929-159-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200211112216.3929-1-luca.boccassi@gmail.com> References: <20200211112216.3929-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'net/bnxt: fix alloc filter to use a common routine' has been queued to stable release 19.11.1 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: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Hi, FYI, your patch has been queued to stable release 19.11.1 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 02/13/20. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Thanks. Luca Boccassi --- >From 84087cb7305924f960ff179c7fa4ebc429e56edf Mon Sep 17 00:00:00 2001 From: Somnath Kotur Date: Tue, 28 Jan 2020 12:59:15 +0530 Subject: [PATCH] net/bnxt: fix alloc filter to use a common routine [ upstream commit 2b3879f8e39d10a7c57ad718195af3b686e94a9c ] Invoke bnxt_get_unused_filter() inside bnxt_alloc_filter() so that all filters are allocated from one common routine. Fixes: f92735db1e4c ("net/bnxt: add L2 filter alloc/init/free") Reviewed-by: Kalesh AP Signed-off-by: Somnath Kotur Signed-off-by: Ajit Khaparde --- drivers/net/bnxt/bnxt_filter.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/bnxt/bnxt_filter.c b/drivers/net/bnxt/bnxt_filter.c index 04231b069d..2f890779d2 100644 --- a/drivers/net/bnxt/bnxt_filter.c +++ b/drivers/net/bnxt/bnxt_filter.c @@ -26,13 +26,11 @@ struct bnxt_filter_info *bnxt_alloc_filter(struct bnxt *bp) { struct bnxt_filter_info *filter; - /* Find the 1st unused filter from the free_filter_list pool*/ - filter = STAILQ_FIRST(&bp->free_filter_list); + filter = bnxt_get_unused_filter(bp); if (!filter) { PMD_DRV_LOG(ERR, "No more free filter resources\n"); return NULL; } - STAILQ_REMOVE_HEAD(&bp->free_filter_list, next); filter->mac_index = INVALID_MAC_INDEX; /* Default to L2 MAC Addr filter */ -- 2.20.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2020-02-11 11:17:44.160207651 +0000 +++ 0159-net-bnxt-fix-alloc-filter-to-use-a-common-routine.patch 2020-02-11 11:17:38.760008079 +0000 @@ -1,13 +1,14 @@ -From 2b3879f8e39d10a7c57ad718195af3b686e94a9c Mon Sep 17 00:00:00 2001 +From 84087cb7305924f960ff179c7fa4ebc429e56edf Mon Sep 17 00:00:00 2001 From: Somnath Kotur Date: Tue, 28 Jan 2020 12:59:15 +0530 Subject: [PATCH] net/bnxt: fix alloc filter to use a common routine +[ upstream commit 2b3879f8e39d10a7c57ad718195af3b686e94a9c ] + Invoke bnxt_get_unused_filter() inside bnxt_alloc_filter() so that all filters are allocated from one common routine. Fixes: f92735db1e4c ("net/bnxt: add L2 filter alloc/init/free") -Cc: stable@dpdk.org Reviewed-by: Kalesh AP Signed-off-by: Somnath Kotur @@ -17,7 +18,7 @@ 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/bnxt/bnxt_filter.c b/drivers/net/bnxt/bnxt_filter.c -index b31f10479e..e2184334f7 100644 +index 04231b069d..2f890779d2 100644 --- a/drivers/net/bnxt/bnxt_filter.c +++ b/drivers/net/bnxt/bnxt_filter.c @@ -26,13 +26,11 @@ struct bnxt_filter_info *bnxt_alloc_filter(struct bnxt *bp)