Lines Matching defs:netdev
86 * @netdev: net_device to check
87 * @fallback_net: return in case get_link_net is not available for @netdev
91 static struct net *batadv_getlink_net(const struct net_device *netdev,
94 if (!netdev->rtnl_link_ops)
97 if (!netdev->rtnl_link_ops->get_link_net)
100 return netdev->rtnl_link_ops->get_link_net(netdev);
206 * batadv_get_real_netdevice() - check if the given netdev struct is a virtual
208 * @netdev: the device to check
216 static struct net_device *batadv_get_real_netdevice(struct net_device *netdev)
226 if (!netdev)
229 iflink = dev_get_iflink(netdev);
231 dev_hold(netdev);
232 return netdev;
235 hard_iface = batadv_hardif_get_by_netdev(netdev);
240 real_net = batadv_getlink_net(netdev, net);
243 if (net == real_net && netdev->ifindex == iflink) {
244 real_netdev = netdev;
535 * @soft_iface: netdev struct of the mesh interface
576 * @soft_iface: netdev struct of the soft interface
630 * @soft_iface: netdev struct of the soft interface
705 * @soft_iface: netdev struct of the mesh interface