Lines Matching refs:lowerdev

3031 	struct net_device *lowerdev = __dev_get_by_index(vxlan->net,  in vxlan_change_mtu()  local
3038 if (lowerdev) { in vxlan_change_mtu()
3039 int max_mtu = lowerdev->mtu - in vxlan_change_mtu()
3325 struct net_device *lowerdev = __dev_get_by_index(vxlan->net, in vxlan_get_link_ksettings() local
3328 if (!lowerdev) { in vxlan_get_link_ksettings()
3336 return __ethtool_get_link_ksettings(lowerdev, cmd); in vxlan_get_link_ksettings()
3614 struct net_device *lowerdev; in vxlan_config_validate() local
3616 lowerdev = __dev_get_by_index(src_net, conf->remote_ifindex); in vxlan_config_validate()
3617 if (!lowerdev) { in vxlan_config_validate()
3625 struct inet6_dev *idev = __in6_dev_get(lowerdev); in vxlan_config_validate()
3635 *lower = lowerdev; in vxlan_config_validate()
3676 struct net_device *lowerdev, in vxlan_config_apply() argument
3702 if (lowerdev) { in vxlan_config_apply()
3705 netif_inherit_tso_max(dev, lowerdev); in vxlan_config_apply()
3707 needed_headroom = lowerdev->hard_header_len; in vxlan_config_apply()
3708 needed_headroom += lowerdev->needed_headroom; in vxlan_config_apply()
3710 dev->needed_tailroom = lowerdev->needed_tailroom; in vxlan_config_apply()
3712 max_mtu = lowerdev->mtu - (use_ipv6 ? VXLAN6_HEADROOM : in vxlan_config_apply()
3738 struct net_device *lowerdev; in vxlan_dev_configure() local
3741 ret = vxlan_config_validate(src_net, conf, &lowerdev, vxlan, extack); in vxlan_dev_configure()
3745 vxlan_config_apply(dev, conf, lowerdev, src_net, changelink); in vxlan_dev_configure()
4157 struct net_device *lowerdev; in vxlan_changelink() local
4167 err = vxlan_config_validate(vxlan->net, &conf, &lowerdev, in vxlan_changelink()
4172 if (dst->remote_dev == lowerdev) in vxlan_changelink()
4173 lowerdev = NULL; in vxlan_changelink()
4175 err = netdev_adjacent_change_prepare(dst->remote_dev, lowerdev, dev, in vxlan_changelink()
4197 lowerdev, dev); in vxlan_changelink()
4219 lowerdev, dev); in vxlan_changelink()
4228 netdev_adjacent_change_commit(dst->remote_dev, lowerdev, dev); in vxlan_changelink()
4229 if (lowerdev && lowerdev != dst->remote_dev) in vxlan_changelink()
4230 dst->remote_dev = lowerdev; in vxlan_changelink()
4231 vxlan_config_apply(dev, &conf, lowerdev, vxlan->net, true); in vxlan_changelink()