/linux-6.1.9/tools/testing/selftests/net/ |
D | ipv6_flowlabel.c | 53 static void do_send(int fd, bool with_flowlabel, uint32_t flowlabel) in do_send() argument 55 char control[CMSG_SPACE(sizeof(flowlabel))] = {0}; in do_send() 78 cm->cmsg_len = CMSG_LEN(sizeof(flowlabel)); in do_send() 81 *(uint32_t *)CMSG_DATA(cm) = htonl(flowlabel); in do_send() 92 fprintf(stderr, "sent with label %u\n", flowlabel); in do_send() 104 uint32_t flowlabel; in do_recv() local 140 flowlabel = ntohl(*(uint32_t *)CMSG_DATA(cm)); in do_recv() 141 fprintf(stderr, "recv with label %u\n", flowlabel); in do_recv() 143 if (expect != FLOWLABEL_WILDCARD && expect != flowlabel) { in do_recv() 145 flowlabel, expect); in do_recv()
|
/linux-6.1.9/Documentation/networking/ |
D | seg6-sysctl.rst | 29 Controls the behaviour of computing the flowlabel of outer 33 -1 set flowlabel to zero. 34 0 copy flowlabel from Inner packet in case of Inner IPv6 35 (Set flowlabel to 0 in case IPv4/L2) 36 1 Compute the flowlabel using seg6_make_flowlabel()
|
/linux-6.1.9/net/l2tp/ |
D | l2tp_ip6.c | 501 struct ip6_flowlabel *flowlabel = NULL; in l2tp_ip6_sendmsg() local 538 fl6.flowlabel = lsa->l2tp_flowinfo & IPV6_FLOWINFO_MASK; in l2tp_ip6_sendmsg() 539 if (fl6.flowlabel & IPV6_FLOWLABEL_MASK) { in l2tp_ip6_sendmsg() 540 flowlabel = fl6_sock_lookup(sk, fl6.flowlabel); in l2tp_ip6_sendmsg() 541 if (IS_ERR(flowlabel)) in l2tp_ip6_sendmsg() 562 fl6.flowlabel = np->flow_label; in l2tp_ip6_sendmsg() 576 fl6_sock_release(flowlabel); in l2tp_ip6_sendmsg() 579 if ((fl6.flowlabel & IPV6_FLOWLABEL_MASK) && !flowlabel) { in l2tp_ip6_sendmsg() 580 flowlabel = fl6_sock_lookup(sk, fl6.flowlabel); in l2tp_ip6_sendmsg() 581 if (IS_ERR(flowlabel)) in l2tp_ip6_sendmsg() [all …]
|
/linux-6.1.9/net/ipv6/ |
D | seg6_iptunnel.c | 114 __be32 flowlabel = 0; in seg6_make_flowlabel() local 120 flowlabel = (__force __be32)hash & IPV6_FLOWLABEL_MASK; in seg6_make_flowlabel() 122 flowlabel = ip6_flowlabel(inner_hdr); in seg6_make_flowlabel() 124 return flowlabel; in seg6_make_flowlabel() 135 __be32 flowlabel; in seg6_do_srh_encap() local 145 flowlabel = seg6_make_flowlabel(net, skb, inner_hdr); in seg6_do_srh_encap() 159 flowlabel); in seg6_do_srh_encap() 162 ip6_flow_hdr(hdr, 0, flowlabel); in seg6_do_srh_encap() 214 __be32 flowlabel; in seg6_do_srh_encap_red() local 238 flowlabel = seg6_make_flowlabel(net, skb, inner_hdr); in seg6_do_srh_encap_red() [all …]
|
D | raw.c | 746 struct ip6_flowlabel *flowlabel = NULL; in rawv6_sendmsg() local 805 fl6.flowlabel = sin6->sin6_flowinfo&IPV6_FLOWINFO_MASK; in rawv6_sendmsg() 806 if (fl6.flowlabel&IPV6_FLOWLABEL_MASK) { in rawv6_sendmsg() 807 flowlabel = fl6_sock_lookup(sk, fl6.flowlabel); in rawv6_sendmsg() 808 if (IS_ERR(flowlabel)) in rawv6_sendmsg() 831 fl6.flowlabel = np->flow_label; in rawv6_sendmsg() 845 fl6_sock_release(flowlabel); in rawv6_sendmsg() 848 if ((fl6.flowlabel&IPV6_FLOWLABEL_MASK) && !flowlabel) { in rawv6_sendmsg() 849 flowlabel = fl6_sock_lookup(sk, fl6.flowlabel); in rawv6_sendmsg() 850 if (IS_ERR(flowlabel)) in rawv6_sendmsg() [all …]
|
D | udp.c | 1335 struct ip6_flowlabel *flowlabel = NULL; in udpv6_sendmsg() local 1437 fl6->flowlabel = sin6->sin6_flowinfo&IPV6_FLOWINFO_MASK; in udpv6_sendmsg() 1438 if (fl6->flowlabel & IPV6_FLOWLABEL_MASK) { in udpv6_sendmsg() 1439 flowlabel = fl6_sock_lookup(sk, fl6->flowlabel); in udpv6_sendmsg() 1440 if (IS_ERR(flowlabel)) in udpv6_sendmsg() 1463 fl6->flowlabel = np->flow_label; in udpv6_sendmsg() 1486 fl6_sock_release(flowlabel); in udpv6_sendmsg() 1489 if ((fl6->flowlabel&IPV6_FLOWLABEL_MASK) && !flowlabel) { in udpv6_sendmsg() 1490 flowlabel = fl6_sock_lookup(sk, fl6->flowlabel); in udpv6_sendmsg() 1491 if (IS_ERR(flowlabel)) in udpv6_sendmsg() [all …]
|
D | ping.c | 98 fl6.flowlabel = u->sin6_flowinfo & IPV6_FLOWINFO_MASK; in ping_v6_sendmsg() 105 fl6.flowlabel = np->flow_label; in ping_v6_sendmsg() 156 fl6.flowlabel = ip6_make_flowinfo(ipc6.tclass, fl6.flowlabel); in ping_v6_sendmsg()
|
D | datagram.c | 54 fl6->flowlabel = np->flow_label; in ip6_datagram_flow_key_init() 73 struct ip6_flowlabel *flowlabel = NULL; in ip6_datagram_dst_update() local 83 flowlabel = fl6_sock_lookup(sk, np->flow_label); in ip6_datagram_dst_update() 84 if (IS_ERR(flowlabel)) in ip6_datagram_dst_update() 90 opt = flowlabel ? flowlabel->opt : rcu_dereference(np->opt); in ip6_datagram_dst_update() 115 fl6_sock_release(flowlabel); in ip6_datagram_dst_update() 853 if (fl6->flowlabel&IPV6_FLOWINFO_MASK) { in ip6_datagram_send_ctl() 854 if ((fl6->flowlabel^*(__be32 *)CMSG_DATA(cmsg))&~IPV6_FLOWINFO_MASK) { in ip6_datagram_send_ctl() 859 fl6->flowlabel = IPV6_FLOWINFO_MASK & *(__be32 *)CMSG_DATA(cmsg); in ip6_datagram_send_ctl()
|
D | inet6_connection_sock.c | 91 fl6->flowlabel = np->flow_label; in inet6_csk_route_socket() 92 IP6_ECN_flow_xmit(sk, fl6->flowlabel); in inet6_csk_route_socket()
|
D | tcp_ipv6.c | 171 fl6.flowlabel = usin->sin6_flowinfo&IPV6_FLOWINFO_MASK; in tcp_v6_connect() 172 IP6_ECN_flow_init(fl6.flowlabel); in tcp_v6_connect() 173 if (fl6.flowlabel&IPV6_FLOWLABEL_MASK) { in tcp_v6_connect() 174 struct ip6_flowlabel *flowlabel; in tcp_v6_connect() local 175 flowlabel = fl6_sock_lookup(sk, fl6.flowlabel); in tcp_v6_connect() 176 if (IS_ERR(flowlabel)) in tcp_v6_connect() 178 fl6_sock_release(flowlabel); in tcp_v6_connect() 224 np->flow_label = fl6.flowlabel; in tcp_v6_connect() 554 fl6->flowlabel = ip6_flowlabel(ipv6_hdr(ireq->pktopts)); in tcp_v6_send_synack() 925 fl6.flowlabel = label; in tcp_v6_send_response()
|
D | ip6_tunnel.c | 1147 fl6->flowlabel = ip6_make_flowinfo(dsfield, fl6->flowlabel); in ip6_tnl_xmit() 1260 ip6_make_flowlabel(net, skb, fl6->flowlabel, true, fl6)); in ip6_tnl_xmit() 1308 fl6.flowlabel = key->label; in ipxip6_tnl_xmit() 1369 fl6.flowlabel |= ip6_flowlabel(ipv6h); in ipxip6_tnl_xmit() 1463 fl6->flowlabel = 0; in ip6_tnl_link_config() 1466 fl6->flowlabel |= IPV6_TCLASS_MASK & p->flowinfo; in ip6_tnl_link_config() 1468 fl6->flowlabel |= IPV6_FLOWLABEL_MASK & p->flowinfo; in ip6_tnl_link_config()
|
D | ip6_gre.c | 692 fl6->flowlabel |= ip6_flowlabel(ipv6h); in prepare_ip6gre_xmit_ipv6() 776 fl6->flowlabel = key->label; in __gre6_xmit() 1023 fl6.flowlabel = key->label; in ip6erspan_tunnel_xmit() 1132 fl6->flowlabel = 0; in ip6gre_tnl_link_config_common() 1137 fl6->flowlabel |= IPV6_TCLASS_MASK & p->flowinfo; in ip6gre_tnl_link_config_common() 1139 fl6->flowlabel |= IPV6_FLOWLABEL_MASK & p->flowinfo; in ip6gre_tnl_link_config_common() 1405 t->fl.u.ip6.flowlabel, in ip6gre_header()
|
/linux-6.1.9/net/ipv6/netfilter/ |
D | ip6table_mangle.c | 37 u_int32_t flowlabel, mark; in ip6t_mangle_out() local 47 flowlabel = *((u_int32_t *)ipv6_hdr(skb)); in ip6t_mangle_out() 56 flowlabel != *((u_int32_t *)ipv6_hdr(skb)))) { in ip6t_mangle_out()
|
D | nf_dup_ipv6.c | 31 fl6.flowlabel = (__force __be32)(((iph->flow_lbl[0] & 0xF) << 16) | in nf_dup_ipv6_route()
|
D | ip6t_rpfilter.c | 41 .flowlabel = (* (__be32 *) iph) & IPV6_FLOWINFO_MASK, in rpfilter_lookup_reverse6()
|
/linux-6.1.9/net/netfilter/ |
D | nft_chain_route.c | 71 u32 mark, flowlabel; in nf_route_table_hook6() local 86 flowlabel = *((u32 *)ipv6_hdr(skb)); in nf_route_table_hook6() 94 flowlabel != *((u32 *)ipv6_hdr(skb)))) { in nf_route_table_hook6()
|
/linux-6.1.9/include/net/ |
D | ipv6.h | 924 __be32 flowlabel, bool autolabel, in ip6_make_flowlabel() argument 932 flowlabel &= IPV6_FLOWLABEL_MASK; in ip6_make_flowlabel() 934 if (flowlabel || in ip6_make_flowlabel() 938 return flowlabel; in ip6_make_flowlabel() 948 flowlabel = (__force __be32)hash & IPV6_FLOWLABEL_MASK; in ip6_make_flowlabel() 951 flowlabel |= IPV6_FLOWLABEL_STATELESS_FLAG; in ip6_make_flowlabel() 953 return flowlabel; in ip6_make_flowlabel() 970 __be32 flowlabel, bool autolabel, in ip6_make_flowlabel() argument 973 return flowlabel; in ip6_make_flowlabel() 1005 __be32 flowlabel) in ip6_flow_hdr() argument [all …]
|
D | flow.h | 143 __be32 flowlabel; member
|
/linux-6.1.9/drivers/infiniband/hw/hns/ |
D | hns_roce_ah.c | 72 ah->av.flowlabel = grh->flow_label; in hns_roce_create_ah() 102 rdma_ah_set_grh(ah_attr, NULL, ah->av.flowlabel, in hns_roce_query_ah()
|
/linux-6.1.9/net/dccp/ |
D | ipv6.c | 209 fl6.flowlabel = 0; in dccp_v6_send_response() 844 fl6.flowlabel = usin->sin6_flowinfo & IPV6_FLOWINFO_MASK; in dccp_v6_connect() 845 IP6_ECN_flow_init(fl6.flowlabel); in dccp_v6_connect() 846 if (fl6.flowlabel & IPV6_FLOWLABEL_MASK) { in dccp_v6_connect() 847 struct ip6_flowlabel *flowlabel; in dccp_v6_connect() local 848 flowlabel = fl6_sock_lookup(sk, fl6.flowlabel); in dccp_v6_connect() 849 if (IS_ERR(flowlabel)) in dccp_v6_connect() 851 fl6_sock_release(flowlabel); in dccp_v6_connect() 884 np->flow_label = fl6.flowlabel; in dccp_v6_connect()
|
/linux-6.1.9/net/sctp/ |
D | ipv6.c | 238 IP6_ECN_flow_xmit(sk, fl6->flowlabel); in sctp_v6_xmit() 264 label = ip6_make_flowlabel(sock_net(sk), skb, fl6->flowlabel, true, fl6); in sctp_v6_xmit() 298 if (t->flowlabel & SCTP_FLOWLABEL_SET_MASK) in sctp_v6_get_dst() 299 fl6->flowlabel = htonl(t->flowlabel & SCTP_FLOWLABEL_VAL_MASK); in sctp_v6_get_dst() 301 if (np->sndflow && (fl6->flowlabel & IPV6_FLOWLABEL_MASK)) { in sctp_v6_get_dst() 302 struct ip6_flowlabel *flowlabel; in sctp_v6_get_dst() local 304 flowlabel = fl6_sock_lookup(sk, fl6->flowlabel); in sctp_v6_get_dst() 305 if (IS_ERR(flowlabel)) in sctp_v6_get_dst() 307 fl6_sock_release(flowlabel); in sctp_v6_get_dst()
|
D | associola.c | 108 asoc->flowlabel = sp->flowlabel; in sctp_association_init() 650 peer->flowlabel = ntohl(info & IPV6_FLOWLABEL_MASK); in sctp_assoc_add_peer() 651 peer->flowlabel |= SCTP_FLOWLABEL_SET_MASK; in sctp_assoc_add_peer() 653 peer->flowlabel = asoc->flowlabel; in sctp_assoc_add_peer()
|
/linux-6.1.9/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_nve.h | 17 __be32 flowlabel; member
|
/linux-6.1.9/include/trace/events/ |
D | fib6.h | 45 __entry->tos = ip6_tclass(flp->flowlabel);
|
/linux-6.1.9/drivers/net/ipvlan/ |
D | ipvlan_l3s.c | 70 .flowlabel = ip6_flowinfo(ip6h), in ipvlan_l3_rcv()
|