Home
last modified time | relevance | path

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

/openbmc/linux/drivers/net/ethernet/amazon/ena/
H A Dena_xdp.c232 struct bpf_prog *old_bpf_prog; in ena_xdp_exchange_program_rx_in_range() local
240 if (!old_bpf_prog && prog) { in ena_xdp_exchange_program_rx_in_range()
243 } else if (old_bpf_prog && !prog) { in ena_xdp_exchange_program_rx_in_range()
260 if (old_bpf_prog) in ena_xdp_exchange_program()
261 bpf_prog_put(old_bpf_prog); in ena_xdp_exchange_program()
289 struct bpf_prog *old_bpf_prog; in ena_xdp_set() local
296 old_bpf_prog = adapter->xdp_bpf_prog; in ena_xdp_set()
300 } else if (!old_bpf_prog) { in ena_xdp_set()
306 if (is_up && !old_bpf_prog) { in ena_xdp_set()
312 } else if (old_bpf_prog) { in ena_xdp_set()
[all …]
/openbmc/linux/drivers/net/vmxnet3/
H A Dvmxnet3_xdp.c42 struct bpf_prog *old_bpf_prog; in vmxnet3_xdp_set() local
58 old_bpf_prog = rcu_dereference(adapter->xdp_bpf_prog); in vmxnet3_xdp_set()
59 if (!new_bpf_prog && !old_bpf_prog) in vmxnet3_xdp_set()
63 need_update = !!old_bpf_prog != !!new_bpf_prog; in vmxnet3_xdp_set()
69 if (old_bpf_prog) in vmxnet3_xdp_set()
70 bpf_prog_put(old_bpf_prog); in vmxnet3_xdp_set()