Home
last modified time | relevance | path

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

12

/linux/tools/testing/selftests/net/
H A Dipv6_flowlabel_mgr.c108 static void tcp_connect(int listener, uint32_t flowlabel, in tcp_connect() argument
119 if (flowlabel_get(cfd, flowlabel, IPV6_FL_S_EXCL, IPV6_FL_F_CREATE)) in tcp_connect()
123 addr.sin6_flowinfo = htonl(flowlabel); in tcp_connect()
132 if (flowlabel_put(cfd, flowlabel)) in tcp_connect()
166 FIXTURE(flowlabel) {}; in FIXTURE() argument
168 FIXTURE_SETUP(flowlabel) in FIXTURE_SETUP() argument
181 FIXTURE_TEARDOWN(flowlabel) in FIXTURE_TEARDOWN() argument
185 TEST_F(flowlabel, cannot_get_non_existent_label) in TEST_F() argument
199 TEST_F(flowlabel, cannot_put_non_existent_label) in TEST_F() argument
213 TEST_F(flowlabel, cannot_create_label_greater_than_20_bits) in TEST_F() argument
[all …]
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/Documentation/networking/
H A Dseg6-sysctl.rst32 Controls the behaviour of computing the flowlabel of outer
36 -1 set flowlabel to zero.
37 0 copy flowlabel from Inner packet in case of Inner IPv6
38 (Set flowlabel to 0 in case IPv4/L2)
39 1 Compute the flowlabel using seg6_make_flowlabel()
/linux/net/ipv6/
H A Draw.c752 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 …]
H A Dfib6_rules.c29 __be32 flowlabel; member
339 if ((r->dscp ^ ip6_dscp(fl6->flowlabel)) & r->dscp_mask) in fib6_rule_match()
342 if ((r->flowlabel ^ flowi6_get_flowlabel(fl6)) & r->flowlabel_mask) in fib6_rule_match()
400 __be32 flowlabel, flowlabel_mask; in fib6_nl2rule_flowlabel() local
406 flowlabel = nla_get_be32(tb[FRA_FLOWLABEL]); in fib6_nl2rule_flowlabel()
415 if (flowlabel & ~flowlabel_mask) { in fib6_nl2rule_flowlabel()
420 rule6->flowlabel = flowlabel; in fib6_nl2rule_flowlabel()
526 nla_get_be32(tb[FRA_FLOWLABEL]) != rule6->flowlabel) in fib6_rule_compare()
564 (nla_put_be32(skb, FRA_FLOWLABEL, rule6->flowlabel) || in fib6_rule_fill()
H A Dseg6_iptunnel.c128 __be32 flowlabel = 0; in seg6_make_flowlabel() local
134 flowlabel = (__force __be32)hash & IPV6_FLOWLABEL_MASK; in seg6_make_flowlabel()
136 flowlabel = ip6_flowlabel(inner_hdr); in seg6_make_flowlabel()
138 return flowlabel; in seg6_make_flowlabel()
151 __be32 flowlabel; in __seg6_do_srh_encap() local
161 flowlabel = seg6_make_flowlabel(net, skb, inner_hdr); in __seg6_do_srh_encap()
175 flowlabel); in __seg6_do_srh_encap()
178 ip6_flow_hdr(hdr, 0, flowlabel); in __seg6_do_srh_encap()
239 __be32 flowlabel; in seg6_do_srh_encap_red() local
263 flowlabel = seg6_make_flowlabel(net, skb, inner_hdr); in seg6_do_srh_encap_red()
[all …]
H A Dudp.c1465 struct ip6_flowlabel *flowlabel = NULL; in udpv6_sendmsg() local
1569 fl6->flowlabel = sin6->sin6_flowinfo&IPV6_FLOWINFO_MASK; in udpv6_sendmsg()
1570 if (fl6->flowlabel & IPV6_FLOWLABEL_MASK) { in udpv6_sendmsg()
1571 flowlabel = fl6_sock_lookup(sk, fl6->flowlabel); in udpv6_sendmsg()
1572 if (IS_ERR(flowlabel)) in udpv6_sendmsg()
1595 fl6->flowlabel = np->flow_label; in udpv6_sendmsg()
1620 fl6_sock_release(flowlabel); in udpv6_sendmsg()
1623 if ((fl6->flowlabel&IPV6_FLOWLABEL_MASK) && !flowlabel) { in udpv6_sendmsg()
1624 flowlabel = fl6_sock_lookup(sk, fl6->flowlabel); in udpv6_sendmsg()
1625 if (IS_ERR(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()
93 opt = flowlabel ? flowlabel->opt : rcu_dereference(np->opt); in ip6_datagram_dst_update()
118 fl6_sock_release(flowlabel); in ip6_datagram_dst_update()
893 if (fl6->flowlabel&IPV6_FLOWINFO_MASK) { in ip6_datagram_send_ctl()
894 if ((fl6->flowlabel^*(__be32 *)CMSG_DATA(cmsg))&~IPV6_FLOWINFO_MASK) { in ip6_datagram_send_ctl()
899 fl6->flowlabel = IPV6_FLOWINFO_MASK & *(__be32 *)CMSG_DATA(cmsg); in ip6_datagram_send_ctl()
H A Dtcp_ipv6.c160 fl6->flowlabel = usin->sin6_flowinfo & IPV6_FLOWINFO_MASK; in tcp_v6_connect()
161 IP6_ECN_flow_init(fl6->flowlabel); in tcp_v6_connect()
162 if (fl6->flowlabel & IPV6_FLOWLABEL_MASK) { in tcp_v6_connect()
163 struct ip6_flowlabel *flowlabel; in tcp_v6_connect() local
164 flowlabel = fl6_sock_lookup(sk, fl6->flowlabel); in tcp_v6_connect()
165 if (IS_ERR(flowlabel)) in tcp_v6_connect()
167 fl6_sock_release(flowlabel); in tcp_v6_connect()
213 np->flow_label = fl6->flowlabel; in tcp_v6_connect()
266 fl6->flowlabel in tcp_v6_connect()
[all...]
H A Dip6_udp_tunnel.c163 fl6.flowlabel = ip6_make_flowinfo(dsfield, key->label); in udp_tunnel6_dst_lookup()
H A Dip6_tunnel.c1178 fl6->flowlabel = ip6_make_flowinfo(dsfield, fl6->flowlabel); in ip6_tnl_xmit()
1280 ip6_make_flowlabel(net, skb, fl6->flowlabel, true, fl6)); in ip6_tnl_xmit()
1328 fl6.flowlabel = key->label; in ipxip6_tnl_xmit()
1389 fl6.flowlabel |= ip6_flowlabel(ipv6h); in ipxip6_tnl_xmit()
1482 fl6->flowlabel = 0; in ip6_tnl_link_config()
1485 fl6->flowlabel |= IPV6_TCLASS_MASK & p->flowinfo; in ip6_tnl_link_config()
1487 fl6->flowlabel |= IPV6_FLOWLABEL_MASK & p->flowinfo; in ip6_tnl_link_config()
H A Dnetfilter.c40 .flowlabel = ip6_flowinfo(iph), in ip6_route_me_harder()
H A Dip6_gre.c668 fl6->flowlabel |= ip6_flowlabel(ipv6h); in prepare_ip6gre_xmit_ipv6()
752 fl6->flowlabel = key->label; in __gre6_xmit()
986 fl6.flowlabel = key->label; in ip6erspan_tunnel_xmit()
1102 fl6->flowlabel = 0; in ip6gre_tnl_link_config_common()
1107 fl6->flowlabel |= IPV6_TCLASS_MASK & p->flowinfo; in ip6gre_tnl_link_config_common()
1109 fl6->flowlabel |= IPV6_FLOWLABEL_MASK & p->flowinfo; in ip6gre_tnl_link_config_common()
1380 t->fl.u.ip6.flowlabel, in ip6gre_header()
H A Dxfrm6_protocol.c84 .flowlabel = ip6_flowinfo(ip6h), in xfrm6_rcv_encap()
H A Dicmp.c791 fl6.flowlabel = ip6_make_flowinfo(ipc6.tclass, fl6.flowlabel); in icmp6_send()
965 fl6.flowlabel = ip6_flowlabel(ipv6_hdr(skb)); in icmpv6_echo_reply()
H A Drpl_iptunnel.c228 fl6.flowlabel = ip6_flowinfo(hdr); in rpl_output()
/linux/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/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/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()
299 if (t->flowlabel & SCTP_FLOWLABEL_SET_MASK) in sctp_v6_get_dst()
300 fl6->flowlabel = htonl(t->flowlabel & SCTP_FLOWLABEL_VAL_MASK); in sctp_v6_get_dst()
303 (fl6->flowlabel & IPV6_FLOWLABEL_MASK)) { in sctp_v6_get_dst()
304 struct ip6_flowlabel *flowlabel; in sctp_v6_get_dst()
306 flowlabel = fl6_sock_lookup(sk, fl6->flowlabel); in sctp_v6_get_dst()
307 if (IS_ERR(flowlabel)) in sctp_v6_get_dst()
302 struct ip6_flowlabel *flowlabel; sctp_v6_get_dst() local
[all...]
H A Dassociola.c108 asoc->flowlabel = sp->flowlabel; in sctp_association_init()
659 peer->flowlabel = ntohl(info & IPV6_FLOWLABEL_MASK); in sctp_assoc_add_peer()
660 peer->flowlabel |= SCTP_FLOWLABEL_SET_MASK; in sctp_assoc_add_peer()
662 peer->flowlabel = asoc->flowlabel; in sctp_assoc_add_peer()
/linux/net/dccp/
H A Dipv6.c
/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum_nve.h17 __be32 flowlabel; member
/linux/drivers/net/ipvlan/
H A Dipvlan_l3s.c72 .flowlabel = ip6_flowinfo(ip6h), in ipvlan_l3_rcv()

12