Home
last modified time | relevance | path

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

123

/linux-6.15/tools/testing/selftests/net/
H A Dipv6_flowlabel.c53 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.15/Documentation/networking/
H A Dseg6-sysctl.rst29 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.15/net/l2tp/
H A Dl2tp_ip6.c525 struct ip6_flowlabel *flowlabel = NULL; in l2tp_ip6_sendmsg() local
563 flowlabel = fl6_sock_lookup(sk, fl6.flowlabel); in l2tp_ip6_sendmsg()
564 if (IS_ERR(flowlabel)) in l2tp_ip6_sendmsg()
585 fl6.flowlabel = np->flow_label; in l2tp_ip6_sendmsg()
599 fl6_sock_release(flowlabel); in l2tp_ip6_sendmsg()
602 if ((fl6.flowlabel & IPV6_FLOWLABEL_MASK) && !flowlabel) { in l2tp_ip6_sendmsg()
603 flowlabel = fl6_sock_lookup(sk, fl6.flowlabel); in l2tp_ip6_sendmsg()
604 if (IS_ERR(flowlabel)) in l2tp_ip6_sendmsg()
615 if (flowlabel) in l2tp_ip6_sendmsg()
637 fl6.flowlabel = ip6_make_flowinfo(ipc6.tclass, fl6.flowlabel); in l2tp_ip6_sendmsg()
[all …]
/linux-6.15/include/trace/events/
H A Dfib6.h25 __field( u32, flowlabel )
46 __entry->flowlabel = ntohl(flowi6_get_flowlabel(flp));
47 __entry->tos = ip6_tclass(flp->flowlabel);
84 __entry->flowlabel, __entry->tos, __entry->scope,
/linux-6.15/net/ipv6/
H A Dseg6_iptunnel.c114 __be32 flowlabel = 0; in seg6_make_flowlabel() local
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()
221 __be32 flowlabel; in seg6_do_srh_encap_red() local
255 flowlabel); in seg6_do_srh_encap_red()
258 ip6_flow_hdr(hdr, 0, flowlabel); in seg6_do_srh_encap_red()
[all …]
H A Draw.c750 struct ip6_flowlabel *flowlabel = NULL; in rawv6_sendmsg() local
805 flowlabel = fl6_sock_lookup(sk, fl6.flowlabel); in rawv6_sendmsg()
806 if (IS_ERR(flowlabel)) in rawv6_sendmsg()
829 fl6.flowlabel = np->flow_label; in rawv6_sendmsg()
843 fl6_sock_release(flowlabel); in rawv6_sendmsg()
846 if ((fl6.flowlabel&IPV6_FLOWLABEL_MASK) && !flowlabel) { in rawv6_sendmsg()
847 flowlabel = fl6_sock_lookup(sk, fl6.flowlabel); in rawv6_sendmsg()
848 if (IS_ERR(flowlabel)) in rawv6_sendmsg()
858 if (flowlabel) in rawv6_sendmsg()
891 fl6.flowlabel = ip6_make_flowinfo(ipc6.tclass, fl6.flowlabel); in rawv6_sendmsg()
[all …]
H A Dfib6_rules.c29 __be32 flowlabel; member
335 if ((r->dscp ^ ip6_dscp(fl6->flowlabel)) & r->dscp_mask) in fib6_rule_match()
338 if ((r->flowlabel ^ flowi6_get_flowlabel(fl6)) & r->flowlabel_mask) in fib6_rule_match()
396 __be32 flowlabel, flowlabel_mask; in fib6_nl2rule_flowlabel() local
402 flowlabel = nla_get_be32(tb[FRA_FLOWLABEL]); in fib6_nl2rule_flowlabel()
411 if (flowlabel & ~flowlabel_mask) { in fib6_nl2rule_flowlabel()
416 rule6->flowlabel = flowlabel; in fib6_nl2rule_flowlabel()
524 nla_get_be32(tb[FRA_FLOWLABEL]) != rule6->flowlabel) in fib6_rule_compare()
562 (nla_put_be32(skb, FRA_FLOWLABEL, rule6->flowlabel) || in fib6_rule_fill()
H A Dping.c93 fl6.flowlabel = u->sin6_flowinfo & IPV6_FLOWINFO_MASK; in ping_v6_sendmsg()
100 fl6.flowlabel = np->flow_label; in ping_v6_sendmsg()
150 fl6.flowlabel = ip6_make_flowinfo(ipc6.tclass, fl6.flowlabel); in ping_v6_sendmsg()
H A Dudp.c1484 struct ip6_flowlabel *flowlabel = NULL; in udpv6_sendmsg() local
1588 flowlabel = fl6_sock_lookup(sk, fl6->flowlabel); in udpv6_sendmsg()
1589 if (IS_ERR(flowlabel)) in udpv6_sendmsg()
1612 fl6->flowlabel = np->flow_label; in udpv6_sendmsg()
1637 fl6_sock_release(flowlabel); in udpv6_sendmsg()
1640 if ((fl6->flowlabel&IPV6_FLOWLABEL_MASK) && !flowlabel) { in udpv6_sendmsg()
1641 flowlabel = fl6_sock_lookup(sk, fl6->flowlabel); in udpv6_sendmsg()
1642 if (IS_ERR(flowlabel)) in udpv6_sendmsg()
1652 if (flowlabel) in udpv6_sendmsg()
1704 fl6->flowlabel = ip6_make_flowinfo(ipc6.tclass, fl6->flowlabel); in udpv6_sendmsg()
[all …]
H A Ddatagram.c55 fl6->flowlabel = ip6_make_flowinfo(np->tclass, np->flow_label); in ip6_datagram_flow_key_init()
74 struct ip6_flowlabel *flowlabel = NULL; in ip6_datagram_dst_update() local
85 flowlabel = fl6_sock_lookup(sk, np->flow_label); in ip6_datagram_dst_update()
86 if (IS_ERR(flowlabel)) in ip6_datagram_dst_update()
92 opt = flowlabel ? flowlabel->opt : rcu_dereference(np->opt); in ip6_datagram_dst_update()
117 fl6_sock_release(flowlabel); in ip6_datagram_dst_update()
854 if (fl6->flowlabel&IPV6_FLOWINFO_MASK) { in ip6_datagram_send_ctl()
855 if ((fl6->flowlabel^*(__be32 *)CMSG_DATA(cmsg))&~IPV6_FLOWINFO_MASK) { in ip6_datagram_send_ctl()
860 fl6->flowlabel = IPV6_FLOWINFO_MASK & *(__be32 *)CMSG_DATA(cmsg); in ip6_datagram_send_ctl()
H A Dinet6_connection_sock.c77 fl6->flowlabel = np->flow_label; in inet6_csk_route_socket()
78 IP6_ECN_flow_xmit(sk, fl6->flowlabel); in inet6_csk_route_socket()
H A Dtcp_ipv6.c161 fl6.flowlabel = usin->sin6_flowinfo&IPV6_FLOWINFO_MASK; in tcp_v6_connect()
162 IP6_ECN_flow_init(fl6.flowlabel); in tcp_v6_connect()
163 if (fl6.flowlabel&IPV6_FLOWLABEL_MASK) { in tcp_v6_connect()
164 struct ip6_flowlabel *flowlabel; in tcp_v6_connect() local
165 flowlabel = fl6_sock_lookup(sk, fl6.flowlabel); in tcp_v6_connect()
166 if (IS_ERR(flowlabel)) in tcp_v6_connect()
168 fl6_sock_release(flowlabel); in tcp_v6_connect()
214 np->flow_label = fl6.flowlabel; in tcp_v6_connect()
265 fl6.flowlabel = ip6_make_flowinfo(np->tclass, np->flow_label); in tcp_v6_connect()
550 fl6->flowlabel = ip6_flowlabel(ipv6_hdr(ireq->pktopts)); in tcp_v6_send_synack()
[all …]
H A Dip6_tunnel.c1163 fl6->flowlabel = ip6_make_flowinfo(dsfield, fl6->flowlabel); in ip6_tnl_xmit()
1276 ip6_make_flowlabel(net, skb, fl6->flowlabel, true, fl6)); in ip6_tnl_xmit()
1324 fl6.flowlabel = key->label; in ipxip6_tnl_xmit()
1385 fl6.flowlabel |= ip6_flowlabel(ipv6h); in ipxip6_tnl_xmit()
1478 fl6->flowlabel = 0; in ip6_tnl_link_config()
1481 fl6->flowlabel |= IPV6_TCLASS_MASK & p->flowinfo; in ip6_tnl_link_config()
1483 fl6->flowlabel |= IPV6_FLOWLABEL_MASK & p->flowinfo; in ip6_tnl_link_config()
/linux-6.15/net/ipv6/netfilter/
H A Dip6table_mangle.c36 u32 flowlabel, mark; in ip6t_mangle_out() local
47 flowlabel = *((u_int32_t *)ipv6_hdr(skb)); in ip6t_mangle_out()
57 flowlabel != *((u_int32_t *)ipv6_hdr(skb)))) { in ip6t_mangle_out()
H A Dnf_dup_ipv6.c31 fl6.flowlabel = (__force __be32)(((iph->flow_lbl[0] & 0xF) << 16) | in nf_dup_ipv6_route()
H A Dip6t_rpfilter.c41 .flowlabel = (* (__be32 *) iph) & IPV6_FLOWINFO_MASK, in rpfilter_lookup_reverse6()
/linux-6.15/net/netfilter/
H A 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()
/linux-6.15/include/net/
H A Dipv6.h953 __be32 flowlabel, bool autolabel, in ip6_make_flowlabel() argument
961 flowlabel &= IPV6_FLOWLABEL_MASK; in ip6_make_flowlabel()
963 if (flowlabel || in ip6_make_flowlabel()
967 return flowlabel; in ip6_make_flowlabel()
980 flowlabel |= IPV6_FLOWLABEL_STATELESS_FLAG; in ip6_make_flowlabel()
982 return flowlabel; in ip6_make_flowlabel()
999 __be32 flowlabel, bool autolabel, in ip6_make_flowlabel() argument
1002 return flowlabel; in ip6_make_flowlabel()
1034 __be32 flowlabel) in ip6_flow_hdr() argument
1061 return htonl(tclass << IPV6_TCLASS_SHIFT) | flowlabel; in ip6_make_flowinfo()
[all …]
/linux-6.15/Documentation/netlink/specs/
H A Drt_rule.yaml176 name: flowlabel
181 name: flowlabel-mask
228 - flowlabel
229 - flowlabel-mask
H A Drt_route.yaml182 name: flowlabel
270 - flowlabel
310 - flowlabel
/linux-6.15/net/dccp/
H A Dipv6.c211 fl6.flowlabel = 0; in dccp_v6_send_response()
845 fl6.flowlabel = usin->sin6_flowinfo & IPV6_FLOWINFO_MASK; in dccp_v6_connect()
846 IP6_ECN_flow_init(fl6.flowlabel); in dccp_v6_connect()
847 if (fl6.flowlabel & IPV6_FLOWLABEL_MASK) { in dccp_v6_connect()
848 struct ip6_flowlabel *flowlabel; in dccp_v6_connect() local
849 flowlabel = fl6_sock_lookup(sk, fl6.flowlabel); in dccp_v6_connect()
850 if (IS_ERR(flowlabel)) in dccp_v6_connect()
852 fl6_sock_release(flowlabel); in dccp_v6_connect()
885 np->flow_label = fl6.flowlabel; in dccp_v6_connect()
/linux-6.15/net/sctp/
H A Dipv6.c236 IP6_ECN_flow_xmit(sk, fl6->flowlabel); in sctp_v6_xmit()
262 label = ip6_make_flowlabel(sock_net(sk), skb, fl6->flowlabel, true, fl6); in sctp_v6_xmit()
296 if (t->flowlabel & SCTP_FLOWLABEL_SET_MASK) in sctp_v6_get_dst()
297 fl6->flowlabel = htonl(t->flowlabel & SCTP_FLOWLABEL_VAL_MASK); in sctp_v6_get_dst()
300 (fl6->flowlabel & IPV6_FLOWLABEL_MASK)) { in sctp_v6_get_dst()
301 struct ip6_flowlabel *flowlabel; in sctp_v6_get_dst() local
303 flowlabel = fl6_sock_lookup(sk, fl6->flowlabel); in sctp_v6_get_dst()
304 if (IS_ERR(flowlabel)) in sctp_v6_get_dst()
306 fl6_sock_release(flowlabel); in sctp_v6_get_dst()
H A Dassociola.c108 asoc->flowlabel = sp->flowlabel; in sctp_association_init()
649 peer->flowlabel = ntohl(info & IPV6_FLOWLABEL_MASK); in sctp_assoc_add_peer()
650 peer->flowlabel |= SCTP_FLOWLABEL_SET_MASK; in sctp_assoc_add_peer()
652 peer->flowlabel = asoc->flowlabel; in sctp_assoc_add_peer()
/linux-6.15/drivers/infiniband/hw/hns/
H A Dhns_roce_ah.c79 ah->av.flowlabel = grh->flow_label; in hns_roce_create_ah()
138 rdma_ah_set_grh(ah_attr, NULL, ah->av.flowlabel, in hns_roce_query_ah()
/linux-6.15/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_nve.h17 __be32 flowlabel; member

123