[PATCH] common/cnxk: fix link cfg for sdp
Harman Kalra
hkalra at marvell.com
Tue Feb 27 19:55:19 CET 2024
Link configure registers are invalid and should not be accessed
for SDP ports. But while on txq release which does SQ flush calls
backpressure disable API which configures these link registers.
Fixes: 58debb813a8d ("common/cnxk: enable TM to listen on Rx pause frames")
Signed-off-by: Harman Kalra <hkalra at marvell.com>
---
drivers/common/cnxk/roc_nix_tm.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/common/cnxk/roc_nix_tm.c b/drivers/common/cnxk/roc_nix_tm.c
index 6a61e448a1..4e6a28f827 100644
--- a/drivers/common/cnxk/roc_nix_tm.c
+++ b/drivers/common/cnxk/roc_nix_tm.c
@@ -328,6 +328,9 @@ nix_tm_bp_config_set(struct roc_nix *roc_nix, uint16_t sq, uint16_t tc,
uint8_t k = 0;
int rc = 0, i;
+ if (roc_nix_is_sdp(roc_nix))
+ return 0;
+
sq_s = nix->sqs[sq];
if (!sq_s)
return -ENOENT;
--
2.18.0
More information about the dev
mailing list