Lines Matching refs:v

27 	struct tcf_vlan *v = a->priv;  in tcf_vlan()  local
31 spin_lock(&v->tcf_lock); in tcf_vlan()
32 v->tcf_tm.lastuse = jiffies; in tcf_vlan()
33 bstats_update(&v->tcf_bstats, skb); in tcf_vlan()
34 action = v->tcf_action; in tcf_vlan()
36 switch (v->tcfv_action) { in tcf_vlan()
43 err = skb_vlan_push(skb, v->tcfv_push_proto, v->tcfv_push_vid); in tcf_vlan()
55 v->tcf_qstats.drops++; in tcf_vlan()
57 spin_unlock(&v->tcf_lock); in tcf_vlan()
73 struct tcf_vlan *v; in tcf_vlan_init() local
119 ret = tcf_hash_create(parm->index, est, a, sizeof(*v), bind); in tcf_vlan_init()
132 v = to_vlan(a); in tcf_vlan_init()
134 spin_lock_bh(&v->tcf_lock); in tcf_vlan_init()
136 v->tcfv_action = action; in tcf_vlan_init()
137 v->tcfv_push_vid = push_vid; in tcf_vlan_init()
138 v->tcfv_push_proto = push_proto; in tcf_vlan_init()
140 v->tcf_action = parm->action; in tcf_vlan_init()
142 spin_unlock_bh(&v->tcf_lock); in tcf_vlan_init()
153 struct tcf_vlan *v = a->priv; in tcf_vlan_dump() local
155 .index = v->tcf_index, in tcf_vlan_dump()
156 .refcnt = v->tcf_refcnt - ref, in tcf_vlan_dump()
157 .bindcnt = v->tcf_bindcnt - bind, in tcf_vlan_dump()
158 .action = v->tcf_action, in tcf_vlan_dump()
159 .v_action = v->tcfv_action, in tcf_vlan_dump()
166 if (v->tcfv_action == TCA_VLAN_ACT_PUSH && in tcf_vlan_dump()
167 (nla_put_u16(skb, TCA_VLAN_PUSH_VLAN_ID, v->tcfv_push_vid) || in tcf_vlan_dump()
168 nla_put_be16(skb, TCA_VLAN_PUSH_VLAN_PROTOCOL, v->tcfv_push_proto))) in tcf_vlan_dump()
171 t.install = jiffies_to_clock_t(jiffies - v->tcf_tm.install); in tcf_vlan_dump()
172 t.lastuse = jiffies_to_clock_t(jiffies - v->tcf_tm.lastuse); in tcf_vlan_dump()
173 t.expires = jiffies_to_clock_t(v->tcf_tm.expires); in tcf_vlan_dump()