Skip to contentSkip to conversation

octeontx2-af: verify CQ context updates

net-next Applied Hariprasad Kelam 2 participants 2 messages Sep 17, 2021 – Sep 19, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

As per HW errata AQ modification to CQ could be discarded on heavy traffic. This patch implements workaround for the same after each CQ write by AQ check whether the requested fields (except those which HW can update eg: avg_level) are properly updated or not.

If CQ context is not updated then perform AQ write again.

---
 .../net/ethernet/marvell/octeontx2/af/mbox.h  |  2 +
 .../ethernet/marvell/octeontx2/af/rvu_nix.c   | 78 ++++++++++++++++++-
 2 files changed, 79 insertions(+), 1 deletion(-)
drivers/net/ethernet/marvell/octeontx2/af/mbox.h +2 -0
index f77f745be05b..250eefa5e853 100644
@@ -704,6 +704,8 @@ enum nix_af_status {
 	NIX_AF_ERR_INVALID_BANDPROF = -426,
 	NIX_AF_ERR_IPOLICER_NOTSUPP = -427,
 	NIX_AF_ERR_BANDPROF_INVAL_REQ  = -428,
+	NIX_AF_ERR_CQ_CTX_WRITE_ERR  = -429,
+	NIX_AF_ERR_AQ_CTX_RETRY_WRITE  = -430,
 };
 
 /* For NIX RX vtag action  */
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c +77 -1

100 lines not on this page · raw message

Signature · 1 line
2.17.1
#1 lore raw
This patch was applied to netdev/net-next.git (refs/heads/master):

Hello:

This patch was applied to netdev/net-next.git (refs/heads/master):

Quoted 8 lines · On Fri, 17 Sep 2021 18:40:24 +0530 you wrote:

As per HW errata AQ modification to CQ could be discarded on heavy traffic. This patch implements workaround for the same after each CQ write by AQ check whether the requested fields (except those which HW can update eg: avg_level) are properly updated or not.

If CQ context is not updated then perform AQ write again.

[...]

Here is the summary with links:
- [net-next] octeontx2-af: verify CQ context updates

    https://git.kernel.org/netdev/net-next/c/14e94f9445a9

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html