]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd153439cecf787da35fcb6519ff08d0289896ed1
tree886a27a5f7c7ace15b6f18dfbde78b736eb6f486
parent19fcbdc309b012edc56fc9a13ceda3d15a040b03
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