Home
last modified time | relevance | path

Searched refs:tun_info (Results 1 – 15 of 15) sorted by relevance

/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtc_tun_geneve.c19 e->tun_info->options_len; in mlx5e_tc_tun_calc_hlen_geneve()
96 const struct ip_tunnel_info *tun_info = e->tun_info; in mlx5e_gen_ip_tunnel_header_geneve() local
104 udp->dest = tun_info->key.tp_dst; in mlx5e_gen_ip_tunnel_header_geneve()
108 geneveh->opt_len = tun_info->options_len / 4; in mlx5e_gen_ip_tunnel_header_geneve()
109 geneveh->oam = !!(tun_info->key.tun_flags & TUNNEL_OAM); in mlx5e_gen_ip_tunnel_header_geneve()
110 geneveh->critical = !!(tun_info->key.tun_flags & TUNNEL_CRIT_OPT); in mlx5e_gen_ip_tunnel_header_geneve()
111 mlx5e_tunnel_id_to_vni(tun_info->key.tun_id, geneveh->vni); in mlx5e_gen_ip_tunnel_header_geneve()
114 if (tun_info->key.tun_flags & TUNNEL_GENEVE_OPT) { in mlx5e_gen_ip_tunnel_header_geneve()
117 ip_tunnel_info_opts_get(geneveh->options, tun_info); in mlx5e_gen_ip_tunnel_header_geneve()
Dtc_tun_encap.c428 kfree(e->tun_info); in mlx5e_encap_dealloc()
568 e_key.ip_tun_key = &e->tun_info->key; in mlx5e_encap_get()
596 struct ip_tunnel_info *mlx5e_dup_tun_info(const struct ip_tunnel_info *tun_info) in mlx5e_dup_tun_info() argument
598 size_t tun_size = sizeof(*tun_info) + tun_info->options_len; in mlx5e_dup_tun_info()
600 return kmemdup(tun_info, tun_size, GFP_KERNEL); in mlx5e_dup_tun_info()
735 const struct ip_tunnel_info *tun_info; in mlx5e_attach_encap() local
745 tun_info = parse_attr->tun_info[out_index]; in mlx5e_attach_encap()
746 family = ip_tunnel_info_af(tun_info); in mlx5e_attach_encap()
747 key.ip_tun_key = &tun_info->key; in mlx5e_attach_encap()
790 tun_info = mlx5e_dup_tun_info(tun_info); in mlx5e_attach_encap()
[all …]
Dtc_tun_gre.c14 return gre_calc_hlen(e->tun_info->key.tun_flags); in mlx5e_tc_tun_calc_hlen_gretap()
31 const struct ip_tunnel_key *tun_key = &e->tun_info->key; in mlx5e_gen_ip_tunnel_header_gretap()
Dtc_tun_vxlan.c65 int dst_port = be16_to_cpu(e->tun_info->key.tp_dst); in mlx5e_tc_tun_init_encap_attr_vxlan()
86 const struct ip_tunnel_key *tun_key = &e->tun_info->key; in mlx5e_gen_ip_tunnel_header_vxlan()
Dtc_tun_encap.h30 struct ip_tunnel_info *mlx5e_dup_tun_info(const struct ip_tunnel_info *tun_info);
Dtc_tun_mplsoudp.c32 const struct ip_tunnel_key *tun_key = &r->tun_info->key; in generate_ip_tun_hdr()
Dtc_priv.h34 const struct ip_tunnel_info *tun_info[MLX5_MAX_FLOW_FWD_VPORTS]; member
Dtc_tun.c222 const struct ip_tunnel_key *tun_key = &e->tun_info->key; in mlx5e_tc_tun_create_header_ipv4()
338 const struct ip_tunnel_key *tun_key = &e->tun_info->key; in mlx5e_tc_tun_update_header_ipv4()
489 const struct ip_tunnel_key *tun_key = &e->tun_info->key; in mlx5e_tc_tun_create_header_ipv6()
603 const struct ip_tunnel_key *tun_key = &e->tun_info->key; in mlx5e_tc_tun_update_header_ipv6()
/drivers/net/ethernet/netronome/nfp/flower/
Dtunnel_conf.c55 } tun_info[]; member
76 } tun_info[]; member
245 if (pay_len != struct_size(payload, tun_info, count)) { in nfp_tunnel_keep_alive()
252 ipv4_addr = payload->tun_info[i].ipv4; in nfp_tunnel_keep_alive()
253 port = be32_to_cpu(payload->tun_info[i].egress_port); in nfp_tunnel_keep_alive()
287 if (pay_len != struct_size(payload, tun_info, count)) { in nfp_tunnel_keep_alive_v6()
294 ipv6_add = &payload->tun_info[i].ipv6; in nfp_tunnel_keep_alive_v6()
295 port = be32_to_cpu(payload->tun_info[i].egress_port); in nfp_tunnel_keep_alive_v6()
/drivers/net/ethernet/mellanox/mlx5/core/
Den_rep.h194 const struct ip_tunnel_info *tun_info; member
Den_tc.c1549 kfree(attr->parse_attr->tun_info[out_index]); in mlx5e_tc_del_fdb_flow()
3990 parse_attr->tun_info[esw_attr->out_count] = in parse_tc_fdb_actions()
3992 if (!parse_attr->tun_info[esw_attr->out_count]) in parse_tc_fdb_actions()
/drivers/net/ethernet/mellanox/mlx5/core/en/rep/
Dtc.c583 tun_dst->u.tun_info.key.tp_src = key.enc_tp.src; in mlx5e_restore_tunnel()
586 ip_tunnel_info_opts_set(&tun_dst->u.tun_info, in mlx5e_restore_tunnel()
/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_tc.c106 const struct ip_tunnel_info *tun_info = act->tunnel; in bnxt_tc_parse_tunnel_set() local
107 const struct ip_tunnel_key *tun_key = &tun_info->key; in bnxt_tc_parse_tunnel_set()
109 if (ip_tunnel_info_af(tun_info) != AF_INET) { in bnxt_tc_parse_tunnel_set()
/drivers/net/vxlan/
Dvxlan_core.c1751 tun_dst->u.tun_info.key.tun_flags |= TUNNEL_VXLAN_OPT; in vxlan_parse_gbp_hdr()
1752 tun_dst->u.tun_info.options_len = sizeof(*md); in vxlan_parse_gbp_hdr()
1890 md = ip_tunnel_info_opts(&tun_dst->u.tun_info); in vxlan_rcv()
/drivers/net/
Dgeneve.c239 ip_tunnel_info_opts_set(&tun_dst->u.tun_info, in geneve_rx()