* [PATCH v2 net-next] octeontx2-af: nix: Log TX scheduler queue validation failures
@ 2026-09-23 3:35 Ratheesh Kannoth
2026-09-25 12:08 ` Simon Horman
0 siblings, 1 reply; 2+ messages in thread
From: Ratheesh Kannoth @ 2026-09-23 3:35 UTC (permalink / raw)
To: linux-kernel, netdev
Cc: andrew+netdev, davem, edumazet, kuba, pabeni, sgoutham,
Subbaraya Sundeep, Ratheesh Kannoth
From: Subbaraya Sundeep <sbhatta@marvell.com>
Emit logs when is_valid_txschq() rejects a scheduler queue
mapping so misconfigured TX scheduler allocations are easier to
diagnose.
Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com>
Signed-off-by: Ratheesh Kannoth <rkannoth@marvell.com>
---
v1 -> v2:
- Switch dev_err() to dev_err_ratelimited() on PF/VF-driven paths
- Add schq and lvl to both rejection messages
- Clarify PF/link mismatch wording instead of "Invalid tx link"
- Stop logging another function's map_func pcifunc
---
.../net/ethernet/marvell/octeontx2/af/rvu_nix.c | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
diff --git a/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c b/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
index 153eb57bad06..b0551559dacb 100644
--- a/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
+++ b/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
@@ -324,15 +324,23 @@ static bool is_valid_txschq(struct rvu *rvu, int blkaddr,
if (lvl >= hw->cap.nix_tx_aggr_lvl) {
if ((nix_get_tx_link(rvu, map_func) !=
nix_get_tx_link(rvu, pcifunc)) &&
- (rvu_get_pf(rvu->pdev, map_func) !=
- rvu_get_pf(rvu->pdev, pcifunc)))
+ (rvu_get_pf(rvu->pdev, map_func) !=
+ rvu_get_pf(rvu->pdev, pcifunc))) {
+ dev_err_ratelimited(rvu->dev,
+ "NIX TX schq %u lvl %d: pcifunc %x PF/link mismatch\n",
+ schq, lvl, pcifunc);
return false;
- else
+ } else {
return true;
+ }
}
- if (map_func != pcifunc)
+ if (map_func != pcifunc) {
+ dev_err_ratelimited(rvu->dev,
+ "NIX TX schq %u lvl %d: not owned by pcifunc %x\n",
+ schq, lvl, pcifunc);
return false;
+ }
return true;
}
--
2.43.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH v2 net-next] octeontx2-af: nix: Log TX scheduler queue validation failures
2026-09-23 3:35 [PATCH v2 net-next] octeontx2-af: nix: Log TX scheduler queue validation failures Ratheesh Kannoth
@ 2026-09-25 12:08 ` Simon Horman
0 siblings, 0 replies; 2+ messages in thread
From: Simon Horman @ 2026-09-25 12:08 UTC (permalink / raw)
To: Ratheesh Kannoth
Cc: linux-kernel, netdev, andrew+netdev, davem, edumazet, kuba,
pabeni, sgoutham, Subbaraya Sundeep
On Wed, Sep 23, 2026 at 09:05:00AM +0530, Ratheesh Kannoth wrote:
> From: Subbaraya Sundeep <sbhatta@marvell.com>
>
> Emit logs when is_valid_txschq() rejects a scheduler queue
> mapping so misconfigured TX scheduler allocations are easier to
> diagnose.
>
> Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com>
> Signed-off-by: Ratheesh Kannoth <rkannoth@marvell.com>
>
> ---
> v1 -> v2:
>
> - Switch dev_err() to dev_err_ratelimited() on PF/VF-driven paths
> - Add schq and lvl to both rejection messages
> - Clarify PF/link mismatch wording instead of "Invalid tx link"
> - Stop logging another function's map_func pcifunc
Reviewed-by: Simon Horman <horms@kernel.org>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-09-25 12:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-23 3:35 [PATCH v2 net-next] octeontx2-af: nix: Log TX scheduler queue validation failures Ratheesh Kannoth
2026-09-25 12:08 ` Simon Horman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®