Searched refs:tun_info (Results 1 – 15 of 15) sorted by relevance
/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | tc_tun_geneve.c | 19 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()
|
D | tc_tun_encap.c | 428 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 …]
|
D | tc_tun_gre.c | 14 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()
|
D | tc_tun_vxlan.c | 65 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()
|
D | tc_tun_encap.h | 30 struct ip_tunnel_info *mlx5e_dup_tun_info(const struct ip_tunnel_info *tun_info);
|
D | tc_tun_mplsoudp.c | 32 const struct ip_tunnel_key *tun_key = &r->tun_info->key; in generate_ip_tun_hdr()
|
D | tc_priv.h | 34 const struct ip_tunnel_info *tun_info[MLX5_MAX_FLOW_FWD_VPORTS]; member
|
D | tc_tun.c | 222 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/ |
D | tunnel_conf.c | 55 } 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/ |
D | en_rep.h | 194 const struct ip_tunnel_info *tun_info; member
|
D | en_tc.c | 1549 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/ |
D | tc.c | 583 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/ |
D | bnxt_tc.c | 106 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/ |
D | vxlan_core.c | 1751 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/ |
D | geneve.c | 239 ip_tunnel_info_opts_set(&tun_dst->u.tun_info, in geneve_rx()
|