Home
last modified time | relevance | path

Searched refs:INET_ECN_MASK (Results 1 – 23 of 23) sorted by relevance

/linux-6.1.9/include/net/
Dinet_ecn.h18 INET_ECN_MASK = 3, enumerator
25 return (dsfield & INET_ECN_MASK) == INET_ECN_CE; in INET_ECN_is_ce()
30 return (dsfield & INET_ECN_MASK) == INET_ECN_NOT_ECT; in INET_ECN_is_not_ect()
48 outer &= ~INET_ECN_MASK; in INET_ECN_encapsulate()
49 outer |= !INET_ECN_is_ce(inner) ? (inner & INET_ECN_MASK) : in INET_ECN_encapsulate()
63 inet_sk(sk)->tos &= ~INET_ECN_MASK; in INET_ECN_dontxmit()
65 inet6_sk(sk)->tclass &= ~INET_ECN_MASK; in INET_ECN_dontxmit()
69 (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()
[all …]
/linux-6.1.9/net/sched/
Dact_ctinfo.c36 ~INET_ECN_MASK; in tcf_ctinfo_dscp_set()
40 dscp = ipv4_get_dsfield(ip_hdr(skb)) & ~INET_ECN_MASK; in tcf_ctinfo_dscp_set()
44 INET_ECN_MASK, in tcf_ctinfo_dscp_set()
53 dscp = ipv6_get_dsfield(ipv6_hdr(skb)) & ~INET_ECN_MASK; in tcf_ctinfo_dscp_set()
57 INET_ECN_MASK, in tcf_ctinfo_dscp_set()
Dsch_dsmark.c218 & ~INET_ECN_MASK; in dsmark_enqueue()
228 & ~INET_ECN_MASK; in dsmark_enqueue()
Dsch_cake.c1580 ipv4_change_dsfield(ip_hdr(skb), INET_ECN_MASK, 0); in cake_handle_diffserv()
1600 ipv6_change_dsfield(ipv6_hdr(skb), INET_ECN_MASK, 0); in cake_handle_diffserv()
/linux-6.1.9/samples/bpf/
Dhbm_kern.h121 pkti->ecn = (ip6h->flow_lbl[0] >> 4) & INET_ECN_MASK; in hbm_get_pkt_info()
125 pkti->ecn = iph.tos & INET_ECN_MASK; in hbm_get_pkt_info()
/linux-6.1.9/drivers/net/ethernet/chelsio/libcxgb/
Dlibcxgb_cm.c103 tos & ~INET_ECN_MASK, 0); in cxgb_find_route()
/linux-6.1.9/net/ipv6/
Dip6_input.c204 (ipv6_get_dsfield(hdr) & INET_ECN_MASK), in ip6_rcv_core()
Dtcp_ipv6.c557 (tcp_rsk(req)->syn_tos & ~INET_ECN_MASK) | in tcp_v6_send_synack()
558 (np->tclass & INET_ECN_MASK) : in tcp_v6_send_synack()
969 tclass & ~INET_ECN_MASK, priority); in tcp_v6_send_response()
1332 newnp->tclass = tcp_rsk(req)->syn_tos & ~INET_ECN_MASK; in tcp_v6_syn_recv_sock()
Dreassembly.c65 return 1 << (ipv6_get_dsfield(ipv6h) & INET_ECN_MASK); in ip6_frag_ecn()
Dipv6_sockglue.c608 val &= ~INET_ECN_MASK; in do_ipv6_setsockopt()
609 val |= np->tclass & INET_ECN_MASK; in do_ipv6_setsockopt()
Dip6_tunnel.c712 __u8 dsfield = ipv6_get_dsfield(ipv6h) & ~INET_ECN_MASK; in ip4ip6_dscp_ecn_decapsulate()
715 ipv4_change_dsfield(ip_hdr(skb), INET_ECN_MASK, dsfield); in ip4ip6_dscp_ecn_decapsulate()
/linux-6.1.9/net/ipv6/netfilter/
Dnf_conntrack_reasm.c130 return 1 << (ipv6_get_dsfield(ipv6h) & INET_ECN_MASK); in ip6_frag_ecn()
/linux-6.1.9/net/ipv4/
Dip_input.c503 IPSTATS_MIB_NOECTPKTS + (iph->tos & INET_ECN_MASK), in ip_rcv_core()
Dip_fragment.c73 return 1 << (tos & INET_ECN_MASK); in ip4_frag_ecn()
Dip_sockglue.c582 val &= ~INET_ECN_MASK; in __ip_sock_set_tos()
583 val |= inet_sk(sk)->tos & INET_ECN_MASK; in __ip_sock_set_tos()
Dtcp_ipv4.c1021 (tcp_rsk(req)->syn_tos & ~INET_ECN_MASK) | in tcp_v4_send_synack()
1022 (inet_sk(sk)->tos & INET_ECN_MASK) : in tcp_v4_send_synack()
1541 newinet->tos = tcp_rsk(req)->syn_tos & ~INET_ECN_MASK; in tcp_v4_syn_recv_sock()
Dip_gre.c611 key->tos & ~INET_ECN_MASK, dev_net(dev), 0, in gre_fill_metadata_dst()
Dip_output.c1726 inet_sk(sk)->tos = arg->tos & ~INET_ECN_MASK; in ip_send_unicast_reply()
Dtcp_input.c342 switch (TCP_SKB_CB(skb)->ip_dsfield & INET_ECN_MASK) { in __tcp_ecn_check_ce()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtc_tun.c239 attr.fl.fl4.flowi4_tos = tun_key->tos & ~INET_ECN_MASK; in mlx5e_tc_tun_create_header_ipv4()
354 attr.fl.fl4.flowi4_tos = tun_key->tos & ~INET_ECN_MASK; in mlx5e_tc_tun_update_header_ipv4()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/
Den_tc.c2285 outer_ecn_key = match.key->tos & INET_ECN_MASK; in mlx5e_tc_verify_tunnel_ecn()
2286 outer_ecn_mask = match.mask->tos & INET_ECN_MASK; in mlx5e_tc_verify_tunnel_ecn()
2291 inner_ecn_key = match.key->tos & INET_ECN_MASK; in mlx5e_tc_verify_tunnel_ecn()
2292 inner_ecn_mask = match.mask->tos & INET_ECN_MASK; in mlx5e_tc_verify_tunnel_ecn()
2295 if (outer_ecn_mask != 0 && outer_ecn_mask != INET_ECN_MASK) { in mlx5e_tc_verify_tunnel_ecn()
2312 if (inner_ecn_mask && inner_ecn_mask != INET_ECN_MASK) { in mlx5e_tc_verify_tunnel_ecn()
/linux-6.1.9/net/xfrm/
Dxfrm_output.c347 dsfield &= ~INET_ECN_MASK; in xfrm6_tunnel_encap_add()
Dxfrm_policy.c3303 fl4->flowi4_tos = iph->tos & ~INET_ECN_MASK; in decode_session4()