diff options
author | David Arinzon <darinzon@amazon.com> | 2024-01-01 20:08:50 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-01-04 03:00:57 +0100 |
commit | 436c793585951464e2b679c440083daa19f6fb02 (patch) | |
tree | f25044c426f3107877ee5c234e162b6b0d070cfb /drivers/net/ethernet/amazon | |
parent | net: ena: Use tx_ring instead of xdp_ring for XDP channel TX (diff) | |
download | linux-436c793585951464e2b679c440083daa19f6fb02.tar.xz linux-436c793585951464e2b679c440083daa19f6fb02.zip |
net: ena: Don't check if XDP program is loaded in ena_xdp_execute()
This check is already done in ena_clean_rx_irq() which indirectly
calls it.
This function is called in napi context and the driver doesn't
allow to change the XDP program without performing destruction and
reinitialization of napi context (part of ena_down/ena_up sequence).
Signed-off-by: Shay Agroskin <shayagr@amazon.com>
Signed-off-by: David Arinzon <darinzon@amazon.com>
Link: https://lore.kernel.org/r/20240101190855.18739-7-darinzon@amazon.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/amazon')
-rw-r--r-- | drivers/net/ethernet/amazon/ena/ena_xdp.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/ethernet/amazon/ena/ena_xdp.h b/drivers/net/ethernet/amazon/ena/ena_xdp.h index 3fa8e80b18a9..25204fb54c74 100644 --- a/drivers/net/ethernet/amazon/ena/ena_xdp.h +++ b/drivers/net/ethernet/amazon/ena/ena_xdp.h @@ -87,9 +87,6 @@ static inline int ena_xdp_execute(struct ena_ring *rx_ring, struct xdp_buff *xdp xdp_prog = READ_ONCE(rx_ring->xdp_bpf_prog); - if (!xdp_prog) - return verdict; - verdict = bpf_prog_run_xdp(xdp_prog, xdp); switch (verdict) { |