Lines Matching refs:INET_ECN_MASK
17 INET_ECN_MASK = 3, enumerator
24 return (dsfield & INET_ECN_MASK) == INET_ECN_CE; in INET_ECN_is_ce()
29 return (dsfield & INET_ECN_MASK) == INET_ECN_NOT_ECT; in INET_ECN_is_not_ect()
47 outer &= ~INET_ECN_MASK; in INET_ECN_encapsulate()
48 outer |= !INET_ECN_is_ce(inner) ? (inner & INET_ECN_MASK) : in INET_ECN_encapsulate()
62 inet_sk(sk)->tos &= ~INET_ECN_MASK; in INET_ECN_dontxmit()
64 inet6_sk(sk)->tclass &= ~INET_ECN_MASK; in INET_ECN_dontxmit()
68 (label) &= ~htonl(INET_ECN_MASK << 20); \
79 u32 ecn = (iph->tos + 1) & INET_ECN_MASK; in IP_ECN_set_ce()
107 if ((iph->tos & INET_ECN_MASK) != INET_ECN_ECT_0) in IP_ECN_set_ect1()
113 iph->tos ^= INET_ECN_MASK; in IP_ECN_set_ect1()
119 iph->tos &= ~INET_ECN_MASK; in IP_ECN_clear()
124 dscp &= ~INET_ECN_MASK; in ipv4_copy_dscp()
125 ipv4_change_dsfield(inner, INET_ECN_MASK, dscp); in ipv4_copy_dscp()
156 if ((ipv6_get_dsfield(iph) & INET_ECN_MASK) != INET_ECN_ECT_0) in IP6_ECN_set_ect1()
160 to = from ^ htonl(INET_ECN_MASK << 20); in IP6_ECN_set_ect1()
170 dscp &= ~INET_ECN_MASK; in ipv6_copy_dscp()
171 ipv6_change_dsfield(inner, INET_ECN_MASK, dscp); in ipv6_copy_dscp()
239 switch (outer & INET_ECN_MASK) { in __INET_ECN_decapsulate()
264 else if ((outer & INET_ECN_MASK) == INET_ECN_ECT_1) in INET_ECN_decapsulate()