Home
last modified time | relevance | path

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

/linux-6.12.1/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()
785 int mlx5e_tc_tun_init_encap_attr(struct net_device *tunnel_dev, in mlx5e_tc_tun_init_encap_attr() argument
790 struct mlx5e_tc_tunnel *tunnel = mlx5e_get_tc_tun(tunnel_dev); in mlx5e_tc_tun_init_encap_attr()
797 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
/linux-6.12.1/drivers/net/ethernet/intel/ice/
Dice_tc_lib.c642 static int ice_tc_tun_get_type(struct net_device *tunnel_dev) in ice_tc_tun_get_type() argument
644 if (netif_is_vxlan(tunnel_dev)) in ice_tc_tun_get_type()
646 if (netif_is_geneve(tunnel_dev)) in ice_tc_tun_get_type()
648 if (netif_is_gretap(tunnel_dev) || in ice_tc_tun_get_type()
649 netif_is_ip6gretap(tunnel_dev)) in ice_tc_tun_get_type()
655 if (netif_is_gtp(tunnel_dev)) in ice_tc_tun_get_type()
657 if (netif_is_pfcp(tunnel_dev)) in ice_tc_tun_get_type()
1476 struct net_device *tunnel_dev; in ice_parse_cls_flower() local
1503 tunnel_dev = ice_get_tunnel_device(filter_dev, rule); in ice_parse_cls_flower()
1504 if (tunnel_dev) { in ice_parse_cls_flower()
[all …]
/linux-6.12.1/net/ipv4/
Dipmr.c444 struct net_device *tunnel_dev, *new_dev; in ipmr_new_tunnel() local
448 tunnel_dev = __dev_get_by_name(net, "tunl0"); in ipmr_new_tunnel()
449 if (!tunnel_dev) in ipmr_new_tunnel()
459 if (!tunnel_dev->netdev_ops->ndo_tunnel_ctl) in ipmr_new_tunnel()
461 err = tunnel_dev->netdev_ops->ndo_tunnel_ctl(tunnel_dev, &p, in ipmr_new_tunnel()
479 tunnel_dev->netdev_ops->ndo_tunnel_ctl(tunnel_dev, &p, in ipmr_new_tunnel()