old_prog 1842 drivers/net/ethernet/cavium/thunder/nicvf_main.c struct bpf_prog *old_prog; old_prog 1872 drivers/net/ethernet/cavium/thunder/nicvf_main.c old_prog = xchg(&nic->xdp_prog, prog); old_prog 1874 drivers/net/ethernet/cavium/thunder/nicvf_main.c if (old_prog) old_prog 1875 drivers/net/ethernet/cavium/thunder/nicvf_main.c bpf_prog_put(old_prog); old_prog 12511 drivers/net/ethernet/intel/i40e/i40e_main.c struct bpf_prog *old_prog; old_prog 12528 drivers/net/ethernet/intel/i40e/i40e_main.c old_prog = xchg(&vsi->xdp_prog, prog); old_prog 12540 drivers/net/ethernet/intel/i40e/i40e_main.c if (old_prog) old_prog 12541 drivers/net/ethernet/intel/i40e/i40e_main.c bpf_prog_put(old_prog); old_prog 10240 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c struct bpf_prog *old_prog; old_prog 10263 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c old_prog = xchg(&adapter->xdp_prog, prog); old_prog 10264 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c need_reset = (!!prog != !!old_prog); old_prog 10276 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c rcu_assign_pointer(adapter->xdp_prog, old_prog); old_prog 10285 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c if (old_prog) old_prog 10286 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c bpf_prog_put(old_prog); old_prog 4449 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c struct bpf_prog *old_prog; old_prog 4459 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c old_prog = xchg(&adapter->xdp_prog, prog); old_prog 4462 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c if (!!prog != !!old_prog) { old_prog 4480 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c if (old_prog) old_prog 4481 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c bpf_prog_put(old_prog); old_prog 2780 drivers/net/ethernet/mellanox/mlx4/en_netdev.c struct bpf_prog *old_prog; old_prog 2801 drivers/net/ethernet/mellanox/mlx4/en_netdev.c old_prog = rcu_dereference_protected( old_prog 2805 drivers/net/ethernet/mellanox/mlx4/en_netdev.c if (old_prog) old_prog 2806 drivers/net/ethernet/mellanox/mlx4/en_netdev.c bpf_prog_put(old_prog); old_prog 2855 drivers/net/ethernet/mellanox/mlx4/en_netdev.c old_prog = rcu_dereference_protected( old_prog 2859 drivers/net/ethernet/mellanox/mlx4/en_netdev.c if (old_prog) old_prog 2860 drivers/net/ethernet/mellanox/mlx4/en_netdev.c bpf_prog_put(old_prog); old_prog 435 drivers/net/ethernet/mellanox/mlx4/en_rx.c struct bpf_prog *old_prog; old_prog 437 drivers/net/ethernet/mellanox/mlx4/en_rx.c old_prog = rcu_dereference_protected( old_prog 440 drivers/net/ethernet/mellanox/mlx4/en_rx.c if (old_prog) old_prog 441 drivers/net/ethernet/mellanox/mlx4/en_rx.c bpf_prog_put(old_prog); old_prog 4417 drivers/net/ethernet/mellanox/mlx5/core/en_main.c struct bpf_prog *old_prog; old_prog 4451 drivers/net/ethernet/mellanox/mlx5/core/en_main.c old_prog = priv->channels.params.xdp_prog; old_prog 4460 drivers/net/ethernet/mellanox/mlx5/core/en_main.c old_prog = xchg(&priv->channels.params.xdp_prog, prog); old_prog 4463 drivers/net/ethernet/mellanox/mlx5/core/en_main.c if (old_prog) old_prog 4464 drivers/net/ethernet/mellanox/mlx5/core/en_main.c bpf_prog_put(old_prog); old_prog 4485 drivers/net/ethernet/mellanox/mlx5/core/en_main.c old_prog = xchg(&c->rq.xdp_prog, prog); old_prog 4486 drivers/net/ethernet/mellanox/mlx5/core/en_main.c if (old_prog) old_prog 4487 drivers/net/ethernet/mellanox/mlx5/core/en_main.c bpf_prog_put(old_prog); old_prog 4490 drivers/net/ethernet/mellanox/mlx5/core/en_main.c old_prog = xchg(&c->xskrq.xdp_prog, prog); old_prog 4491 drivers/net/ethernet/mellanox/mlx5/core/en_main.c if (old_prog) old_prog 4492 drivers/net/ethernet/mellanox/mlx5/core/en_main.c bpf_prog_put(old_prog); old_prog 581 drivers/net/ethernet/netronome/nfp/bpf/main.h bool old_prog, struct netlink_ext_ack *extack); old_prog 563 drivers/net/ethernet/netronome/nfp/bpf/offload.c bool old_prog, struct netlink_ext_ack *extack) old_prog 570 drivers/net/ethernet/netronome/nfp/bpf/offload.c if (prog && old_prog) { old_prog 582 drivers/net/ethernet/netronome/nfp/bpf/offload.c if (!old_prog && nn->dp.ctrl & NFP_NET_CFG_CTRL_BPF) old_prog 585 drivers/net/ethernet/netronome/nfp/bpf/offload.c if (old_prog && !prog) old_prog 592 drivers/net/ethernet/netronome/nfp/bpf/offload.c if (!old_prog) old_prog 1777 drivers/net/ethernet/socionext/netsec.c struct bpf_prog *old_prog; old_prog 1789 drivers/net/ethernet/socionext/netsec.c old_prog = xchg(&priv->xdp_prog, prog); old_prog 1790 drivers/net/ethernet/socionext/netsec.c if (old_prog) old_prog 1791 drivers/net/ethernet/socionext/netsec.c bpf_prog_put(old_prog); old_prog 1196 drivers/net/tun.c struct bpf_prog *old_prog; old_prog 1199 drivers/net/tun.c old_prog = rtnl_dereference(tun->xdp_prog); old_prog 1201 drivers/net/tun.c if (old_prog) old_prog 1202 drivers/net/tun.c bpf_prog_put(old_prog); old_prog 1069 drivers/net/veth.c struct bpf_prog *old_prog; old_prog 1074 drivers/net/veth.c old_prog = priv->_xdp_prog; old_prog 1108 drivers/net/veth.c if (!old_prog) { old_prog 1114 drivers/net/veth.c if (old_prog) { old_prog 1124 drivers/net/veth.c bpf_prog_put(old_prog); old_prog 1127 drivers/net/veth.c if ((!!old_prog ^ !!prog) && peer) old_prog 1132 drivers/net/veth.c priv->_xdp_prog = old_prog; old_prog 2409 drivers/net/virtio_net.c struct bpf_prog *old_prog; old_prog 2446 drivers/net/virtio_net.c old_prog = rtnl_dereference(vi->rq[0].xdp_prog); old_prog 2447 drivers/net/virtio_net.c if (!prog && !old_prog) old_prog 2482 drivers/net/virtio_net.c if (i == 0 && !old_prog) old_prog 2488 drivers/net/virtio_net.c if (old_prog) old_prog 2489 drivers/net/virtio_net.c bpf_prog_put(old_prog); old_prog 2503 drivers/net/virtio_net.c rcu_assign_pointer(vi->rq[i].xdp_prog, old_prog); old_prog 2665 drivers/net/virtio_net.c struct bpf_prog *old_prog; old_prog 2672 drivers/net/virtio_net.c old_prog = rtnl_dereference(vi->rq[i].xdp_prog); old_prog 2674 drivers/net/virtio_net.c if (old_prog) old_prog 2675 drivers/net/virtio_net.c bpf_prog_put(old_prog); old_prog 529 include/linux/bpf.h struct bpf_prog *old_prog); old_prog 305 kernel/bpf/cgroup.c struct bpf_prog *old_prog = NULL; old_prog 374 kernel/bpf/cgroup.c old_prog = pl->prog; old_prog 398 kernel/bpf/cgroup.c if (old_prog) { old_prog 399 kernel/bpf/cgroup.c bpf_prog_put(old_prog); old_prog 408 kernel/bpf/cgroup.c pl->prog = old_prog; old_prog 436 kernel/bpf/cgroup.c struct bpf_prog *old_prog = NULL; old_prog 457 kernel/bpf/cgroup.c old_prog = prog; old_prog 464 kernel/bpf/cgroup.c if (!old_prog) old_prog 471 kernel/bpf/cgroup.c old_prog = pl->prog; old_prog 490 kernel/bpf/cgroup.c bpf_prog_put(old_prog); old_prog 496 kernel/bpf/cgroup.c pl->prog = old_prog; old_prog 1872 kernel/bpf/core.c struct bpf_prog *old_prog) old_prog 1877 kernel/bpf/core.c if (item->prog == old_prog) { old_prog 1220 net/core/filter.c struct sock_filter *old_prog; old_prog 1237 net/core/filter.c old_prog = kmemdup(fp->insns, old_len * sizeof(struct sock_filter), old_prog 1239 net/core/filter.c if (!old_prog) { old_prog 1245 net/core/filter.c err = bpf_convert_filter(old_prog, old_len, NULL, &new_len, old_prog 1265 net/core/filter.c err = bpf_convert_filter(old_prog, old_len, fp, &new_len, old_prog 1279 net/core/filter.c kfree(old_prog); old_prog 1283 net/core/filter.c kfree(old_prog); old_prog 322 net/core/sock_reuseport.c struct bpf_prog *old_prog; old_prog 337 net/core/sock_reuseport.c old_prog = rcu_dereference_protected(reuse->prog, old_prog 342 net/core/sock_reuseport.c sk_reuseport_prog_free(old_prog); old_prog 350 net/core/sock_reuseport.c struct bpf_prog *old_prog; old_prog 355 net/core/sock_reuseport.c old_prog = NULL; old_prog 359 net/core/sock_reuseport.c rcu_swap_protected(reuse->prog, old_prog, old_prog 363 net/core/sock_reuseport.c if (!old_prog) old_prog 366 net/core/sock_reuseport.c sk_reuseport_prog_free(old_prog);