Home
last modified time | relevance | path

Searched refs:flowlabel (Results 1 – 25 of 48) sorted by relevance

12

/kernel/linux/linux-5.10/tools/testing/selftests/net/
Dipv6_flowlabel.c38 static void do_send(int fd, bool with_flowlabel, uint32_t flowlabel) in do_send() argument
40 char control[CMSG_SPACE(sizeof(flowlabel))] = {0}; in do_send()
55 cm->cmsg_len = CMSG_LEN(sizeof(flowlabel)); in do_send()
58 *(uint32_t *)CMSG_DATA(cm) = htonl(flowlabel); in do_send()
69 fprintf(stderr, "sent with label %u\n", flowlabel); in do_send()
81 uint32_t flowlabel; in do_recv() local
114 flowlabel = ntohl(*(uint32_t *)CMSG_DATA(cm)); in do_recv()
115 fprintf(stderr, "recv with label %u\n", flowlabel); in do_recv()
117 if (expect != FLOWLABEL_WILDCARD && expect != flowlabel) in do_recv()
119 flowlabel, expect); in do_recv()
/kernel/linux/linux-5.10/net/l2tp/
Dl2tp_ip6.c499 struct ip6_flowlabel *flowlabel = NULL; in l2tp_ip6_sendmsg() local
536 fl6.flowlabel = lsa->l2tp_flowinfo & IPV6_FLOWINFO_MASK; in l2tp_ip6_sendmsg()
537 if (fl6.flowlabel & IPV6_FLOWLABEL_MASK) { in l2tp_ip6_sendmsg()
538 flowlabel = fl6_sock_lookup(sk, fl6.flowlabel); in l2tp_ip6_sendmsg()
539 if (IS_ERR(flowlabel)) in l2tp_ip6_sendmsg()
560 fl6.flowlabel = np->flow_label; in l2tp_ip6_sendmsg()
574 fl6_sock_release(flowlabel); in l2tp_ip6_sendmsg()
577 if ((fl6.flowlabel & IPV6_FLOWLABEL_MASK) && !flowlabel) { in l2tp_ip6_sendmsg()
578 flowlabel = fl6_sock_lookup(sk, fl6.flowlabel); in l2tp_ip6_sendmsg()
579 if (IS_ERR(flowlabel)) in l2tp_ip6_sendmsg()
[all …]
/kernel/linux/linux-5.10/net/ipv6/
Dseg6_iptunnel.c111 __be32 flowlabel = 0; in seg6_make_flowlabel() local
117 flowlabel = (__force __be32)hash & IPV6_FLOWLABEL_MASK; in seg6_make_flowlabel()
119 flowlabel = ip6_flowlabel(inner_hdr); in seg6_make_flowlabel()
121 return flowlabel; in seg6_make_flowlabel()
132 __be32 flowlabel; in seg6_do_srh_encap() local
142 flowlabel = seg6_make_flowlabel(net, skb, inner_hdr); in seg6_do_srh_encap()
156 flowlabel); in seg6_do_srh_encap()
159 ip6_flow_hdr(hdr, 0, flowlabel); in seg6_do_srh_encap()
378 fl6.flowlabel = ip6_flowinfo(hdr); in seg6_output()
Draw.c780 struct ip6_flowlabel *flowlabel = NULL; in rawv6_sendmsg() local
839 fl6.flowlabel = sin6->sin6_flowinfo&IPV6_FLOWINFO_MASK; in rawv6_sendmsg()
840 if (fl6.flowlabel&IPV6_FLOWLABEL_MASK) { in rawv6_sendmsg()
841 flowlabel = fl6_sock_lookup(sk, fl6.flowlabel); in rawv6_sendmsg()
842 if (IS_ERR(flowlabel)) in rawv6_sendmsg()
865 fl6.flowlabel = np->flow_label; in rawv6_sendmsg()
879 fl6_sock_release(flowlabel); in rawv6_sendmsg()
882 if ((fl6.flowlabel&IPV6_FLOWLABEL_MASK) && !flowlabel) { in rawv6_sendmsg()
883 flowlabel = fl6_sock_lookup(sk, fl6.flowlabel); in rawv6_sendmsg()
884 if (IS_ERR(flowlabel)) in rawv6_sendmsg()
[all …]
Dudp.c1285 struct ip6_flowlabel *flowlabel = NULL; in udpv6_sendmsg() local
1387 fl6.flowlabel = sin6->sin6_flowinfo&IPV6_FLOWINFO_MASK; in udpv6_sendmsg()
1388 if (fl6.flowlabel&IPV6_FLOWLABEL_MASK) { in udpv6_sendmsg()
1389 flowlabel = fl6_sock_lookup(sk, fl6.flowlabel); in udpv6_sendmsg()
1390 if (IS_ERR(flowlabel)) in udpv6_sendmsg()
1413 fl6.flowlabel = np->flow_label; in udpv6_sendmsg()
1436 fl6_sock_release(flowlabel); in udpv6_sendmsg()
1439 if ((fl6.flowlabel&IPV6_FLOWLABEL_MASK) && !flowlabel) { in udpv6_sendmsg()
1440 flowlabel = fl6_sock_lookup(sk, fl6.flowlabel); in udpv6_sendmsg()
1441 if (IS_ERR(flowlabel)) in udpv6_sendmsg()
[all …]
Ddatagram.c54 fl6->flowlabel = np->flow_label; in ip6_datagram_flow_key_init()
68 struct ip6_flowlabel *flowlabel = NULL; in ip6_datagram_dst_update() local
78 flowlabel = fl6_sock_lookup(sk, np->flow_label); in ip6_datagram_dst_update()
79 if (IS_ERR(flowlabel)) in ip6_datagram_dst_update()
85 opt = flowlabel ? flowlabel->opt : rcu_dereference(np->opt); in ip6_datagram_dst_update()
110 fl6_sock_release(flowlabel); in ip6_datagram_dst_update()
848 if (fl6->flowlabel&IPV6_FLOWINFO_MASK) { in ip6_datagram_send_ctl()
849 if ((fl6->flowlabel^*(__be32 *)CMSG_DATA(cmsg))&~IPV6_FLOWINFO_MASK) { in ip6_datagram_send_ctl()
854 fl6->flowlabel = IPV6_FLOWINFO_MASK & *(__be32 *)CMSG_DATA(cmsg); in ip6_datagram_send_ctl()
Dinet6_connection_sock.c91 fl6->flowlabel = np->flow_label; in inet6_csk_route_socket()
92 IP6_ECN_flow_xmit(sk, fl6->flowlabel); in inet6_csk_route_socket()
Dping.c123 fl6.flowlabel = ip6_make_flowinfo(ipc6.tclass, fl6.flowlabel); in ping_v6_sendmsg()
Dtcp_ipv6.c170 fl6.flowlabel = usin->sin6_flowinfo&IPV6_FLOWINFO_MASK; in tcp_v6_connect()
171 IP6_ECN_flow_init(fl6.flowlabel); in tcp_v6_connect()
172 if (fl6.flowlabel&IPV6_FLOWLABEL_MASK) { in tcp_v6_connect()
173 struct ip6_flowlabel *flowlabel; in tcp_v6_connect() local
174 flowlabel = fl6_sock_lookup(sk, fl6.flowlabel); in tcp_v6_connect()
175 if (IS_ERR(flowlabel)) in tcp_v6_connect()
177 fl6_sock_release(flowlabel); in tcp_v6_connect()
223 np->flow_label = fl6.flowlabel; in tcp_v6_connect()
547 fl6->flowlabel = ip6_flowlabel(ipv6_hdr(ireq->pktopts)); in tcp_v6_send_synack()
950 fl6.flowlabel = label; in tcp_v6_send_response()
Dip6_tunnel.c1173 fl6->flowlabel = ip6_make_flowinfo(dsfield, fl6->flowlabel); in ip6_tnl_xmit()
1286 ip6_make_flowlabel(net, skb, fl6->flowlabel, true, fl6)); in ip6_tnl_xmit()
1334 fl6.flowlabel = key->label; in ipxip6_tnl_xmit()
1395 fl6.flowlabel |= ip6_flowlabel(ipv6h); in ipxip6_tnl_xmit()
1489 fl6->flowlabel = 0; in ip6_tnl_link_config()
1492 fl6->flowlabel |= IPV6_TCLASS_MASK & p->flowinfo; in ip6_tnl_link_config()
1494 fl6->flowlabel |= IPV6_FLOWLABEL_MASK & p->flowinfo; in ip6_tnl_link_config()
Dip6_gre.c697 fl6->flowlabel |= ip6_flowlabel(ipv6h); in prepare_ip6gre_xmit_ipv6()
754 fl6->flowlabel = key->label; in __gre6_xmit()
1001 fl6.flowlabel = key->label; in ip6erspan_tunnel_xmit()
1110 fl6->flowlabel = 0; in ip6gre_tnl_link_config_common()
1115 fl6->flowlabel |= IPV6_TCLASS_MASK & p->flowinfo; in ip6gre_tnl_link_config_common()
1117 fl6->flowlabel |= IPV6_FLOWLABEL_MASK & p->flowinfo; in ip6gre_tnl_link_config_common()
1382 t->fl.u.ip6.flowlabel, in ip6gre_header()
Dicmp.c595 fl6.flowlabel = ip6_make_flowinfo(ipc6.tclass, fl6.flowlabel); in icmp6_send()
748 fl6.flowlabel = ip6_flowlabel(ipv6_hdr(skb)); in icmpv6_echo_reply()
/kernel/linux/linux-5.10/net/ipv6/netfilter/
Dip6table_mangle.c40 u_int32_t flowlabel, mark; in ip6t_mangle_out() local
50 flowlabel = *((u_int32_t *)ipv6_hdr(skb)); in ip6t_mangle_out()
59 flowlabel != *((u_int32_t *)ipv6_hdr(skb)))) { in ip6t_mangle_out()
Dnf_dup_ipv6.c31 fl6.flowlabel = (__force __be32)(((iph->flow_lbl[0] & 0xF) << 16) | in nf_dup_ipv6_route()
Dip6t_rpfilter.c40 .flowlabel = (* (__be32 *) iph) & IPV6_FLOWINFO_MASK, in rpfilter_lookup_reverse6()
/kernel/linux/linux-5.10/net/netfilter/
Dnft_chain_route.c71 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()
/kernel/linux/linux-5.10/include/net/
Dipv6.h869 __be32 flowlabel, bool autolabel, in ip6_make_flowlabel() argument
877 flowlabel &= IPV6_FLOWLABEL_MASK; in ip6_make_flowlabel()
879 if (flowlabel || in ip6_make_flowlabel()
883 return flowlabel; in ip6_make_flowlabel()
893 flowlabel = (__force __be32)hash & IPV6_FLOWLABEL_MASK; in ip6_make_flowlabel()
896 flowlabel |= IPV6_FLOWLABEL_STATELESS_FLAG; in ip6_make_flowlabel()
898 return flowlabel; in ip6_make_flowlabel()
915 __be32 flowlabel, bool autolabel, in ip6_make_flowlabel() argument
918 return flowlabel; in ip6_make_flowlabel()
942 __be32 flowlabel) in ip6_flow_hdr() argument
[all …]
Dflow.h147 __be32 flowlabel; member
/kernel/linux/linux-5.10/drivers/infiniband/hw/hns/
Dhns_roce_ah.c71 ah->av.flowlabel = grh->flow_label; in hns_roce_create_ah()
101 rdma_ah_set_grh(ah_attr, NULL, ah->av.flowlabel, in hns_roce_query_ah()
/kernel/linux/linux-5.10/net/dccp/
Dipv6.c202 fl6.flowlabel = 0; in dccp_v6_send_response()
834 fl6.flowlabel = usin->sin6_flowinfo & IPV6_FLOWINFO_MASK; in dccp_v6_connect()
835 IP6_ECN_flow_init(fl6.flowlabel); in dccp_v6_connect()
836 if (fl6.flowlabel & IPV6_FLOWLABEL_MASK) { in dccp_v6_connect()
837 struct ip6_flowlabel *flowlabel; in dccp_v6_connect() local
838 flowlabel = fl6_sock_lookup(sk, fl6.flowlabel); in dccp_v6_connect()
839 if (IS_ERR(flowlabel)) in dccp_v6_connect()
841 fl6_sock_release(flowlabel); in dccp_v6_connect()
874 np->flow_label = fl6.flowlabel; in dccp_v6_connect()
/kernel/linux/linux-5.10/net/sctp/
Dipv6.c209 IP6_ECN_flow_xmit(sk, fl6->flowlabel); in sctp_v6_xmit()
250 if (t->flowlabel & SCTP_FLOWLABEL_SET_MASK) in sctp_v6_get_dst()
251 fl6->flowlabel = htonl(t->flowlabel & SCTP_FLOWLABEL_VAL_MASK); in sctp_v6_get_dst()
253 if (np->sndflow && (fl6->flowlabel & IPV6_FLOWLABEL_MASK)) { in sctp_v6_get_dst()
254 struct ip6_flowlabel *flowlabel; in sctp_v6_get_dst() local
256 flowlabel = fl6_sock_lookup(sk, fl6->flowlabel); in sctp_v6_get_dst()
257 if (IS_ERR(flowlabel)) in sctp_v6_get_dst()
259 fl6_sock_release(flowlabel); in sctp_v6_get_dst()
Dassociola.c105 asoc->flowlabel = sp->flowlabel; in sctp_association_init()
644 peer->flowlabel = ntohl(info & IPV6_FLOWLABEL_MASK); in sctp_assoc_add_peer()
645 peer->flowlabel |= SCTP_FLOWLABEL_SET_MASK; in sctp_assoc_add_peer()
647 peer->flowlabel = asoc->flowlabel; in sctp_assoc_add_peer()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_nve.h17 __be32 flowlabel; member
/kernel/linux/linux-5.10/include/trace/events/
Dfib6.h45 __entry->tos = ip6_tclass(flp->flowlabel);
/kernel/linux/linux-5.10/drivers/net/ipvlan/
Dipvlan_l3s.c70 .flowlabel = ip6_flowinfo(ip6h), in ipvlan_l3_rcv()

12