Searched refs:TUNNEL_CSUM (Results 1 – 19 of 19) sorted by relevance
56 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()
297 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()
762 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()
39 if (tun_key->tun_flags & (TUNNEL_CSUM | TUNNEL_SEQ)) in mlx5e_gen_ip_tunnel_header_gretap()
382 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()
202 info->key.tun_flags |= TUNNEL_CSUM; in udp_tun_rx_dst()
376 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()
164 #define TUNNEL_CSUM __cpu_to_be16(0x01) macro
457 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()
416 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()
262 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()
396 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()
405 (key.tunnel_flags & TUNNEL_CSUM)) { in vxlan_get_tunnel_src()557 !(key.tunnel_flags & TUNNEL_CSUM)) { in ip6vxlan_get_tunnel_src()
782 (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()
802 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()
420 BUILD_BUG_ON(NFP_FL_TUNNEL_CSUM != TUNNEL_CSUM || in nfp_fl_set_tun()
732 tun_flags |= TUNNEL_CSUM; in ip_tun_from_nlattr()913 if ((output->tun_flags & TUNNEL_CSUM) && in __ip_tun_to_nlattr()
2540 udp_sum = !!(info->key.tun_flags & TUNNEL_CSUM); in vxlan_xmit_one()
4652 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()