Lines Matching refs:entry
33 static inline struct tcx_entry *tcx_entry(struct bpf_mprog_entry *entry) in tcx_entry() argument
35 struct bpf_mprog_bundle *bundle = entry->parent; in tcx_entry()
57 tcx_entry_update(struct net_device *dev, struct bpf_mprog_entry *entry, in tcx_entry_update() argument
62 rcu_assign_pointer(dev->tcx_ingress, entry); in tcx_entry_update()
64 rcu_assign_pointer(dev->tcx_egress, entry); in tcx_entry_update()
89 static inline void tcx_entry_free(struct bpf_mprog_entry *entry) in tcx_entry_free() argument
91 kfree_rcu(tcx_entry(entry), rcu); in tcx_entry_free()
97 struct bpf_mprog_entry *entry = tcx_entry_fetch(dev, ingress); in tcx_entry_fetch_or_create() local
100 if (!entry) { in tcx_entry_fetch_or_create()
101 entry = tcx_entry_create(); in tcx_entry_fetch_or_create()
102 if (!entry) in tcx_entry_fetch_or_create()
106 return entry; in tcx_entry_fetch_or_create()
127 static inline void tcx_miniq_inc(struct bpf_mprog_entry *entry) in tcx_miniq_inc() argument
130 tcx_entry(entry)->miniq_active++; in tcx_miniq_inc()
133 static inline void tcx_miniq_dec(struct bpf_mprog_entry *entry) in tcx_miniq_dec() argument
136 tcx_entry(entry)->miniq_active--; in tcx_miniq_dec()
139 static inline bool tcx_entry_is_active(struct bpf_mprog_entry *entry) in tcx_entry_is_active() argument
142 return bpf_mprog_total(entry) || tcx_entry(entry)->miniq_active; in tcx_entry_is_active()