Lines Matching refs:p
53 struct tcf_nat *p; in tcf_nat_init() local
69 pc = tcf_hash_create(parm->index, est, a, sizeof(*p), bind, in tcf_nat_init()
73 p = to_tcf_nat(pc); in tcf_nat_init()
76 p = to_tcf_nat(pc); in tcf_nat_init()
83 spin_lock_bh(&p->tcf_lock); in tcf_nat_init()
84 p->old_addr = parm->old_addr; in tcf_nat_init()
85 p->new_addr = parm->new_addr; in tcf_nat_init()
86 p->mask = parm->mask; in tcf_nat_init()
87 p->flags = parm->flags; in tcf_nat_init()
89 p->tcf_action = parm->action; in tcf_nat_init()
90 spin_unlock_bh(&p->tcf_lock); in tcf_nat_init()
100 struct tcf_nat *p = a->priv; in tcf_nat_cleanup() local
102 return tcf_hash_release(&p->common, bind, &nat_hash_info); in tcf_nat_cleanup()
108 struct tcf_nat *p = a->priv; in tcf_nat() local
118 spin_lock(&p->tcf_lock); in tcf_nat()
120 p->tcf_tm.lastuse = jiffies; in tcf_nat()
121 old_addr = p->old_addr; in tcf_nat()
122 new_addr = p->new_addr; in tcf_nat()
123 mask = p->mask; in tcf_nat()
124 egress = p->flags & TCA_NAT_FLAG_EGRESS; in tcf_nat()
125 action = p->tcf_action; in tcf_nat()
127 p->tcf_bstats.bytes += qdisc_pkt_len(skb); in tcf_nat()
128 p->tcf_bstats.packets++; in tcf_nat()
130 spin_unlock(&p->tcf_lock); in tcf_nat()
253 spin_lock(&p->tcf_lock); in tcf_nat()
254 p->tcf_qstats.drops++; in tcf_nat()
255 spin_unlock(&p->tcf_lock); in tcf_nat()
263 struct tcf_nat *p = a->priv; in tcf_nat_dump() local
275 opt->old_addr = p->old_addr; in tcf_nat_dump()
276 opt->new_addr = p->new_addr; in tcf_nat_dump()
277 opt->mask = p->mask; in tcf_nat_dump()
278 opt->flags = p->flags; in tcf_nat_dump()
280 opt->index = p->tcf_index; in tcf_nat_dump()
281 opt->action = p->tcf_action; in tcf_nat_dump()
282 opt->refcnt = p->tcf_refcnt - ref; in tcf_nat_dump()
283 opt->bindcnt = p->tcf_bindcnt - bind; in tcf_nat_dump()
286 t.install = jiffies_to_clock_t(jiffies - p->tcf_tm.install); in tcf_nat_dump()
287 t.lastuse = jiffies_to_clock_t(jiffies - p->tcf_tm.lastuse); in tcf_nat_dump()
288 t.expires = jiffies_to_clock_t(p->tcf_tm.expires); in tcf_nat_dump()