octeontx2-af: verify CQ context updates
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
@@ -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
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