/linux-master/samples/bpf/ |
H A D | tcp_tos_reflect_kern.c | 31 int tos = 0; local 55 tos = hdr->tos; 56 if (tos != 0) 58 &tos, sizeof(tos)); 61 tos = ((hdr6->priority) << 4 | 63 if (tos) 66 &tos, sizeof(tos)); [all...] |
/linux-master/net/xfrm/ |
H A D | xfrm_inout.h | 16 XFRM_MODE_SKB_CB(skb)->tos = iph->tos; 31 XFRM_MODE_SKB_CB(skb)->tos = ipv6_get_dsfield(iph); 51 ipv6_change_dsfield(iph, 0, XFRM_MODE_SKB_CB(skb)->tos); 63 iph->tos = XFRM_MODE_SKB_CB(skb)->tos;
|
/linux-master/include/uapi/linux/ |
H A D | in_route.h | 31 #define RT_TOS(tos) ((tos)&IPTOS_TOS_MASK)
|
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 in struct:iphdr
|
H A D | rds.h | 160 __u8 tos; member in struct:rds_info_connection 183 __u8 tos; member in struct:rds_info_message 194 __u8 tos; member in struct:rds6_info_message 227 __u8 tos; member in struct:rds_info_tcp_socket 254 __u8 tos; member in struct:rds_info_rdma_connection 270 __u8 tos; member in struct:rds6_info_rdma_connection
|
/linux-master/include/net/ |
H A D | dsfield.h | 18 return iph->tos; 34 dsfield = (iph->tos & mask) | value; 35 check += iph->tos; 40 iph->tos = dsfield;
|
H A D | inet_ecn.h | 56 inet_sk(sk)->tos |= INET_ECN_ECT_0; 63 inet_sk(sk)->tos &= ~INET_ECN_MASK; 79 u32 ecn = (iph->tos + 1) & INET_ECN_MASK; 101 iph->tos |= INET_ECN_CE; 107 if ((iph->tos & INET_ECN_MASK) != INET_ECN_ECT_0) 111 iph->tos ^= INET_ECN_MASK; 117 iph->tos &= ~INET_ECN_MASK; 293 inner = ip_hdr(skb)->tos; 302 return INET_ECN_decapsulate(skb, oiph->tos, inner); 312 inner = ip_hdr(skb)->tos; [all...] |
H A D | erspan.h | 164 static inline u8 tos_to_cos(u8 tos) argument 168 dscp = tos >> 2; 185 u8 tos; local 188 tos = is_ipv4 ? ip_hdr(skb)->tos : 209 ershdr->cos = tos_to_cos(tos); 282 u8 tos; local 284 tos = is_ipv4 ? ip_hdr(skb)->tos : 303 ershdr->cos = tos_to_cos(tos); [all...] |
H A D | route.h | 50 return RT_TOS(READ_ONCE(inet_sk(sk)->tos)); 145 __be32 saddr, u8 tos, int oif) 149 .flowi4_tos = tos, 160 __u8 proto, __u8 tos, int oif) 162 flowi4_init_output(fl4, oif, sk ? READ_ONCE(sk->sk_mark) : 0, tos, 173 __be32 gre_key, __u8 tos, int oif) 179 fl4->flowi4_tos = tos; 185 u8 tos, struct net_device *dev, 188 u8 tos, struct net_device *devin); 190 u8 tos, struc 144 ip_route_output(struct net *net, __be32 daddr, __be32 saddr, u8 tos, int oif) argument 156 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) argument 171 ip_route_output_gre(struct net *net, struct flowi4 *fl4, __be32 daddr, __be32 saddr, __be32 gre_key, __u8 tos, int oif) argument 193 ip_route_input(struct sk_buff *skb, __be32 dst, __be32 src, u8 tos, struct net_device *devin) argument 256 rt_tos2priority(u8 tos) argument [all...] |
H A D | dst_metadata.h | 199 __u8 tos, __u8 ttl, 212 saddr, daddr, tos, ttl, 224 return __ip_tun_set_dst(iph->saddr, iph->daddr, iph->tos, iph->ttl, 230 __u8 tos, __u8 ttl, 254 info->key.tos = tos; 197 __ip_tun_set_dst(__be32 saddr, __be32 daddr, __u8 tos, __u8 ttl, __be16 tp_dst, __be16 flags, __be64 tunnel_id, int md_size) argument 228 __ipv6_tun_set_dst(const struct in6_addr *saddr, const struct in6_addr *daddr, __u8 tos, __u8 ttl, __be16 tp_dst, __be32 label, __be16 flags, __be64 tunnel_id, int md_size) argument
|
/linux-master/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...] |
/linux-master/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...] |
H A D | cma_configfs.c | 152 u8 tos; local 158 tos = cma_get_default_roce_tos(cma_dev, group->port_num); 161 return sysfs_emit(buf, "%u\n", tos); 170 u8 tos; local 172 ret = kstrtou8(buf, 0, &tos); 180 ret = cma_set_default_roce_tos(cma_dev, group->port_num, tos);
|
/linux-master/tools/testing/selftests/net/forwarding/ |
H A D | mirror_gre_topo_lib.sh | 23 # | | : tos=inherit : tos=inherit | 32 # | tos=inherit tos=inherit | 64 ttl 100 tos inherit 67 ttl 100 tos inherit allow-localremote
|
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)
|
/linux-master/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | vxlan_ipv6.sh | 28 ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789 45 noudp6zerocsumrx udp6zerocsumtx ttl 20 tos inherit \ 54 udp6zerocsumrx noudp6zerocsumtx ttl 20 tos inherit \
|
/linux-master/net/ipv4/netfilter/ |
H A D | iptable_mangle.c | 44 u8 tos; local 51 tos = iph->tos; 62 iph->tos != tos) {
|
H A D | ipt_ECN.c | 30 if ((iph->tos & IPT_ECN_IP_MASK) != (einfo->ip_ect & IPT_ECN_IP_MASK)) { 35 oldtos = iph->tos; 36 iph->tos &= ~IPT_ECN_IP_MASK; 37 iph->tos |= (einfo->ip_ect & IPT_ECN_IP_MASK); 38 csum_replace2(&iph->check, htons(oldtos), htons(iph->tos));
|
/linux-master/net/netfilter/ |
H A D | nft_chain_route.c | 26 u8 tos; local 35 tos = iph->tos; 44 iph->tos != tos) {
|
/linux-master/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}
|
/linux-master/include/trace/events/ |
H A D | fib6.h | 25 __field( __u8, tos ) 45 __entry->tos = ip6_tclass(flp->flowlabel); 79 TP_printk("table %3u oif %d iif %d proto %u %pI6c/%u -> %pI6c/%u tos %d scope %d flags %x ==> dev %s gw %pI6c err %d", 82 __entry->tos, __entry->scope, __entry->flags,
|
/linux-master/include/uapi/linux/netfilter_bridge/ |
H A D | ebt_ip.h | 39 __u8 tos; member in struct:ebt_ip_info
|
/linux-master/include/linux/ |
H A D | netfilter_ipv4.h | 15 u_int8_t tos; member in struct:ip_rt_info
|
/linux-master/tools/testing/selftests/net/ |
H A D | l2_tos_ttl_inherit.sh | 37 # Get a random hex tos value between 0x00 and 0xfc, a multiple of 4 73 # We don't want a test-tos of 0x00, 74 # because this is the value that we get when no tos is set. 81 tos="fixed $test_tos" 84 tos="inherit $expected_tos" 102 "$type" "$outer" "$inner" "$tos" "$ttl" "$vlan" 141 remote 198.18.0.2 tos $test_tos ttl $test_ttl \ 144 remote 198.18.0.1 tos $test_tos ttl $test_ttl \ 155 remote fdd1:ced0:5d88:3fce::2 tos $test_tos \ 158 remote fdd1:ced0:5d88:3fce::1 tos [all...] |
/linux-master/drivers/net/ethernet/chelsio/libcxgb/ |
H A D | libcxgb_cm.c | 95 __be16 peer_port, u8 tos) 103 tos & ~INET_ECN_MASK, 0); 124 __be16 peer_port, u8 tos, __u32 sin6_scope_id) 92 cxgb_find_route(struct cxgb4_lld_info *lldi, struct net_device *(*get_real_dev)(struct net_device *), __be32 local_ip, __be32 peer_ip, __be16 local_port, __be16 peer_port, u8 tos) argument 121 cxgb_find_route6(struct cxgb4_lld_info *lldi, struct net_device *(*get_real_dev)(struct net_device *), __u8 *local_ip, __u8 *peer_ip, __be16 local_port, __be16 peer_port, u8 tos, __u32 sin6_scope_id) argument
|