Home
last modified time | relevance | path

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

/linux-6.1.9/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()
783 int mlx5e_tc_tun_init_encap_attr(struct net_device *tunnel_dev, in mlx5e_tc_tun_init_encap_attr() argument
788 struct mlx5e_tc_tunnel *tunnel = mlx5e_get_tc_tun(tunnel_dev); in mlx5e_tc_tun_init_encap_attr()
795 return tunnel->init_encap_attr(tunnel_dev, priv, e, extack); in mlx5e_tc_tun_init_encap_attr()
Dtc_tun_encap.c1369 struct net_device *tunnel_dev, in mlx5e_reoffload_encap() argument
1378 mlx5e_tc_tun_update_header_ipv4(priv, tunnel_dev, e) : in mlx5e_reoffload_encap()
1379 mlx5e_tc_tun_update_header_ipv6(priv, tunnel_dev, e); in mlx5e_reoffload_encap()
1462 struct net_device *tunnel_dev; in mlx5e_update_route_encaps() local
1465 tunnel_dev = __dev_get_by_index(dev_net(priv->netdev), r->tunnel_dev_index); in mlx5e_update_route_encaps()
1466 if (!tunnel_dev) in mlx5e_update_route_encaps()
1484 mlx5e_reoffload_encap(priv, tunnel_dev, e, &encap_flows); in mlx5e_update_route_encaps()
1544 struct net_device *tunnel_dev; in mlx5e_update_route_decap_flows() local
1547 tunnel_dev = __dev_get_by_index(dev_net(priv->netdev), r->tunnel_dev_index); in mlx5e_update_route_decap_flows()
1548 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.c60 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
/linux-6.1.9/drivers/net/ethernet/intel/ice/
Dice_tc_lib.c593 static int ice_tc_tun_get_type(struct net_device *tunnel_dev) in ice_tc_tun_get_type() argument
595 if (netif_is_vxlan(tunnel_dev)) in ice_tc_tun_get_type()
597 if (netif_is_geneve(tunnel_dev)) in ice_tc_tun_get_type()
599 if (netif_is_gretap(tunnel_dev) || in ice_tc_tun_get_type()
600 netif_is_ip6gretap(tunnel_dev)) in ice_tc_tun_get_type()
606 if (netif_is_gtp(tunnel_dev)) in ice_tc_tun_get_type()
1195 struct net_device *tunnel_dev; in ice_parse_cls_flower() local
1222 tunnel_dev = ice_get_tunnel_device(filter_dev, rule); in ice_parse_cls_flower()
1223 if (tunnel_dev) { in ice_parse_cls_flower()
1226 filter_dev = tunnel_dev; in ice_parse_cls_flower()
/linux-6.1.9/net/ipv4/
Dipmr.c443 struct net_device *tunnel_dev, *new_dev; in ipmr_new_tunnel() local
447 tunnel_dev = __dev_get_by_name(net, "tunl0"); in ipmr_new_tunnel()
448 if (!tunnel_dev) in ipmr_new_tunnel()
458 if (!tunnel_dev->netdev_ops->ndo_tunnel_ctl) in ipmr_new_tunnel()
460 err = tunnel_dev->netdev_ops->ndo_tunnel_ctl(tunnel_dev, &p, in ipmr_new_tunnel()
478 tunnel_dev->netdev_ops->ndo_tunnel_ctl(tunnel_dev, &p, in ipmr_new_tunnel()