octeontx2-pf: Do xdp_do_flush() after redirects.
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Mon, 18 Sep 2023 15:36:11 +0000 (17:36 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 21 Sep 2023 07:01:41 +0000 (09:01 +0200)
commit70b2b6892645e58ed6f051dad7f8d1083f0ad553
tree7c814c716b5580644a455f5cdba8fc921592c9f4
parentedc0140cc3b7b91874ebe70eb7d2a851e8817ccc
octeontx2-pf: Do xdp_do_flush() after redirects.

xdp_do_flush() should be invoked before leaving the NAPI poll function
if XDP-redirect has been performed.

Invoke xdp_do_flush() before leaving NAPI.

Cc: Geetha sowjanya <gakula@marvell.com>
Cc: Subbaraya Sundeep <sbhatta@marvell.com>
Cc: Sunil Goutham <sgoutham@marvell.com>
Cc: hariprasad <hkelam@marvell.com>
Fixes: 06059a1a9a4a5 ("octeontx2-pf: Add XDP support to netdev PF")
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Acked-by: Geethasowjanya Akula <gakula@marvell.com>
Acked-by: Jesper Dangaard Brouer <hawk@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c