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>
This commit is contained in:
parent
911a8c9601
commit
436c793585
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user