• Home
  • Raw
  • Download

Lines Matching refs:p

46 	struct tcf_pedit *p;  in tcf_pedit_init()  local
69 pc = tcf_hash_create(parm->index, est, a, sizeof(*p), bind, in tcf_pedit_init()
73 p = to_pedit(pc); in tcf_pedit_init()
81 p = to_pedit(pc); in tcf_pedit_init()
86 if (p->tcfp_nkeys && p->tcfp_nkeys != parm->nkeys) { in tcf_pedit_init()
93 spin_lock_bh(&p->tcf_lock); in tcf_pedit_init()
94 p->tcfp_flags = parm->flags; in tcf_pedit_init()
95 p->tcf_action = parm->action; in tcf_pedit_init()
97 kfree(p->tcfp_keys); in tcf_pedit_init()
98 p->tcfp_keys = keys; in tcf_pedit_init()
99 p->tcfp_nkeys = parm->nkeys; in tcf_pedit_init()
101 memcpy(p->tcfp_keys, parm->keys, ksize); in tcf_pedit_init()
102 spin_unlock_bh(&p->tcf_lock); in tcf_pedit_init()
110 struct tcf_pedit *p = a->priv; in tcf_pedit_cleanup() local
112 if (p) { in tcf_pedit_cleanup()
113 struct tc_pedit_key *keys = p->tcfp_keys; in tcf_pedit_cleanup()
114 if (tcf_hash_release(&p->common, bind, &pedit_hash_info)) { in tcf_pedit_cleanup()
125 struct tcf_pedit *p = a->priv; in tcf_pedit() local
132 return p->tcf_action; in tcf_pedit()
138 spin_lock(&p->tcf_lock); in tcf_pedit()
140 p->tcf_tm.lastuse = jiffies; in tcf_pedit()
142 if (p->tcfp_nkeys > 0) { in tcf_pedit()
143 struct tc_pedit_key *tkey = p->tcfp_keys; in tcf_pedit()
145 for (i = p->tcfp_nkeys; i > 0; i--, tkey++) { in tcf_pedit()
179 printk("pedit BUG: index %d\n", p->tcf_index); in tcf_pedit()
183 p->tcf_qstats.overlimits++; in tcf_pedit()
185 p->tcf_bstats.bytes += qdisc_pkt_len(skb); in tcf_pedit()
186 p->tcf_bstats.packets++; in tcf_pedit()
187 spin_unlock(&p->tcf_lock); in tcf_pedit()
188 return p->tcf_action; in tcf_pedit()
195 struct tcf_pedit *p = a->priv; in tcf_pedit_dump() local
200 s = sizeof(*opt) + p->tcfp_nkeys * sizeof(struct tc_pedit_key); in tcf_pedit_dump()
207 memcpy(opt->keys, p->tcfp_keys, in tcf_pedit_dump()
208 p->tcfp_nkeys * sizeof(struct tc_pedit_key)); in tcf_pedit_dump()
209 opt->index = p->tcf_index; in tcf_pedit_dump()
210 opt->nkeys = p->tcfp_nkeys; in tcf_pedit_dump()
211 opt->flags = p->tcfp_flags; in tcf_pedit_dump()
212 opt->action = p->tcf_action; in tcf_pedit_dump()
213 opt->refcnt = p->tcf_refcnt - ref; in tcf_pedit_dump()
214 opt->bindcnt = p->tcf_bindcnt - bind; in tcf_pedit_dump()
217 t.install = jiffies_to_clock_t(jiffies - p->tcf_tm.install); in tcf_pedit_dump()
218 t.lastuse = jiffies_to_clock_t(jiffies - p->tcf_tm.lastuse); in tcf_pedit_dump()
219 t.expires = jiffies_to_clock_t(p->tcf_tm.expires); in tcf_pedit_dump()