Searched refs:bpf_mprog_entry (Results 1 – 7 of 7) sorted by relevance
/openbmc/linux/include/linux/ |
H A D | bpf_mprog.h | 139 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 D | netdevice.h | 2259 struct bpf_mprog_entry __rcu *tcx_ingress; 2288 struct bpf_mprog_entry __rcu *tcx_egress;
|
/openbmc/linux/include/net/ |
H A D | tcx.h | 34 static inline struct tcx_entry *tcx_entry(struct bpf_mprog_entry *entry) in tcx_entry() 63 tcx_entry_update(struct net_device *dev, struct bpf_mprog_entry *entry, in tcx_entry_update() 73 static inline struct bpf_mprog_entry * 83 static inline struct bpf_mprog_entry *tcx_entry_create(void) in tcx_entry_create() 94 static inline void tcx_entry_free(struct bpf_mprog_entry *entry) in tcx_entry_free() 99 static inline struct bpf_mprog_entry * 102 struct bpf_mprog_entry *entry = tcx_entry_fetch(dev, ingress); in tcx_entry_fetch_or_create() 132 static inline void tcx_miniq_inc(struct bpf_mprog_entry *entry) in tcx_miniq_inc() 138 static inline void tcx_miniq_dec(struct bpf_mprog_entry *entry) in tcx_miniq_dec() 144 static inline bool tcx_entry_is_active(struct bpf_mprog_entry *entry) in tcx_entry_is_active()
|
/openbmc/linux/kernel/bpf/ |
H A D | mprog.c | 108 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 D | tcx.c | 14 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()
|
/openbmc/linux/net/sched/ |
H A D | sch_ingress.c | 82 struct bpf_mprog_entry *entry; in ingress_init() 116 struct bpf_mprog_entry *entry = rtnl_dereference(dev->tcx_ingress); in ingress_destroy() 246 struct bpf_mprog_entry *entry; in clsact_init() 294 struct bpf_mprog_entry *ingress_entry = rtnl_dereference(dev->tcx_ingress); in clsact_destroy() 295 struct bpf_mprog_entry *egress_entry = rtnl_dereference(dev->tcx_egress); in clsact_destroy()
|
/openbmc/linux/net/core/ |
H A D | dev.c | 4028 tcx_run(const struct bpf_mprog_entry *entry, struct sk_buff *skb, in tcx_run() 4052 struct bpf_mprog_entry *entry = rcu_dereference_bh(skb->dev->tcx_ingress); in sch_handle_ingress() 4107 struct bpf_mprog_entry *entry = rcu_dereference_bh(dev->tcx_egress); in sch_handle_egress()
|