Home
last modified time | relevance | path

Searched refs:tunnel_dev (Results 1 – 8 of 8) sorted by relevance

/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtc_tun.h35 int (*init_encap_attr)(struct net_device *tunnel_dev,
62 struct mlx5e_tc_tunnel *mlx5e_get_tc_tun(struct net_device *tunnel_dev);
64 int mlx5e_tc_tun_init_encap_attr(struct net_device *tunnel_dev,
Dtc_tun.c38 struct mlx5e_tc_tunnel *mlx5e_get_tc_tun(struct net_device *tunnel_dev) in mlx5e_get_tc_tun() argument
40 if (netif_is_vxlan(tunnel_dev)) in mlx5e_get_tc_tun()
42 else if (netif_is_geneve(tunnel_dev)) in mlx5e_get_tc_tun()
44 else if (netif_is_gretap(tunnel_dev) || in mlx5e_get_tc_tun()
45 netif_is_ip6gretap(tunnel_dev)) in mlx5e_get_tc_tun()
47 else if (netif_is_bareudp(tunnel_dev)) in mlx5e_get_tc_tun()
781 int mlx5e_tc_tun_init_encap_attr(struct net_device *tunnel_dev, in mlx5e_tc_tun_init_encap_attr() argument
786 struct mlx5e_tc_tunnel *tunnel = mlx5e_get_tc_tun(tunnel_dev); in mlx5e_tc_tun_init_encap_attr()
793 return tunnel->init_encap_attr(tunnel_dev, priv, e, extack); in mlx5e_tc_tun_init_encap_attr()
Dtc_tun_encap.c1490 struct net_device *tunnel_dev, in mlx5e_reoffload_encap() argument
1499 mlx5e_tc_tun_update_header_ipv4(priv, tunnel_dev, e) : in mlx5e_reoffload_encap()
1500 mlx5e_tc_tun_update_header_ipv6(priv, tunnel_dev, e); in mlx5e_reoffload_encap()
1583 struct net_device *tunnel_dev; in mlx5e_update_route_encaps() local
1586 tunnel_dev = __dev_get_by_index(dev_net(priv->netdev), r->tunnel_dev_index); in mlx5e_update_route_encaps()
1587 if (!tunnel_dev) in mlx5e_update_route_encaps()
1605 mlx5e_reoffload_encap(priv, tunnel_dev, e, &encap_flows); in mlx5e_update_route_encaps()
1665 struct net_device *tunnel_dev; in mlx5e_update_route_decap_flows() local
1668 tunnel_dev = __dev_get_by_index(dev_net(priv->netdev), r->tunnel_dev_index); in mlx5e_update_route_decap_flows()
1669 if (!tunnel_dev) in mlx5e_update_route_decap_flows()
Dtc_tun_gre.c17 static int mlx5e_tc_tun_init_encap_attr_gretap(struct net_device *tunnel_dev, in mlx5e_tc_tun_init_encap_attr_gretap() argument
Dtc_tun_mplsoudp.c18 static int init_encap_attr(struct net_device *tunnel_dev, in init_encap_attr() argument
Dtc_tun_vxlan.c61 static int mlx5e_tc_tun_init_encap_attr_vxlan(struct net_device *tunnel_dev, in mlx5e_tc_tun_init_encap_attr_vxlan() argument
Dtc_tun_geneve.c64 static int mlx5e_tc_tun_init_encap_attr_geneve(struct net_device *tunnel_dev, in mlx5e_tc_tun_init_encap_attr_geneve() argument
/drivers/net/ethernet/intel/ice/
Dice_tc_lib.c617 static int ice_tc_tun_get_type(struct net_device *tunnel_dev) in ice_tc_tun_get_type() argument
619 if (netif_is_vxlan(tunnel_dev)) in ice_tc_tun_get_type()
621 if (netif_is_geneve(tunnel_dev)) in ice_tc_tun_get_type()
623 if (netif_is_gretap(tunnel_dev) || in ice_tc_tun_get_type()
624 netif_is_ip6gretap(tunnel_dev)) in ice_tc_tun_get_type()
630 if (netif_is_gtp(tunnel_dev)) in ice_tc_tun_get_type()
1404 struct net_device *tunnel_dev; in ice_parse_cls_flower() local
1431 tunnel_dev = ice_get_tunnel_device(filter_dev, rule); in ice_parse_cls_flower()
1432 if (tunnel_dev) { in ice_parse_cls_flower()
1435 filter_dev = tunnel_dev; in ice_parse_cls_flower()