• Home
  • Raw
  • Download

Lines Matching refs:cp

31 				struct tcf_ctinfo_params *cp,  in tcf_ctinfo_dscp_set()  argument
36 newdscp = (((ct->mark & cp->dscpmask) >> cp->dscpmaskshift) << 2) & in tcf_ctinfo_dscp_set()
72 struct tcf_ctinfo_params *cp, in tcf_ctinfo_cpmark_set() argument
76 skb->mark = ct->mark & cp->cpmarkmask; in tcf_ctinfo_cpmark_set()
87 struct tcf_ctinfo_params *cp; in tcf_ctinfo_act() local
92 cp = rcu_dereference_bh(ca->params); in tcf_ctinfo_act()
121 proto, cp->net, &tuple)) in tcf_ctinfo_act()
123 zone.id = cp->zone; in tcf_ctinfo_act()
126 thash = nf_conntrack_find_get(cp->net, &zone, &tuple); in tcf_ctinfo_act()
133 if (cp->mode & CTINFO_MODE_DSCP) in tcf_ctinfo_act()
134 if (!cp->dscpstatemask || (ct->mark & cp->dscpstatemask)) in tcf_ctinfo_act()
135 tcf_ctinfo_dscp_set(ct, ca, cp, skb, wlen, proto); in tcf_ctinfo_act()
137 if (cp->mode & CTINFO_MODE_CPMARK) in tcf_ctinfo_act()
138 tcf_ctinfo_cpmark_set(ct, ca, cp, skb); in tcf_ctinfo_act()
292 struct tcf_ctinfo_params *cp; in tcf_ctinfo_dump() local
296 cp = rcu_dereference_protected(ci->params, in tcf_ctinfo_dump()
307 if (nla_put_u16(skb, TCA_CTINFO_ZONE, cp->zone)) in tcf_ctinfo_dump()
310 if (cp->mode & CTINFO_MODE_DSCP) { in tcf_ctinfo_dump()
312 cp->dscpmask)) in tcf_ctinfo_dump()
315 cp->dscpstatemask)) in tcf_ctinfo_dump()
319 if (cp->mode & CTINFO_MODE_CPMARK) { in tcf_ctinfo_dump()
321 cp->cpmarkmask)) in tcf_ctinfo_dump()
366 struct tcf_ctinfo_params *cp; in tcf_ctinfo_cleanup() local
368 cp = rcu_dereference_protected(ci->params, 1); in tcf_ctinfo_cleanup()
369 if (cp) in tcf_ctinfo_cleanup()
370 kfree_rcu(cp, rcu); in tcf_ctinfo_cleanup()