Lines Matching refs:m
38 struct tcf_mirred *m = to_mirred(a); in tcf_mirred_release() local
39 struct net_device *dev = rcu_dereference_protected(m->tcfm_dev, 1); in tcf_mirred_release()
43 list_del(&m->tcfm_list); in tcf_mirred_release()
59 struct tcf_mirred *m; in tcf_mirred_init() local
102 ret = tcf_hash_create(parm->index, est, a, sizeof(*m), in tcf_mirred_init()
115 m = to_mirred(a); in tcf_mirred_init()
118 m->tcf_action = parm->action; in tcf_mirred_init()
119 m->tcfm_eaction = parm->eaction; in tcf_mirred_init()
121 m->tcfm_ifindex = parm->ifindex; in tcf_mirred_init()
123 dev_put(rcu_dereference_protected(m->tcfm_dev, 1)); in tcf_mirred_init()
125 rcu_assign_pointer(m->tcfm_dev, dev); in tcf_mirred_init()
126 m->tcfm_ok_push = ok_push; in tcf_mirred_init()
131 list_add(&m->tcfm_list, &mirred_list); in tcf_mirred_init()
142 struct tcf_mirred *m = a->priv; in tcf_mirred() local
148 tcf_lastuse_update(&m->tcf_tm); in tcf_mirred()
150 bstats_cpu_update(this_cpu_ptr(m->common.cpu_bstats), skb); in tcf_mirred()
153 retval = READ_ONCE(m->tcf_action); in tcf_mirred()
154 dev = rcu_dereference(m->tcfm_dev); in tcf_mirred()
172 if (m->tcfm_ok_push) in tcf_mirred()
177 if (m->tcfm_eaction != TCA_EGRESS_MIRROR) in tcf_mirred()
187 qstats_overlimit_inc(this_cpu_ptr(m->common.cpu_qstats)); in tcf_mirred()
188 if (m->tcfm_eaction != TCA_EGRESS_MIRROR) in tcf_mirred()
199 struct tcf_mirred *m = a->priv; in tcf_mirred_dump() local
201 .index = m->tcf_index, in tcf_mirred_dump()
202 .action = m->tcf_action, in tcf_mirred_dump()
203 .refcnt = m->tcf_refcnt - ref, in tcf_mirred_dump()
204 .bindcnt = m->tcf_bindcnt - bind, in tcf_mirred_dump()
205 .eaction = m->tcfm_eaction, in tcf_mirred_dump()
206 .ifindex = m->tcfm_ifindex, in tcf_mirred_dump()
212 t.install = jiffies_to_clock_t(jiffies - m->tcf_tm.install); in tcf_mirred_dump()
213 t.lastuse = jiffies_to_clock_t(jiffies - m->tcf_tm.lastuse); in tcf_mirred_dump()
214 t.expires = jiffies_to_clock_t(m->tcf_tm.expires); in tcf_mirred_dump()
228 struct tcf_mirred *m; in mirred_device_event() local
233 list_for_each_entry(m, &mirred_list, tcfm_list) { in mirred_device_event()
234 if (rcu_access_pointer(m->tcfm_dev) == dev) { in mirred_device_event()
239 RCU_INIT_POINTER(m->tcfm_dev, NULL); in mirred_device_event()