* [dpdk-dev] [PATCH] net/bnxt: fix logic error when freeing RSS context
@ 2019-07-10 14:24 Lance Richardson
2019-07-16 16:16 ` Ferruh Yigit
0 siblings, 1 reply; 2+ messages in thread
From: Lance Richardson @ 2019-07-10 14:24 UTC (permalink / raw)
To: dev; +Cc: ajit.khaparde, Lance Richardson
The conditional used to determine whether freeing RSS
contexts for thor vs. non-thor controller was reversed.
Fix this, also reset number of active RSS contexts to
zero after release in the thor case.
Fixes: 38412304b50a ("net/bnxt: enable RSS for thor-based controllers")
Signed-off-by: Lance Richardson <lance.richardson@broadcom.com>
Reviewed-by: Ajit Kumar Khaparde <ajit.khaparde@broadcom.com>
---
drivers/net/bnxt/bnxt_hwrm.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/bnxt/bnxt_hwrm.c b/drivers/net/bnxt/bnxt_hwrm.c
index 696974c83..71f03775a 100644
--- a/drivers/net/bnxt/bnxt_hwrm.c
+++ b/drivers/net/bnxt/bnxt_hwrm.c
@@ -2312,12 +2312,13 @@ void bnxt_free_all_hwrm_resources(struct bnxt *bp)
bnxt_clear_hwrm_vnic_filters(bp, vnic);
- if (!BNXT_CHIP_THOR(bp)) {
+ if (BNXT_CHIP_THOR(bp)) {
for (j = 0; j < vnic->num_lb_ctxts; j++) {
bnxt_hwrm_vnic_ctx_free(bp, vnic,
vnic->fw_grp_ids[j]);
vnic->fw_grp_ids[j] = INVALID_HW_RING_ID;
}
+ vnic->num_lb_ctxts = 0;
} else {
bnxt_hwrm_vnic_ctx_free(bp, vnic, vnic->rss_rule);
vnic->rss_rule = INVALID_HW_RING_ID;
--
2.17.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dpdk-dev] [PATCH] net/bnxt: fix logic error when freeing RSS context
2019-07-10 14:24 [dpdk-dev] [PATCH] net/bnxt: fix logic error when freeing RSS context Lance Richardson
@ 2019-07-16 16:16 ` Ferruh Yigit
0 siblings, 0 replies; 2+ messages in thread
From: Ferruh Yigit @ 2019-07-16 16:16 UTC (permalink / raw)
To: Lance Richardson, dev; +Cc: ajit.khaparde
On 7/10/2019 3:24 PM, Lance Richardson wrote:
> The conditional used to determine whether freeing RSS
> contexts for thor vs. non-thor controller was reversed.
> Fix this, also reset number of active RSS contexts to
> zero after release in the thor case.
>
> Fixes: 38412304b50a ("net/bnxt: enable RSS for thor-based controllers")
> Signed-off-by: Lance Richardson <lance.richardson@broadcom.com>
> Reviewed-by: Ajit Kumar Khaparde <ajit.khaparde@broadcom.com>
Applied to dpdk-next-net/master, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-07-16 16:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-10 14:24 [dpdk-dev] [PATCH] net/bnxt: fix logic error when freeing RSS context Lance Richardson
2019-07-16 16:16 ` Ferruh Yigit
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).