Home
last modified time | relevance | path

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

/openbmc/linux/include/net/
H A 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()
/openbmc/linux/net/ipv4/
H A Dfou_bpf.c69 if (info->key.tun_flags & TUNNEL_CSUM) in bpf_skb_set_fou_encap()
H A Dip_gre.c387 flags = tpi->flags & (TUNNEL_CSUM | TUNNEL_KEY); in __ipgre_rcv()
503 if (gre_handle_offloads(skb, !!(tun_info->key.tun_flags & TUNNEL_CSUM))) in gre_fb_xmit()
507 (TUNNEL_CSUM | TUNNEL_KEY | TUNNEL_SEQ); in gre_fb_xmit()
667 if (gre_handle_offloads(skb, !!(tunnel->parms.o_flags & TUNNEL_CSUM))) in ipgre_xmit()
747 if (gre_handle_offloads(skb, !!(tunnel->parms.o_flags & TUNNEL_CSUM))) in gre_tap_xmit()
784 (flags & TUNNEL_CSUM && tunnel->encap.type != TUNNEL_ENCAP_NONE)) { in ipgre_link_update()
982 if (flags & TUNNEL_CSUM && tunnel->encap.type != TUNNEL_ENCAP_NONE) in __gre_tunnel_init()
H A Dudp_tunnel_core.c202 info->key.tun_flags |= TUNNEL_CSUM; in udp_tun_rx_dst()
H A Dip_tunnel.c390 if ((!(tpi->flags&TUNNEL_CSUM) && (tunnel->parms.i_flags&TUNNEL_CSUM)) || in ip_tunnel_rcv()
391 ((tpi->flags&TUNNEL_CSUM) && !(tunnel->parms.i_flags&TUNNEL_CSUM))) { in ip_tunnel_rcv()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dtc_tun_gre.c39 if (tun_key->tun_flags & (TUNNEL_CSUM | TUNNEL_SEQ)) in mlx5e_gen_ip_tunnel_header_gretap()
/openbmc/linux/drivers/net/
H A 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()
H A Dgeneve.c772 bool udp_sum = !!(info->key.tun_flags & TUNNEL_CSUM); in geneve_build_skb()
1010 !(info->key.tun_flags & TUNNEL_CSUM)); in geneve_xmit_skb()
1091 !(info->key.tun_flags & TUNNEL_CSUM)); in geneve6_xmit_skb()
1509 info->key.tun_flags |= TUNNEL_CSUM; in geneve_nl2info()
1584 info->key.tun_flags |= TUNNEL_CSUM; in geneve_nl2info()
1594 info->key.tun_flags &= ~TUNNEL_CSUM; in geneve_nl2info()
1827 !!(info->key.tun_flags & TUNNEL_CSUM))) in geneve_fill_info()
1836 !(info->key.tun_flags & TUNNEL_CSUM))) in geneve_fill_info()
/openbmc/linux/include/uapi/linux/
H A Dif_tunnel.h164 #define TUNNEL_CSUM __cpu_to_be16(0x01) macro
/openbmc/linux/net/netfilter/
H A 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()
/openbmc/linux/net/psample/
H A Dpsample.c263 if ((tun_key->tun_flags & TUNNEL_CSUM) && in __psample_ip_tun_to_nlattr()
342 if (tun_key->tun_flags & TUNNEL_CSUM) in psample_tunnel_meta_len()
/openbmc/linux/net/sched/
H A Dact_tunnel_key.c418 flags |= TUNNEL_CSUM; in tunnel_key_init()
421 flags &= ~TUNNEL_CSUM; in tunnel_key_init()
752 !(key->tun_flags & TUNNEL_CSUM)) || in tunnel_key_dump()
/openbmc/linux/net/netfilter/ipvs/
H A Dip_vs_xmit.c396 tflags |= TUNNEL_CSUM; in __ip_vs_get_out_rt()
559 tflags |= TUNNEL_CSUM; in __ip_vs_get_out_rt_v6()
1089 tflags |= TUNNEL_CSUM; in ipvs_gre_encap()
1172 tflags |= TUNNEL_CSUM; in ip_vs_tunnel_xmit()
1317 tflags |= TUNNEL_CSUM; in ip_vs_tunnel_xmit_v6()
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dtest_tunnel_kern.c437 (key.tunnel_flags & TUNNEL_CSUM)) { in vxlan_get_tunnel_src()
587 !(key.tunnel_flags & TUNNEL_CSUM)) { in ip6vxlan_get_tunnel_src()
/openbmc/linux/net/ipv6/
H A Dip6_gre.c785 (TUNNEL_CSUM | TUNNEL_KEY | TUNNEL_SEQ); in __gre6_xmit()
828 err = gre_handle_offloads(skb, !!(t->parms.o_flags & TUNNEL_CSUM)); in ip6gre_xmit_ipv4()
862 if (gre_handle_offloads(skb, !!(t->parms.o_flags & TUNNEL_CSUM))) in ip6gre_xmit_ipv6()
889 err = gre_handle_offloads(skb, !!(t->parms.o_flags & TUNNEL_CSUM)); in ip6gre_xmit_other()
1473 if (flags & TUNNEL_CSUM && nt->encap.type != TUNNEL_ENCAP_NONE) in ip6gre_tnl_init_features()
H A 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()
/openbmc/linux/drivers/net/ethernet/netronome/nfp/flower/
H A Daction.c420 BUILD_BUG_ON(NFP_FL_TUNNEL_CSUM != TUNNEL_CSUM || in nfp_fl_set_tun()
/openbmc/linux/net/openvswitch/
H A Dflow_netlink.c735 tun_flags |= TUNNEL_CSUM; in ip_tun_from_nlattr()
916 if ((output->tun_flags & TUNNEL_CSUM) && in __ip_tun_to_nlattr()
/openbmc/linux/drivers/net/vxlan/
H A Dvxlan_core.c2533 udp_sum = !!(info->key.tun_flags & TUNNEL_CSUM); in vxlan_xmit_one()
/openbmc/linux/net/core/
H A Dfilter.c4779 info->key.tun_flags = TUNNEL_KEY | TUNNEL_CSUM | TUNNEL_NOCACHE; in BPF_CALL_4()
4783 info->key.tun_flags &= ~TUNNEL_CSUM; in BPF_CALL_4()