[PATCH 03/11] common/cnxk: set default SQ TC value
Nithin Dabilpuram
ndabilpuram at marvell.com
Mon Nov 28 10:54:34 CET 2022
From: Satha Rao <skoteshwar at marvell.com>
Zero is valid TC, initialize SQ TC value to ROC_NIX_PFC_CLASS_INVALID.
Signed-off-by: Satha Rao <skoteshwar at marvell.com>
---
drivers/common/cnxk/roc_nix_queue.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/common/cnxk/roc_nix_queue.c b/drivers/common/cnxk/roc_nix_queue.c
index 8a84a34bef..0dd3c8d4df 100644
--- a/drivers/common/cnxk/roc_nix_queue.c
+++ b/drivers/common/cnxk/roc_nix_queue.c
@@ -1235,6 +1235,7 @@ roc_nix_sq_init(struct roc_nix *roc_nix, struct roc_nix_sq *sq)
return NIX_ERR_QUEUE_INVALID_RANGE;
sq->roc_nix = roc_nix;
+ sq->tc = ROC_NIX_PFC_CLASS_INVALID;
/*
* Allocate memory for flow control updates from HW.
* Alloc one cache line, so that fits all FC_STYPE modes.
--
2.25.1
More information about the dev
mailing list