Home
last modified time | relevance | path

Searched refs:old_bpf_prog (Results 1 – 1 of 1) sorted by relevance

/Linux-v6.1/drivers/net/ethernet/amazon/ena/
Dena_netdev.c534 struct bpf_prog *old_bpf_prog = xchg(&adapter->xdp_bpf_prog, prog); in ena_xdp_exchange_program() local
541 if (old_bpf_prog) in ena_xdp_exchange_program()
542 bpf_prog_put(old_bpf_prog); in ena_xdp_exchange_program()
570 struct bpf_prog *old_bpf_prog; in ena_xdp_set() local
577 old_bpf_prog = adapter->xdp_bpf_prog; in ena_xdp_set()
581 } else if (!old_bpf_prog) { in ena_xdp_set()
587 if (is_up && !old_bpf_prog) { in ena_xdp_set()
592 } else if (old_bpf_prog) { in ena_xdp_set()
601 if (!old_bpf_prog) in ena_xdp_set()