/linux-master/include/net/netfilter/ |
H A D | nf_bpf_link.h | 9 int bpf_nf_link_attach(const union bpf_attr *attr, struct bpf_prog *prog); 11 static inline int bpf_nf_link_attach(const union bpf_attr *attr, struct bpf_prog *prog)
|
/linux-master/include/net/ |
H A D | netkit.h | 9 int netkit_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog); 10 int netkit_link_attach(const union bpf_attr *attr, struct bpf_prog *prog); 11 int netkit_prog_detach(const union bpf_attr *attr, struct bpf_prog *prog); 16 struct bpf_prog *prog) 22 struct bpf_prog *prog) 28 struct bpf_prog *prog)
|
H A D | tcx.h | 158 int tcx_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog); 159 int tcx_link_attach(const union bpf_attr *attr, struct bpf_prog *prog); 160 int tcx_prog_detach(const union bpf_attr *attr, struct bpf_prog *prog); 174 struct bpf_prog *prog) 180 struct bpf_prog *prog) 186 struct bpf_prog *prog)
|
H A D | sock_reuseport.h | 28 struct bpf_prog __rcu *prog; /* optional BPF sock selector */ 44 extern int reuseport_attach_prog(struct sock *sk, struct bpf_prog *prog);
|
/linux-master/drivers/hid/bpf/ |
H A D | hid_bpf_dispatch.h | 15 int hid_bpf_get_prog_attach_type(struct bpf_prog *prog); 17 struct bpf_prog *prog, __u32 flags); 23 struct bpf_prog;
|
/linux-master/include/net/netns/ |
H A D | bpf.h | 11 struct bpf_prog; 24 struct bpf_prog *progs[MAX_NETNS_BPF_ATTACH_TYPE];
|
/linux-master/include/linux/ |
H A D | bpf-netns.h | 26 struct bpf_prog; 32 struct bpf_prog *prog); 35 struct bpf_prog *prog); 44 struct bpf_prog *prog) 56 struct bpf_prog *prog)
|
H A D | bpf_lirc.h | 8 int lirc_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog); 13 struct bpf_prog *prog)
|
H A D | bpf_lsm.h | 28 const struct bpf_prog *prog); 31 bool bpf_lsm_is_trusted(const struct bpf_prog *prog); 46 void bpf_lsm_find_cgroup_shim(const struct bpf_prog *prog, bpf_func_t *bpf_func); 55 static inline bool bpf_lsm_is_trusted(const struct bpf_prog *prog) 61 const struct bpf_prog *prog) 76 static inline void bpf_lsm_find_cgroup_shim(const struct bpf_prog *prog,
|
H A D | bpf.h | 37 struct bpf_prog; 132 void (*map_poke_run)(struct bpf_map *map, u32 key, struct bpf_prog *old, 133 struct bpf_prog *new); 830 bool (*allowed)(const struct bpf_prog *prog); 939 int (*test_run)(struct bpf_prog *prog, const union bpf_attr *kattr, 948 const struct bpf_prog *prog); 954 const struct bpf_prog *prog, 957 const struct bpf_prog *prog); 963 struct bpf_prog *prog, u32 *target_size); 979 int (*prepare)(struct bpf_prog *pro 1528 struct bpf_prog { struct [all...] |
H A D | filter.h | 623 struct bpf_prog *prog; 638 static __always_inline u32 __bpf_prog_run(const struct bpf_prog *prog, 662 static __always_inline u32 bpf_prog_run(const struct bpf_prog *prog, const void *ctx) 675 static inline u32 bpf_prog_run_pin_on_cpu(const struct bpf_prog *prog, 774 static inline u32 __bpf_prog_run_save_cb(const struct bpf_prog *prog, 795 static inline u32 bpf_prog_run_save_cb(const struct bpf_prog *prog, 806 static inline u32 bpf_prog_run_clear_cb(const struct bpf_prog *prog, 825 void bpf_prog_change_xdp(struct bpf_prog *prev_prog, struct bpf_prog *prog); 827 static inline u32 bpf_prog_insn_size(const struct bpf_prog *pro [all...] |
H A D | bpf_mprog.h | 82 * struct bpf_prog *prog; 132 struct bpf_prog *prog; 148 struct bpf_prog *ref; 154 struct bpf_prog *prog; 203 struct bpf_prog *prog) 206 const struct bpf_prog *tmp; 322 struct bpf_prog *prog_new, struct bpf_link *link, 323 struct bpf_prog *prog_old, 328 struct bpf_prog *prog, struct bpf_link *link,
|
/linux-master/include/uapi/linux/netfilter/ |
H A D | xt_bpf.h | 12 struct bpf_prog; 19 struct bpf_prog *filter __attribute__((aligned(8))); 39 struct bpf_prog *filter __attribute__((aligned(8)));
|
/linux-master/samples/bpf/ |
H A D | run_cookie_uid_helper_example.sh | 8 iptables -D OUTPUT -m bpf --object-pinned ${mnt_dir}/bpf_prog -j ACCEPT 15 ./per_socket_stats_example ${mnt_dir}/bpf_prog $1
|
/linux-master/kernel/bpf/ |
H A D | prog_iter.c | 16 struct bpf_prog *prog; 33 bpf_prog_put((struct bpf_prog *)v); 39 __bpf_md_ptr(struct bpf_prog *, prog); 42 DEFINE_BPF_ITER_FUNC(bpf_prog, struct bpf_iter_meta *meta, struct bpf_prog *prog) 48 struct bpf_prog *prog; 71 bpf_prog_put((struct bpf_prog *)v); 82 BTF_ID(struct, bpf_prog) 92 .target = "bpf_prog",
|
/linux-master/include/net/tc_act/ |
H A D | tc_bpf.h | 14 struct bpf_prog __rcu *filter;
|
/linux-master/drivers/net/ethernet/stmicro/stmmac/ |
H A D | stmmac_xdp.h | 12 int stmmac_xdp_set_prog(struct stmmac_priv *priv, struct bpf_prog *prog,
|
/linux-master/drivers/net/ethernet/intel/igc/ |
H A D | igc_xdp.h | 7 int igc_xdp_set_prog(struct igc_adapter *adapter, struct bpf_prog *prog,
|
/linux-master/drivers/net/ethernet/microsoft/mana/ |
H A D | mana_bpf.c | 84 struct bpf_prog *prog; 88 prog = rcu_dereference(rxq->bpf_prog); 136 struct bpf_prog *mana_xdp_get(struct mana_port_context *apc) 140 return apc->bpf_prog; 143 static struct bpf_prog *mana_chn_xdp_get(struct mana_port_context *apc) 145 return rtnl_dereference(apc->rxqs[0]->bpf_prog); 149 void mana_chn_setxdp(struct mana_port_context *apc, struct bpf_prog *prog) 151 struct bpf_prog *old_prog = mana_chn_xdp_get(apc); 164 rcu_assign_pointer(apc->rxqs[i]->bpf_prog, prog); 171 static int mana_xdp_set(struct net_device *ndev, struct bpf_prog *pro [all...] |
/linux-master/tools/testing/selftests/net/ |
H A D | psock_lib.h | 65 struct sock_fprog bpf_prog; local 67 bpf_prog.filter = bpf_filter; 68 bpf_prog.len = ARRAY_SIZE(bpf_filter); 70 if (setsockopt(fd, SOL_SOCKET, SO_ATTACH_FILTER, &bpf_prog, 71 sizeof(bpf_prog))) {
|
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | xdp_devmap_attach.c | 42 val.bpf_prog.fd = dm_fd; 48 ASSERT_EQ(info.id, val.bpf_prog.id, "Match program id to devmap entry prog_id"); 56 val.bpf_prog.fd = bpf_program__fd(skel->progs.xdp_dummy_prog); 65 val.bpf_prog.fd = bpf_program__fd(skel->progs.xdp_dummy_dm_frags); 105 val.bpf_prog.fd = dm_fd_frags; 111 ASSERT_EQ(info.id, val.bpf_prog.id, 119 val.bpf_prog.fd = bpf_program__fd(skel->progs.xdp_dummy_dm);
|
H A D | xdp_cpumap_attach.c | 40 val.bpf_prog.fd = prog_fd; 46 ASSERT_EQ(info.id, val.bpf_prog.id, "Match program id to cpumap entry prog_id"); 54 val.bpf_prog.fd = bpf_program__fd(skel->progs.xdp_dummy_prog); 63 val.bpf_prog.fd = bpf_program__fd(skel->progs.xdp_dummy_cm_frags); 92 val.bpf_prog.fd = frags_prog_fd; 98 ASSERT_EQ(info.id, val.bpf_prog.id, 106 val.bpf_prog.fd = bpf_program__fd(skel->progs.xdp_dummy_cm);
|
/linux-master/kernel/bpf/preload/iterators/ |
H A D | iterators.bpf.c | 44 struct bpf_prog *dst_prog; 49 struct bpf_prog { struct 55 struct bpf_prog *prog; 98 SEC("iter/bpf_prog") 103 struct bpf_prog *prog = ctx->prog;
|
/linux-master/drivers/net/hyperv/ |
H A D | netvsc_bpf.c | 31 struct bpf_prog *prog; 38 prog = rcu_dereference(nvchan->bpf_prog); 119 struct bpf_prog *netvsc_xdp_get(struct netvsc_device *nvdev) 121 return rtnl_dereference(nvdev->chan_table[0].bpf_prog); 124 int netvsc_xdp_set(struct net_device *dev, struct bpf_prog *prog, 128 struct bpf_prog *old_prog; 156 rcu_assign_pointer(nvdev->chan_table[i].bpf_prog, prog); 165 int netvsc_vf_setxdp(struct net_device *vf_netdev, struct bpf_prog *prog)
|
/linux-master/drivers/net/ethernet/engleder/ |
H A D | tsnep_xdp.c | 9 int tsnep_xdp_setup_prog(struct tsnep_adapter *adapter, struct bpf_prog *prog, 12 struct bpf_prog *old_prog;
|