Lines Matching refs:ct
30 static void tcf_ctinfo_dscp_set(struct nf_conn *ct, struct tcf_ctinfo *ca,
36 newdscp = (((READ_ONCE(ct->mark) & cp->dscpmask) >> cp->dscpmaskshift) << 2) &
71 static void tcf_ctinfo_cpmark_set(struct nf_conn *ct, struct tcf_ctinfo *ca,
76 skb->mark = READ_ONCE(ct->mark) & cp->cpmarkmask;
89 struct nf_conn *ct;
119 ct = nf_ct_get(skb, &ctinfo);
120 if (!ct) { /* look harder, usually ingress */
131 ct = nf_ct_tuplehash_to_ctrack(thash);
135 if (!cp->dscpstatemask || (READ_ONCE(ct->mark) & cp->dscpstatemask))
136 tcf_ctinfo_dscp_set(ct, ca, cp, skb, wlen, proto);
139 tcf_ctinfo_cpmark_set(ct, ca, cp, skb);
142 nf_ct_put(ct);