Lines Matching refs:lowerdev

3160 	struct net_device *lowerdev = __dev_get_by_index(vxlan->net,  in vxlan_change_mtu()  local
3167 if (lowerdev) { in vxlan_change_mtu()
3168 int max_mtu = lowerdev->mtu - in vxlan_change_mtu()
3453 struct net_device *lowerdev = __dev_get_by_index(vxlan->net, in vxlan_get_link_ksettings() local
3456 if (!lowerdev) { in vxlan_get_link_ksettings()
3464 return __ethtool_get_link_ksettings(lowerdev, cmd); in vxlan_get_link_ksettings()
3707 struct net_device *lowerdev; in vxlan_config_validate() local
3709 lowerdev = __dev_get_by_index(src_net, conf->remote_ifindex); in vxlan_config_validate()
3710 if (!lowerdev) { in vxlan_config_validate()
3718 struct inet6_dev *idev = __in6_dev_get(lowerdev); in vxlan_config_validate()
3728 *lower = lowerdev; in vxlan_config_validate()
3784 struct net_device *lowerdev, in vxlan_config_apply() argument
3810 if (lowerdev) { in vxlan_config_apply()
3813 dev->gso_max_size = lowerdev->gso_max_size; in vxlan_config_apply()
3814 dev->gso_max_segs = lowerdev->gso_max_segs; in vxlan_config_apply()
3816 needed_headroom = lowerdev->hard_header_len; in vxlan_config_apply()
3817 needed_headroom += lowerdev->needed_headroom; in vxlan_config_apply()
3819 dev->needed_tailroom = lowerdev->needed_tailroom; in vxlan_config_apply()
3821 max_mtu = lowerdev->mtu - (use_ipv6 ? VXLAN6_HEADROOM : in vxlan_config_apply()
3847 struct net_device *lowerdev; in vxlan_dev_configure() local
3850 ret = vxlan_config_validate(src_net, conf, &lowerdev, vxlan, extack); in vxlan_dev_configure()
3854 vxlan_config_apply(dev, conf, lowerdev, src_net, changelink); in vxlan_dev_configure()
4251 struct net_device *lowerdev; in vxlan_changelink() local
4261 err = vxlan_config_validate(vxlan->net, &conf, &lowerdev, in vxlan_changelink()
4266 if (dst->remote_dev == lowerdev) in vxlan_changelink()
4267 lowerdev = NULL; in vxlan_changelink()
4269 err = netdev_adjacent_change_prepare(dst->remote_dev, lowerdev, dev, in vxlan_changelink()
4291 lowerdev, dev); in vxlan_changelink()
4309 netdev_adjacent_change_commit(dst->remote_dev, lowerdev, dev); in vxlan_changelink()
4310 if (lowerdev && lowerdev != dst->remote_dev) in vxlan_changelink()
4311 dst->remote_dev = lowerdev; in vxlan_changelink()
4312 vxlan_config_apply(dev, &conf, lowerdev, vxlan->net, true); in vxlan_changelink()