Home
last modified time | relevance | path

Searched refs:TUNNEL_CSUM (Results 1 – 19 of 19) sorted by relevance

/linux-6.1.9/include/net/
Dgre.h56 if (o_flags & TUNNEL_CSUM) in gre_calc_hlen()
70 tflags |= TUNNEL_CSUM; in gre_flags_to_tnl_flags()
91 if (tflags & TUNNEL_CSUM) in gre_tnl_flags_to_gre_flags()
123 if (flags & (TUNNEL_KEY | TUNNEL_CSUM | TUNNEL_SEQ)) { in gre_build_header()
134 if (flags & TUNNEL_CSUM && in gre_build_header()
/linux-6.1.9/drivers/net/
Dbareudp.c297 bool udp_sum = !!(info->key.tun_flags & TUNNEL_CSUM); in bareudp_xmit_skb()
345 !(info->key.tun_flags & TUNNEL_CSUM)); in bareudp_xmit_skb()
360 bool udp_sum = !!(info->key.tun_flags & TUNNEL_CSUM); in bareudp6_xmit_skb()
407 !(info->key.tun_flags & TUNNEL_CSUM)); in bareudp6_xmit_skb()
Dgeneve.c762 bool udp_sum = !!(info->key.tun_flags & TUNNEL_CSUM); in geneve_build_skb()
999 !(info->key.tun_flags & TUNNEL_CSUM)); in geneve_xmit_skb()
1079 !(info->key.tun_flags & TUNNEL_CSUM)); in geneve6_xmit_skb()
1497 info->key.tun_flags |= TUNNEL_CSUM; in geneve_nl2info()
1572 info->key.tun_flags |= TUNNEL_CSUM; in geneve_nl2info()
1582 info->key.tun_flags &= ~TUNNEL_CSUM; in geneve_nl2info()
1815 !!(info->key.tun_flags & TUNNEL_CSUM))) in geneve_fill_info()
1824 !(info->key.tun_flags & TUNNEL_CSUM))) in geneve_fill_info()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtc_tun_gre.c39 if (tun_key->tun_flags & (TUNNEL_CSUM | TUNNEL_SEQ)) in mlx5e_gen_ip_tunnel_header_gretap()
/linux-6.1.9/net/ipv4/
Dip_gre.c382 flags = tpi->flags & (TUNNEL_CSUM | TUNNEL_KEY); in __ipgre_rcv()
498 if (gre_handle_offloads(skb, !!(tun_info->key.tun_flags & TUNNEL_CSUM))) in gre_fb_xmit()
502 (TUNNEL_CSUM | TUNNEL_KEY | TUNNEL_SEQ); in gre_fb_xmit()
658 if (gre_handle_offloads(skb, !!(tunnel->parms.o_flags & TUNNEL_CSUM))) in ipgre_xmit()
737 if (gre_handle_offloads(skb, !!(tunnel->parms.o_flags & TUNNEL_CSUM))) in gre_tap_xmit()
774 (flags & TUNNEL_CSUM && tunnel->encap.type != TUNNEL_ENCAP_NONE)) { in ipgre_link_update()
972 if (flags & TUNNEL_CSUM && tunnel->encap.type != TUNNEL_ENCAP_NONE) in __gre_tunnel_init()
Dudp_tunnel_core.c202 info->key.tun_flags |= TUNNEL_CSUM; in udp_tun_rx_dst()
Dip_tunnel.c376 if ((!(tpi->flags&TUNNEL_CSUM) && (tunnel->parms.i_flags&TUNNEL_CSUM)) || in ip_tunnel_rcv()
377 ((tpi->flags&TUNNEL_CSUM) && !(tunnel->parms.i_flags&TUNNEL_CSUM))) { in ip_tunnel_rcv()
/linux-6.1.9/include/uapi/linux/
Dif_tunnel.h164 #define TUNNEL_CSUM __cpu_to_be16(0x01) macro
/linux-6.1.9/net/netfilter/
Dnft_tunnel.c457 info.key.tun_flags = TUNNEL_KEY | TUNNEL_CSUM | TUNNEL_NOCACHE; in nft_tunnel_obj_init()
486 info.key.tun_flags &= ~TUNNEL_CSUM; in nft_tunnel_obj_init()
663 if (!(info->key.tun_flags & TUNNEL_CSUM)) in nft_tunnel_flags_dump()
/linux-6.1.9/net/sched/
Dact_tunnel_key.c416 flags |= TUNNEL_CSUM; in tunnel_key_init()
419 flags &= ~TUNNEL_CSUM; in tunnel_key_init()
747 !(key->tun_flags & TUNNEL_CSUM)) || in tunnel_key_dump()
/linux-6.1.9/net/psample/
Dpsample.c262 if ((tun_key->tun_flags & TUNNEL_CSUM) && in __psample_ip_tun_to_nlattr()
341 if (tun_key->tun_flags & TUNNEL_CSUM) in psample_tunnel_meta_len()
/linux-6.1.9/net/netfilter/ipvs/
Dip_vs_xmit.c396 tflags |= TUNNEL_CSUM; in __ip_vs_get_out_rt()
559 tflags |= TUNNEL_CSUM; in __ip_vs_get_out_rt_v6()
1105 tflags |= TUNNEL_CSUM; in ipvs_gre_encap()
1190 tflags |= TUNNEL_CSUM; in ip_vs_tunnel_xmit()
1340 tflags |= TUNNEL_CSUM; in ip_vs_tunnel_xmit_v6()
/linux-6.1.9/tools/testing/selftests/bpf/progs/
Dtest_tunnel_kern.c405 (key.tunnel_flags & TUNNEL_CSUM)) { in vxlan_get_tunnel_src()
557 !(key.tunnel_flags & TUNNEL_CSUM)) { in ip6vxlan_get_tunnel_src()
/linux-6.1.9/net/ipv6/
Dip6_gre.c782 (TUNNEL_CSUM | TUNNEL_KEY | TUNNEL_SEQ); in __gre6_xmit()
825 err = gre_handle_offloads(skb, !!(t->parms.o_flags & TUNNEL_CSUM)); in ip6gre_xmit_ipv4()
859 if (gre_handle_offloads(skb, !!(t->parms.o_flags & TUNNEL_CSUM))) in ip6gre_xmit_ipv6()
906 err = gre_handle_offloads(skb, !!(t->parms.o_flags & TUNNEL_CSUM)); in ip6gre_xmit_other()
1489 if (flags & TUNNEL_CSUM && nt->encap.type != TUNNEL_ENCAP_NONE) in ip6gre_tnl_init_features()
Dip6_tunnel.c802 if ((!(tpi->flags & TUNNEL_CSUM) && in __ip6_tnl_rcv()
803 (tunnel->parms.i_flags & TUNNEL_CSUM)) || in __ip6_tnl_rcv()
804 ((tpi->flags & TUNNEL_CSUM) && in __ip6_tnl_rcv()
805 !(tunnel->parms.i_flags & TUNNEL_CSUM))) { in __ip6_tnl_rcv()
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/flower/
Daction.c420 BUILD_BUG_ON(NFP_FL_TUNNEL_CSUM != TUNNEL_CSUM || in nfp_fl_set_tun()
/linux-6.1.9/net/openvswitch/
Dflow_netlink.c732 tun_flags |= TUNNEL_CSUM; in ip_tun_from_nlattr()
913 if ((output->tun_flags & TUNNEL_CSUM) && in __ip_tun_to_nlattr()
/linux-6.1.9/drivers/net/vxlan/
Dvxlan_core.c2540 udp_sum = !!(info->key.tun_flags & TUNNEL_CSUM); in vxlan_xmit_one()
/linux-6.1.9/net/core/
Dfilter.c4652 info->key.tun_flags = TUNNEL_KEY | TUNNEL_CSUM | TUNNEL_NOCACHE; in BPF_CALL_4()
4656 info->key.tun_flags &= ~TUNNEL_CSUM; in BPF_CALL_4()