Home
last modified time | relevance | path

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

/linux/include/linux/
H A Dbpf_mprog.h139 struct bpf_mprog_entry { struct
145 struct bpf_mprog_entry a; argument
146 struct bpf_mprog_entry b;
158 static inline struct bpf_mprog_entry *
159 bpf_mprog_peer(const struct bpf_mprog_entry *entry) in bpf_mprog_peer()
179 static inline void bpf_mprog_inc(struct bpf_mprog_entry *entry) in bpf_mprog_inc()
184 static inline void bpf_mprog_dec(struct bpf_mprog_entry *entry) in bpf_mprog_dec()
191 return ARRAY_SIZE(((struct bpf_mprog_entry *)NULL)->fp_items) - 1; in bpf_mprog_max()
194 static inline int bpf_mprog_total(struct bpf_mprog_entry *entry) in bpf_mprog_total()
202 static inline bool bpf_mprog_exists(struct bpf_mprog_entry *entry, in bpf_mprog_exists()
[all …]
H A Dnetdevice.h2089 struct bpf_mprog_entry __rcu *tcx_egress;
2123 struct bpf_mprog_entry __rcu *tcx_ingress;
/linux/include/net/
H A Dtcx.h34 static inline struct tcx_entry *tcx_entry(struct bpf_mprog_entry *entry) in tcx_entry()
58 tcx_entry_update(struct net_device *dev, struct bpf_mprog_entry *entry, in tcx_entry_update()
68 static inline struct bpf_mprog_entry *
78 static inline struct bpf_mprog_entry *tcx_entry_create_noprof(void) in tcx_entry_create_noprof()
90 static inline void tcx_entry_free(struct bpf_mprog_entry *entry) in tcx_entry_free()
95 static inline struct bpf_mprog_entry *
98 struct bpf_mprog_entry *entry = tcx_entry_fetch(dev, ingress); in tcx_entry_fetch_or_create()
128 static inline void tcx_miniq_inc(struct bpf_mprog_entry *entry) in tcx_miniq_inc()
134 static inline void tcx_miniq_dec(struct bpf_mprog_entry *entry) in tcx_miniq_dec()
140 static inline bool tcx_entry_is_active(struct bpf_mprog_entry *entry) in tcx_entry_is_active()
/linux/kernel/bpf/
H A Dmprog.c108 static int bpf_mprog_replace(struct bpf_mprog_entry *entry, in bpf_mprog_replace()
109 struct bpf_mprog_entry **entry_new, in bpf_mprog_replace()
127 static int bpf_mprog_insert(struct bpf_mprog_entry *entry, in bpf_mprog_insert()
128 struct bpf_mprog_entry **entry_new, in bpf_mprog_insert()
132 struct bpf_mprog_entry *peer; in bpf_mprog_insert()
151 static int bpf_mprog_delete(struct bpf_mprog_entry *entry, in bpf_mprog_delete()
152 struct bpf_mprog_entry **entry_new, in bpf_mprog_delete()
156 struct bpf_mprog_entry *peer; in bpf_mprog_delete()
178 static int bpf_mprog_pos_exact(struct bpf_mprog_entry *entry, in bpf_mprog_pos_exact()
193 static int bpf_mprog_pos_before(struct bpf_mprog_entry *entry, in bpf_mprog_pos_before()
[all …]
H A Dtcx.c14 struct bpf_mprog_entry *entry, *entry_new; in tcx_prog_attach()
63 struct bpf_mprog_entry *entry, *entry_new; in tcx_prog_detach()
97 struct bpf_mprog_entry *entry, *entry_new = NULL; in tcx_uninstall()
146 struct bpf_mprog_entry *entry, *entry_new; in tcx_link_prog_attach()
173 struct bpf_mprog_entry *entry, *entry_new; in tcx_link_release()
208 struct bpf_mprog_entry *entry, *entry_new; in tcx_link_update()
/linux/net/sched/
H A Dsch_ingress.c82 struct bpf_mprog_entry *entry; in ingress_init()
116 struct bpf_mprog_entry *entry = rtnl_dereference(dev->tcx_ingress); in ingress_destroy()
247 struct bpf_mprog_entry *entry; in clsact_init()
295 struct bpf_mprog_entry *ingress_entry = rtnl_dereference(dev->tcx_ingress); in clsact_destroy()
296 struct bpf_mprog_entry *egress_entry = rtnl_dereference(dev->tcx_egress); in clsact_destroy()
/linux/drivers/net/
H A Dnetkit.c21 struct bpf_mprog_entry __rcu *active;
39 netkit_run(const struct bpf_mprog_entry *entry, struct sk_buff *skb, in netkit_run()
85 const struct bpf_mprog_entry *entry; in netkit_xmit()
449 static struct bpf_mprog_entry *netkit_entry_fetch(struct net_device *dev, in netkit_entry_fetch()
453 struct bpf_mprog_entry *entry; in netkit_entry_fetch()
465 struct bpf_mprog_entry *entry) in netkit_entry_update()
512 struct bpf_mprog_entry *entry, *entry_new; in netkit_prog_attach()
553 struct bpf_mprog_entry *entry, *entry_new; in netkit_prog_detach()
611 struct bpf_mprog_entry *entry, *entry_new; in netkit_link_prog_attach()
632 struct bpf_mprog_entry *entry, *entry_new; in netkit_link_release()
[all …]
/linux/Documentation/networking/net_cachelines/
H A Dnet_device.rst109 struct bpf_mprog_entry tcx_ingress read_mostly …
121 struct bpf_mprog_entry tcx_egress read_mostly …
/linux/net/core/
H A Ddev.c4040 tcx_run(const struct bpf_mprog_entry *entry, struct sk_buff *skb, in tcx_run()
4064 struct bpf_mprog_entry *entry = rcu_dereference_bh(skb->dev->tcx_ingress); in sch_handle_ingress()
4127 struct bpf_mprog_entry *entry = rcu_dereference_bh(dev->tcx_egress); in sch_handle_egress()