/openbmc/qemu/qapi/ |
H A D | qobject-input-visitor.c | 123 StackObject *tos; in qobject_input_try_get_object() local 134 tos = QSLIST_FIRST(&qiv->stack); in qobject_input_try_get_object() 135 qobj = tos->obj; in qobject_input_try_get_object() 141 if (tos->h && consume && ret) { in qobject_input_try_get_object() 142 bool removed = g_hash_table_remove(tos->h, name); in qobject_input_try_get_object() 148 if (tos->entry) { in qobject_input_try_get_object() 149 ret = qlist_entry_obj(tos->entry); in qobject_input_try_get_object() 151 tos->entry = qlist_next(tos->entry); in qobject_input_try_get_object() 157 tos->index++; in qobject_input_try_get_object() 212 StackObject *tos = g_new0(StackObject, 1); in qobject_input_push() local [all …]
|
/openbmc/linux/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()
|
/openbmc/linux/drivers/infiniband/core/ |
H A D | cma_trace.h | 30 __field(u32, tos) 37 __entry->tos = id_priv->tos; 45 __entry->cm_id, __entry->srcaddr, __entry->dstaddr, __entry->tos 105 __field(u32, tos) 113 __entry->tos = id_priv->tos; 122 __entry->cm_id, __entry->srcaddr, __entry->dstaddr, __entry->tos, 184 __field(u32, tos) 197 __entry->tos = id_priv->tos; 217 __entry->tos, __entry->pd_id, 233 __field(u32, tos) [all …]
|
H A D | cma_configfs.c | 152 u8 tos; in default_roce_tos_show() local 158 tos = cma_get_default_roce_tos(cma_dev, group->port_num); in default_roce_tos_show() 161 return sysfs_emit(buf, "%u\n", tos); in default_roce_tos_show() 170 u8 tos; in default_roce_tos_store() local 172 ret = kstrtou8(buf, 0, &tos); in default_roce_tos_store() 180 ret = cma_set_default_roce_tos(cma_dev, group->port_num, tos); in default_roce_tos_store()
|
/openbmc/linux/include/net/ |
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)) argument 53 return RT_TOS(inet_sk(sk)->tos); in ip_sock_rt_tos() 154 __be32 saddr, u8 tos, int oif) in ip_route_output() argument 158 .flowi4_tos = tos, in ip_route_output() 169 __u8 proto, __u8 tos, int oif) in ip_route_output_ports() argument 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() argument 188 fl4->flowi4_tos = tos; in ip_route_output_gre() 203 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 | 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()
|
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()
|
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()
|
H A D | ip_tunnels.h | 52 u8 tos; /* TOS for IPv4, TC for IPv6 */ member 184 u8 tos, u8 ttl, __be32 label, in ip_tunnel_key_init() argument 193 key->tos = tos; in ip_tunnel_key_init() 255 __be32 key, __u8 tos, in ip_tunnel_init_flow() argument 270 fl4->flowi4_tos = tos; in ip_tunnel_init_flow() 446 return iph->tos; in ip_tunnel_get_dsfield() 467 static inline u8 ip_tunnel_ecn_encap(u8 tos, const struct iphdr *iph, in ip_tunnel_ecn_encap() argument 472 return INET_ECN_encapsulate(tos, inner); in ip_tunnel_ecn_encap() 486 u8 tos, u8 ttl, __be16 df, bool xnet);
|
H A D | dst_metadata.h | 199 __u8 tos, __u8 ttl, in __ip_tun_set_dst() argument 212 saddr, daddr, tos, ttl, in __ip_tun_set_dst() 224 return __ip_tun_set_dst(iph->saddr, iph->daddr, iph->tos, iph->ttl, in ip_tun_rx_dst() 230 __u8 tos, __u8 ttl, in __ipv6_tun_set_dst() argument 254 info->key.tos = tos; in __ipv6_tun_set_dst()
|
/openbmc/linux/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()
|
/openbmc/linux/arch/x86/include/asm/ |
H A D | irq_stack.h | 83 register void *tos asm("r11"); \ 85 tos = ((void *)(stack)); \ 95 : "+r" (tos), ASM_CALL_CONSTRAINT \ 96 : [__func] "i" (func), [tos] "r" (tos) argconstr \
|
/openbmc/linux/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}
|
/openbmc/linux/include/uapi/linux/ |
H A D | ip.h | 25 #define IPTOS_TOS(tos) ((tos)&IPTOS_TOS_MASK) argument 32 #define IPTOS_PREC(tos) ((tos)&IPTOS_PREC_MASK) argument 97 __u8 tos; member
|
H A D | rds.h | 160 __u8 tos; member 183 __u8 tos; member 194 __u8 tos; member 227 __u8 tos; member 254 __u8 tos; member 270 __u8 tos; member
|
/openbmc/linux/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()
|
/openbmc/linux/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)
|
/openbmc/linux/net/ipv4/ |
H A D | ip_tunnel.c | 297 iph->tos & INET_DSCP_MASK, tunnel->net, in ip_tunnel_bind_dev() 426 &iph->saddr, iph->tos); in ip_tunnel_rcv() 595 u8 tos, ttl; in ip_md_tunnel_xmit() local 605 tos = key->tos; in ip_md_tunnel_xmit() 606 if (tos == 1) { in ip_md_tunnel_xmit() 608 tos = inner_iph->tos; in ip_md_tunnel_xmit() 610 tos = ipv6_get_dsfield((const struct ipv6hdr *)inner_iph); in ip_md_tunnel_xmit() 614 tos & INET_DSCP_MASK, tunnel->net, 0, skb->mark, in ip_md_tunnel_xmit() 650 tos = ip_tunnel_ecn_encap(tos, inner_iph, skb); in ip_md_tunnel_xmit() 669 iptunnel_xmit(NULL, rt, skb, fl4.saddr, fl4.daddr, proto, tos, ttl, in ip_md_tunnel_xmit() [all …]
|
/openbmc/linux/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | vxlan.sh | 92 ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789 109 ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789 126 ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789 144 ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789 \ 163 ttl 20 tos inherit dstport 4789 180 ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789 198 ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789 dev dummy1 216 ttl 20 tos inherit local $LOCAL_IP_1 dstport 4789 \ 234 ttl 20 tos 20 local $LOCAL_IP_1 dstport 4789 251 ttl inherit tos inherit local $LOCAL_IP_1 dstport 4789 [all …]
|
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 \
|
/openbmc/linux/net/netfilter/ |
H A D | nft_chain_route.c | 26 u8 tos; in nf_route_table_hook4() local 35 tos = iph->tos; in nf_route_table_hook4() 44 iph->tos != tos) { in nf_route_table_hook4()
|
/openbmc/linux/arch/x86/events/intel/ |
H A D | lbr.c | 209 u64 tos; in intel_pmu_lbr_tos() local 211 rdmsrl(x86_pmu.lbr_tos, tos); in intel_pmu_lbr_tos() 212 return tos; in intel_pmu_lbr_tos() 364 u64 tos = task_ctx->tos; in intel_pmu_lbr_restore() local 370 lbr_idx = (tos - i) & mask; in intel_pmu_lbr_restore() 375 lbr_idx = (tos - i) & mask; in intel_pmu_lbr_restore() 382 wrmsrl(x86_pmu.lbr_tos, tos); in intel_pmu_lbr_restore() 421 return !rdlbr_from(((struct x86_perf_task_context *)ctx)->tos, NULL); in lbr_is_reset_in_cstate() 457 u64 tos; in intel_pmu_lbr_save() local 461 tos = intel_pmu_lbr_tos(); in intel_pmu_lbr_save() [all …]
|
/openbmc/linux/tools/testing/selftests/net/ |
H A D | l2_tos_ttl_inherit.sh | 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 $test_tos \
|
/openbmc/linux/drivers/infiniband/hw/irdma/ |
H A D | trace_cm.h | 119 TP_PROTO(struct irdma_device *iwdev, u8 tos, u8 user_pri), 120 TP_ARGS(iwdev, tos, user_pri), 122 __field(u8, tos) 126 __entry->tos = tos; 131 __entry->tos, 137 TP_PROTO(struct irdma_device *iwdev, u8 tos, u8 user_pri), 138 TP_ARGS(iwdev, tos, user_pri)); 141 TP_PROTO(struct irdma_device *iwdev, u8 tos, u8 user_pri), 142 TP_ARGS(iwdev, tos, user_pri));
|