octeontx2-af: verify CQ context updates
authorHariprasad Kelam <hkelam@marvell.com>
Fri, 17 Sep 2021 13:10:24 +0000 (18:40 +0530)
committerDavid S. Miller <davem@davemloft.net>
Sun, 19 Sep 2021 13:05:50 +0000 (14:05 +0100)
commit14e94f9445a9e91d460f5d4b519f8892c3fb14bb
tree886a27a5f7c7ace15b6f18dfbde78b736eb6f486
parentf7116fb4608500ad93eca03e0ad158b75fa85d0b
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.

Signed-off-by: Hariprasad Kelam <hkelam@marvell.com>
Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c