Message ID | 20230918153611.165722-2-bigeasy@linutronix.de (mailing list archive) |
---|---|
State | Accepted |
Commit | 6f411fb5ca9419090bee6a0a46425e0a5060b734 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | Add missing xdp_do_flush() invocations. | expand |
diff --git a/drivers/net/ethernet/amazon/ena/ena_netdev.c b/drivers/net/ethernet/amazon/ena/ena_netdev.c index ad32ca81f7ef4..f955bde10cf90 100644 --- a/drivers/net/ethernet/amazon/ena/ena_netdev.c +++ b/drivers/net/ethernet/amazon/ena/ena_netdev.c @@ -1833,6 +1833,9 @@ static int ena_clean_rx_irq(struct ena_ring *rx_ring, struct napi_struct *napi, return work_done; error: + if (xdp_flags & ENA_XDP_REDIRECT) + xdp_do_flush(); + adapter = netdev_priv(rx_ring->netdev); if (rc == -ENOSPC) {