Lines Matching refs:tp
1818 int tc_classify_compat(struct sk_buff *skb, const struct tcf_proto *tp, in tc_classify_compat() argument
1824 for (; tp; tp = rcu_dereference_bh(tp->next)) { in tc_classify_compat()
1825 if (tp->protocol != protocol && in tc_classify_compat()
1826 tp->protocol != htons(ETH_P_ALL)) in tc_classify_compat()
1828 err = tp->classify(skb, tp, res); in tc_classify_compat()
1842 int tc_classify(struct sk_buff *skb, const struct tcf_proto *tp, in tc_classify() argument
1847 const struct tcf_proto *otp = tp; in tc_classify()
1851 err = tc_classify_compat(skb, tp, res); in tc_classify()
1855 tp = otp; in tc_classify()
1859 tp->q->ops->id, in tc_classify()
1860 tp->prio & 0xffff, in tc_classify()
1861 ntohs(tp->protocol)); in tc_classify()
1872 bool tcf_destroy(struct tcf_proto *tp, bool force) in tcf_destroy() argument
1874 if (tp->ops->destroy(tp, force)) { in tcf_destroy()
1875 module_put(tp->ops->owner); in tcf_destroy()
1876 kfree_rcu(tp, rcu); in tcf_destroy()
1885 struct tcf_proto *tp; in tcf_destroy_chain() local
1887 while ((tp = rtnl_dereference(*fl)) != NULL) { in tcf_destroy_chain()
1888 RCU_INIT_POINTER(*fl, tp->next); in tcf_destroy_chain()
1889 tcf_destroy(tp, true); in tcf_destroy_chain()