Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A 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,
H A Dtc_tun.c37 struct mlx5e_tc_tunnel *mlx5e_get_tc_tun(struct net_device *tunnel_dev) in mlx5e_get_tc_tun() argument
39 if (netif_is_vxlan(tunnel_dev)) in mlx5e_get_tc_tun()
41 else if (netif_is_geneve(tunnel_dev)) in mlx5e_get_tc_tun()
43 else if (netif_is_gretap(tunnel_dev) || in mlx5e_get_tc_tun()
44 netif_is_ip6gretap(tunnel_dev)) in mlx5e_get_tc_tun()
46 else if (netif_is_bareudp(tunnel_dev)) in mlx5e_get_tc_tun()
782 int mlx5e_tc_tun_init_encap_attr(struct net_device *tunnel_dev, in mlx5e_tc_tun_init_encap_attr() argument
787 struct mlx5e_tc_tunnel *tunnel = mlx5e_get_tc_tun(tunnel_dev); in mlx5e_tc_tun_init_encap_attr()
794 return tunnel->init_encap_attr(tunnel_dev, priv, e, extack); in mlx5e_tc_tun_init_encap_attr()
H A Dtc_tun_encap.c1496 struct net_device *tunnel_dev, in mlx5e_reoffload_encap() argument
1505 mlx5e_tc_tun_update_header_ipv4(priv, tunnel_dev, e) : in mlx5e_reoffload_encap()
1506 mlx5e_tc_tun_update_header_ipv6(priv, tunnel_dev, e); in mlx5e_reoffload_encap()
1589 struct net_device *tunnel_dev; in mlx5e_update_route_encaps() local
1592 tunnel_dev = __dev_get_by_index(dev_net(priv->netdev), r->tunnel_dev_index); in mlx5e_update_route_encaps()
1593 if (!tunnel_dev) in mlx5e_update_route_encaps()
1611 mlx5e_reoffload_encap(priv, tunnel_dev, e, &encap_flows); in mlx5e_update_route_encaps()
1671 struct net_device *tunnel_dev; in mlx5e_update_route_decap_flows() local
1674 tunnel_dev = __dev_get_by_index(dev_net(priv->netdev), r->tunnel_dev_index); in mlx5e_update_route_decap_flows()
1675 if (!tunnel_dev) in mlx5e_update_route_decap_flows()
[all...]
H A 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
H A Dtc_tun_mplsoudp.c18 static int init_encap_attr(struct net_device *tunnel_dev, in init_encap_attr() argument
H A 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
/linux/drivers/net/ethernet/intel/ice/
H A Dice_tc_lib.c634 * @tunnel_dev: ptr to tunnel device
639 static int ice_tc_tun_get_type(struct net_device *tunnel_dev) in ice_tc_tun_get_type() argument
641 if (netif_is_vxlan(tunnel_dev)) in ice_tc_tun_get_type()
643 if (netif_is_geneve(tunnel_dev)) in ice_tc_tun_get_type()
645 if (netif_is_gretap(tunnel_dev) || in ice_tc_tun_get_type()
646 netif_is_ip6gretap(tunnel_dev)) in ice_tc_tun_get_type()
652 if (netif_is_gtp(tunnel_dev)) in ice_tc_tun_get_type()
654 if (netif_is_pfcp(tunnel_dev)) in ice_tc_tun_get_type()
1645 struct net_device *tunnel_dev; in ice_parse_cls_flower() local
1672 tunnel_dev in ice_parse_cls_flower()
[all...]
/linux/net/ipv4/
H A Dipmr.c460 struct net_device *tunnel_dev, *new_dev; in ipmr_new_tunnel() local
464 tunnel_dev = __dev_get_by_name(net, "tunl0"); in ipmr_new_tunnel()
465 if (!tunnel_dev) in ipmr_new_tunnel()
475 if (!tunnel_dev->netdev_ops->ndo_tunnel_ctl) in ipmr_new_tunnel()
477 err = tunnel_dev->netdev_ops->ndo_tunnel_ctl(tunnel_dev, &p, in ipmr_new_tunnel()
495 tunnel_dev->netdev_ops->ndo_tunnel_ctl(tunnel_dev, &p, in ipmr_new_tunnel()