/kernel/linux/linux-5.10/samples/bpf/ |
H A D | tcp_tos_reflect_kern.c | 31 int tos = 0; in bpf_basertt() local 55 tos = hdr->tos; in bpf_basertt() 56 if (tos != 0) in bpf_basertt() 58 &tos, sizeof(tos)); in bpf_basertt() 61 tos = ((hdr6->priority) << 4 | in bpf_basertt() 63 if (tos) in bpf_basertt() 66 &tos, sizeof(tos)); in bpf_basertt() [all...] |
/kernel/linux/linux-6.6/samples/bpf/ |
H A D | tcp_tos_reflect_kern.c | 31 int tos = 0; in bpf_basertt() local 55 tos = hdr->tos; in bpf_basertt() 56 if (tos != 0) in bpf_basertt() 58 &tos, sizeof(tos)); in bpf_basertt() 61 tos = ((hdr6->priority) << 4 | in bpf_basertt() 63 if (tos) in bpf_basertt() 66 &tos, sizeof(tos)); in bpf_basertt() [all...] |
/kernel/linux/linux-5.10/drivers/infiniband/core/ |
H A D | cma_trace.h | 30 __field(u32, tos) 37 __entry->tos = id_priv->tos; 44 TP_printk("cm.id=%u src=%pISpc dst=%pISpc tos=%u", 45 __entry->cm_id, __entry->srcaddr, __entry->dstaddr, __entry->tos 105 __field(u32, tos) 113 __entry->tos = id_priv->tos; 121 TP_printk("cm.id=%u src=%pISpc dst=%pISpc tos=%u qp_num=%u", 122 __entry->cm_id, __entry->srcaddr, __entry->dstaddr, __entry->tos, [all...] |
/kernel/linux/linux-6.6/drivers/infiniband/core/ |
H A D | cma_trace.h | 30 __field(u32, tos) 37 __entry->tos = id_priv->tos; 44 TP_printk("cm.id=%u src=%pISpc dst=%pISpc tos=%u", 45 __entry->cm_id, __entry->srcaddr, __entry->dstaddr, __entry->tos 105 __field(u32, tos) 113 __entry->tos = id_priv->tos; 121 TP_printk("cm.id=%u src=%pISpc dst=%pISpc tos=%u qp_num=%u", 122 __entry->cm_id, __entry->srcaddr, __entry->dstaddr, __entry->tos, [all...] |
/kernel/linux/linux-5.10/include/net/ |
H A D | route.h | 43 #define RT_CONN_FLAGS(sk) (RT_TOS(inet_sk(sk)->tos) | sock_flag(sk, SOCK_LOCALROUTE)) 44 #define RT_CONN_FLAGS_TOS(sk,tos) (RT_TOS(tos) | sock_flag(sk, SOCK_LOCALROUTE)) 146 __be32 saddr, u8 tos, int oif) in ip_route_output() 150 .flowi4_tos = tos, in ip_route_output() 161 __u8 proto, __u8 tos, int oif) in ip_route_output_ports() 163 flowi4_init_output(fl4, oif, sk ? sk->sk_mark : 0, tos, in ip_route_output_ports() 174 __be32 gre_key, __u8 tos, int oif) in ip_route_output_gre() 180 fl4->flowi4_tos = tos; in ip_route_output_gre() 186 u8 tos, struc 145 ip_route_output(struct net *net, __be32 daddr, __be32 saddr, u8 tos, int oif) ip_route_output() argument 157 ip_route_output_ports(struct net *net, struct flowi4 *fl4, struct sock *sk, __be32 daddr, __be32 saddr, __be16 dport, __be16 sport, __u8 proto, __u8 tos, int oif) ip_route_output_ports() argument 172 ip_route_output_gre(struct net *net, struct flowi4 *fl4, __be32 daddr, __be32 saddr, __be32 gre_key, __u8 tos, int oif) ip_route_output_gre() argument 198 ip_route_input(struct sk_buff *skb, __be32 dst, __be32 src, u8 tos, struct net_device *devin) ip_route_input() argument 262 rt_tos2priority(u8 tos) rt_tos2priority() argument 291 ip_route_connect_init(struct flowi4 *fl4, __be32 dst, __be32 src, u32 tos, int oif, u8 protocol, __be16 sport, __be16 dport, struct sock *sk) ip_route_connect_init() argument 306 ip_route_connect(struct flowi4 *fl4, __be32 dst, __be32 src, u32 tos, int oif, u8 protocol, __be16 sport, __be16 dport, struct sock *sk) ip_route_connect() argument [all...] |
H A D | erspan.h | 161 static inline u8 tos_to_cos(u8 tos) in tos_to_cos() argument 165 dscp = tos >> 2; in tos_to_cos() 182 u8 tos; in erspan_build_header() local 185 tos = is_ipv4 ? ip_hdr(skb)->tos : in erspan_build_header() 206 ershdr->cos = tos_to_cos(tos); in erspan_build_header() 279 u8 tos; in erspan_build_header_v2() local 281 tos = is_ipv4 ? ip_hdr(skb)->tos : in erspan_build_header_v2() 300 ershdr->cos = tos_to_cos(tos); in erspan_build_header_v2() [all...] |
H A D | inet_ecn.h | 55 inet_sk(sk)->tos |= INET_ECN_ECT_0; in INET_ECN_xmit() 62 inet_sk(sk)->tos &= ~INET_ECN_MASK; in INET_ECN_dontxmit() 79 u32 ecn = (iph->tos + 1) & INET_ECN_MASK; in IP_ECN_set_ce() 99 iph->tos |= INET_ECN_CE; 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() 278 inner = ip_hdr(skb)->tos; in IP_ECN_decapsulate() 287 return INET_ECN_decapsulate(skb, oiph->tos, inner); in IP_ECN_decapsulate() 297 inner = ip_hdr(skb)->tos; in IP6_ECN_decapsulate() [all...] |
H A D | dsfield.h | 18 return iph->tos; in ipv4_get_dsfield() 34 dsfield = (iph->tos & mask) | value; in ipv4_change_dsfield() 35 check += iph->tos; in ipv4_change_dsfield() 40 iph->tos = dsfield; in ipv4_change_dsfield()
|
/kernel/linux/linux-5.10/arch/x86/include/asm/ |
H A D | irq_stack.h | 23 void *tos = __this_cpu_read(hardirq_stack_ptr); in __run_on_irqstack() local 26 asm_call_on_stack(tos - 8, func, NULL); in __run_on_irqstack() 34 void *tos = __this_cpu_read(hardirq_stack_ptr); in __run_sysvec_on_irqstack() local 37 asm_call_sysvec_on_stack(tos - 8, func, regs); in __run_sysvec_on_irqstack() 45 void *tos = __this_cpu_read(hardirq_stack_ptr); in __run_irq_on_irqstack() local 48 asm_call_irq_on_stack(tos - 8, func, desc); in __run_irq_on_irqstack()
|
/kernel/linux/linux-6.6/include/net/ |
H A D | erspan.h | 164 static inline u8 tos_to_cos(u8 tos) in tos_to_cos() argument 168 dscp = tos >> 2; in tos_to_cos() 185 u8 tos; in erspan_build_header() local 188 tos = is_ipv4 ? ip_hdr(skb)->tos : in erspan_build_header() 209 ershdr->cos = tos_to_cos(tos); in erspan_build_header() 282 u8 tos; in erspan_build_header_v2() local 284 tos = is_ipv4 ? ip_hdr(skb)->tos : in erspan_build_header_v2() 303 ershdr->cos = tos_to_cos(tos); in erspan_build_header_v2() [all...] |
H A D | inet_ecn.h | 56 inet_sk(sk)->tos |= INET_ECN_ECT_0; in INET_ECN_xmit() 63 inet_sk(sk)->tos &= ~INET_ECN_MASK; in INET_ECN_dontxmit() 79 u32 ecn = (iph->tos + 1) & INET_ECN_MASK; in IP_ECN_set_ce() 101 iph->tos |= INET_ECN_CE; in IP_ECN_set_ce() 107 if ((iph->tos & INET_ECN_MASK) != INET_ECN_ECT_0) in IP_ECN_set_ect1() 111 iph->tos ^= INET_ECN_MASK; in IP_ECN_set_ect1() 117 iph->tos &= ~INET_ECN_MASK; in IP_ECN_clear() 293 inner = ip_hdr(skb)->tos; in IP_ECN_decapsulate() 302 return INET_ECN_decapsulate(skb, oiph->tos, inner); in IP_ECN_decapsulate() 312 inner = ip_hdr(skb)->tos; in IP6_ECN_decapsulate() [all...] |
H A D | route.h | 40 #define RT_CONN_FLAGS(sk) (RT_TOS(inet_sk(sk)->tos) | sock_flag(sk, SOCK_LOCALROUTE)) 41 #define RT_CONN_FLAGS_TOS(sk,tos) (RT_TOS(tos) | sock_flag(sk, SOCK_LOCALROUTE)) 53 return RT_TOS(inet_sk(sk)->tos); in ip_sock_rt_tos() 154 __be32 saddr, u8 tos, int oif) in ip_route_output() 158 .flowi4_tos = tos, in ip_route_output() 169 __u8 proto, __u8 tos, int oif) in ip_route_output_ports() 171 flowi4_init_output(fl4, oif, sk ? READ_ONCE(sk->sk_mark) : 0, tos, in ip_route_output_ports() 182 __be32 gre_key, __u8 tos, int oif) in ip_route_output_gre() 188 fl4->flowi4_tos = tos; in ip_route_output_gre() 153 ip_route_output(struct net *net, __be32 daddr, __be32 saddr, u8 tos, int oif) ip_route_output() argument 165 ip_route_output_ports(struct net *net, struct flowi4 *fl4, const struct sock *sk, __be32 daddr, __be32 saddr, __be16 dport, __be16 sport, __u8 proto, __u8 tos, int oif) ip_route_output_ports() argument 180 ip_route_output_gre(struct net *net, struct flowi4 *fl4, __be32 daddr, __be32 saddr, __be32 gre_key, __u8 tos, int oif) ip_route_output_gre() argument 202 ip_route_input(struct sk_buff *skb, __be32 dst, __be32 src, u8 tos, struct net_device *devin) ip_route_input() argument 265 rt_tos2priority(u8 tos) rt_tos2priority() argument [all...] |
H A D | dsfield.h | 18 return iph->tos; in ipv4_get_dsfield() 34 dsfield = (iph->tos & mask) | value; in ipv4_change_dsfield() 35 check += iph->tos; in ipv4_change_dsfield() 40 iph->tos = dsfield; in ipv4_change_dsfield()
|
/kernel/linux/linux-6.6/arch/x86/include/asm/ |
H A D | irq_stack.h | 37 * @tos: 38 * The @tos variable holds a pointer to the top of the irq stack and 42 * Note, that (tos) is both in input and output constraints to ensure 58 * As documented already above the @tos variable is required to be in 70 * - tos: 83 register void *tos asm("r11"); \ 85 tos = ((void *)(stack)); \ 88 "movq %%rsp, (%[tos]) \n" \ 89 "movq %[tos], %%rsp \n" \ 95 : "+r" (tos), ASM_CALL_CONSTRAIN [all...] |
/kernel/linux/linux-5.10/net/xfrm/ |
H A D | xfrm_inout.h | 16 XFRM_MODE_SKB_CB(skb)->tos = iph->tos; in xfrm4_extract_header() 31 XFRM_MODE_SKB_CB(skb)->tos = ipv6_get_dsfield(iph); in xfrm6_extract_header() 51 ipv6_change_dsfield(iph, 0, XFRM_MODE_SKB_CB(skb)->tos); in xfrm6_beet_make_header() 63 iph->tos = XFRM_MODE_SKB_CB(skb)->tos; in xfrm4_beet_make_header()
|
/kernel/linux/linux-6.6/net/xfrm/ |
H A D | xfrm_inout.h | 16 XFRM_MODE_SKB_CB(skb)->tos = iph->tos; in xfrm4_extract_header() 31 XFRM_MODE_SKB_CB(skb)->tos = ipv6_get_dsfield(iph); in xfrm6_extract_header() 51 ipv6_change_dsfield(iph, 0, XFRM_MODE_SKB_CB(skb)->tos); in xfrm6_beet_make_header() 63 iph->tos = XFRM_MODE_SKB_CB(skb)->tos; in xfrm4_beet_make_header()
|
/kernel/linux/linux-5.10/tools/testing/selftests/net/forwarding/ |
H A D | sch_red.sh | 276 backlog=$(build_backlog $((3 * limit / 2)) tcp tos=0x01) 289 -a own -b $h3_mac -t tcp -q tos=0x01 & 312 -a own -b $h3_mac -t tcp -q tos=0x01 & 338 -a own -b $h3_mac -t tcp -q tos=0x01 & 342 backlog=$(build_backlog $((2 * limit / 3)) tcp tos=0x01) 350 backlog=$(build_backlog $((3 * limit / 2)) tcp tos=0x01) 412 -a own -b $h3_mac -t tcp -q tos=0x01 & 418 backlog=$(build_backlog $((2 * limit / 3)) tcp tos=0x01) 423 backlog=$(build_backlog $((3 * limit / 2)) tcp tos=0x01)
|
/kernel/linux/linux-6.6/tools/testing/selftests/net/forwarding/ |
H A D | sch_red.sh | 276 backlog=$(build_backlog $((3 * limit / 2)) tcp tos=0x01) 289 -a own -b $h3_mac -t tcp -q tos=0x01 & 312 -a own -b $h3_mac -t tcp -q tos=0x01 & 338 -a own -b $h3_mac -t tcp -q tos=0x01 & 342 backlog=$(build_backlog $((2 * limit / 3)) tcp tos=0x01) 350 backlog=$(build_backlog $((3 * limit / 2)) tcp tos=0x01) 412 -a own -b $h3_mac -t tcp -q tos=0x01 & 418 backlog=$(build_backlog $((2 * limit / 3)) tcp tos=0x01) 423 backlog=$(build_backlog $((3 * limit / 2)) tcp tos=0x01)
|
/kernel/linux/linux-6.6/tools/testing/selftests/drivers/net/ocelot/ |
H A D | basic_qos.sh | 157 local tos=$1; shift 165 ping_do ${if_name} $H2_IPV4 "-Q ${tos}" 176 ping_do ${if_name} $H2_IPV6 "-Q ${tos}" 225 local tos=$(dscp_cs_to_tos 4) 228 run_test "Trusted DSCP QoS classification" ${h1} 4 ${tos} 233 ${h1}.100 3 ${tos} 237 ${h1} ${port_default} ${tos}
|
/kernel/linux/linux-5.10/include/uapi/linux/ |
H A D | ip.h | 25 #define IPTOS_TOS(tos) ((tos)&IPTOS_TOS_MASK) 32 #define IPTOS_PREC(tos) ((tos)&IPTOS_PREC_MASK) 97 __u8 tos; member
|
/kernel/linux/linux-5.10/net/ipv4/netfilter/ |
H A D | iptable_mangle.c | 44 u_int8_t tos; in ipt_mangle_out() local 54 tos = iph->tos; in ipt_mangle_out() 64 iph->tos != tos) { in ipt_mangle_out()
|
H A D | ipt_ECN.c | 30 if ((iph->tos & IPT_ECN_IP_MASK) != (einfo->ip_ect & IPT_ECN_IP_MASK)) { in set_ect_ip() 35 oldtos = iph->tos; in set_ect_ip() 36 iph->tos &= ~IPT_ECN_IP_MASK; in set_ect_ip() 37 iph->tos |= (einfo->ip_ect & IPT_ECN_IP_MASK); in set_ect_ip() 38 csum_replace2(&iph->check, htons(oldtos), htons(iph->tos)); in set_ect_ip()
|
/kernel/linux/linux-6.6/include/uapi/linux/ |
H A D | ip.h | 25 #define IPTOS_TOS(tos) ((tos)&IPTOS_TOS_MASK) 32 #define IPTOS_PREC(tos) ((tos)&IPTOS_PREC_MASK) 97 __u8 tos; member
|
/kernel/linux/linux-6.6/net/ipv4/netfilter/ |
H A D | iptable_mangle.c | 41 u_int8_t tos; in ipt_mangle_out() local 51 tos = iph->tos; in ipt_mangle_out() 61 iph->tos != tos) { in ipt_mangle_out()
|
H A D | ipt_ECN.c | 30 if ((iph->tos & IPT_ECN_IP_MASK) != (einfo->ip_ect & IPT_ECN_IP_MASK)) { in set_ect_ip() 35 oldtos = iph->tos; in set_ect_ip() 36 iph->tos &= ~IPT_ECN_IP_MASK; in set_ect_ip() 37 iph->tos |= (einfo->ip_ect & IPT_ECN_IP_MASK); in set_ect_ip() 38 csum_replace2(&iph->check, htons(oldtos), htons(iph->tos)); in set_ect_ip()
|