Lines Matching refs:ip_tun
334 struct ip_tunnel_info *ip_tun = (struct ip_tunnel_info *)act->tunnel; in nfp_fl_push_geneve_options() local
336 u8 *src = ip_tunnel_info_opts(ip_tun); in nfp_fl_push_geneve_options()
345 opt_len = ip_tun->options_len; in nfp_fl_push_geneve_options()
373 src = ip_tunnel_info_opts(ip_tun); in nfp_fl_push_geneve_options()
417 const struct ip_tunnel_info *ip_tun = act->tunnel; in nfp_fl_set_tun() local
418 bool ipv6 = ip_tunnel_info_af(ip_tun) == AF_INET6; in nfp_fl_set_tun()
436 if (ip_tun->options_len && in nfp_fl_set_tun()
443 tun_flags = ip_tunnel_flags_to_be16(ip_tun->key.tun_flags); in nfp_fl_set_tun()
444 if (!ip_tunnel_flags_is_be16_compat(ip_tun->key.tun_flags) || in nfp_fl_set_tun()
461 set_tun->tun_id = ip_tun->key.tun_id; in nfp_fl_set_tun()
463 if (ip_tun->key.ttl) { in nfp_fl_set_tun()
464 set_tun->ttl = ip_tun->key.ttl; in nfp_fl_set_tun()
471 flow.daddr = ip_tun->key.u.ipv6.dst; in nfp_fl_set_tun()
491 flow.daddr = ip_tun->key.u.ipv4.dst; in nfp_fl_set_tun()
503 set_tun->tos = ip_tun->key.tos; in nfp_fl_set_tun()
508 set_tun->tun_len = ip_tun->options_len / 4; in nfp_fl_set_tun()
514 pre_tun->ipv6_dst = ip_tun->key.u.ipv6.dst; in nfp_fl_set_tun()
516 pre_tun->ipv4_dst = ip_tun->key.u.ipv4.dst; in nfp_fl_set_tun()
1109 const struct ip_tunnel_info *ip_tun = act->tunnel; in nfp_flower_loop_action() local
1117 if (ip_tun->mode & ~NFP_FL_SUPPORTED_TUNNEL_INFO_FLAGS) { in nfp_flower_loop_action()