Lines Matching refs:tp
1820 int tc_classify(struct sk_buff *skb, const struct tcf_proto *tp, in tc_classify() argument
1825 const struct tcf_proto *old_tp = tp; in tc_classify()
1830 for (; tp; tp = rcu_dereference_bh(tp->next)) { in tc_classify()
1833 if (tp->protocol != protocol && in tc_classify()
1834 tp->protocol != htons(ETH_P_ALL)) in tc_classify()
1837 err = tp->classify(skb, tp, res); in tc_classify()
1851 tp->q->ops->id, tp->prio & 0xffff, in tc_classify()
1852 ntohs(tp->protocol)); in tc_classify()
1856 tp = old_tp; in tc_classify()
1863 bool tcf_destroy(struct tcf_proto *tp, bool force) in tcf_destroy() argument
1865 if (tp->ops->destroy(tp, force)) { in tcf_destroy()
1866 module_put(tp->ops->owner); in tcf_destroy()
1867 kfree_rcu(tp, rcu); in tcf_destroy()
1876 struct tcf_proto *tp; in tcf_destroy_chain() local
1878 while ((tp = rtnl_dereference(*fl)) != NULL) { in tcf_destroy_chain()
1879 RCU_INIT_POINTER(*fl, tp->next); in tcf_destroy_chain()
1880 tcf_destroy(tp, true); in tcf_destroy_chain()