Lines Matching refs:old_bpf_prog
521 struct bpf_prog *old_bpf_prog; in ena_xdp_exchange_program_rx_in_range() local
527 old_bpf_prog = xchg(&rx_ring->xdp_bpf_prog, prog); in ena_xdp_exchange_program_rx_in_range()
529 if (!old_bpf_prog && prog) { in ena_xdp_exchange_program_rx_in_range()
532 } else if (old_bpf_prog && !prog) { in ena_xdp_exchange_program_rx_in_range()
542 struct bpf_prog *old_bpf_prog = xchg(&adapter->xdp_bpf_prog, prog); in ena_xdp_exchange_program() local
549 if (old_bpf_prog) in ena_xdp_exchange_program()
550 bpf_prog_put(old_bpf_prog); in ena_xdp_exchange_program()
578 struct bpf_prog *old_bpf_prog; in ena_xdp_set() local
585 old_bpf_prog = adapter->xdp_bpf_prog; in ena_xdp_set()
589 } else if (!old_bpf_prog) { in ena_xdp_set()
595 if (is_up && !old_bpf_prog) { in ena_xdp_set()
600 } else if (old_bpf_prog) { in ena_xdp_set()
609 if (!old_bpf_prog) in ena_xdp_set()