Lines Matching refs:lowerdev
3073 struct net_device *lowerdev = __dev_get_by_index(vxlan->net, in vxlan_change_mtu() local
3079 if (lowerdev) { in vxlan_change_mtu()
3080 int max_mtu = lowerdev->mtu - vxlan_headroom(vxlan->cfg.flags); in vxlan_change_mtu()
3370 struct net_device *lowerdev = __dev_get_by_index(vxlan->net, in vxlan_get_link_ksettings() local
3373 if (!lowerdev) { in vxlan_get_link_ksettings()
3381 return __ethtool_get_link_ksettings(lowerdev, cmd); in vxlan_get_link_ksettings()
3664 struct net_device *lowerdev; in vxlan_config_validate() local
3666 lowerdev = __dev_get_by_index(src_net, conf->remote_ifindex); in vxlan_config_validate()
3667 if (!lowerdev) { in vxlan_config_validate()
3675 struct inet6_dev *idev = __in6_dev_get(lowerdev); in vxlan_config_validate()
3685 *lower = lowerdev; in vxlan_config_validate()
3726 struct net_device *lowerdev, in vxlan_config_apply() argument
3752 if (lowerdev) { in vxlan_config_apply()
3755 netif_inherit_tso_max(dev, lowerdev); in vxlan_config_apply()
3757 needed_headroom = lowerdev->hard_header_len; in vxlan_config_apply()
3758 needed_headroom += lowerdev->needed_headroom; in vxlan_config_apply()
3760 dev->needed_tailroom = lowerdev->needed_tailroom; in vxlan_config_apply()
3762 max_mtu = lowerdev->mtu - vxlan_headroom(flags); in vxlan_config_apply()
3786 struct net_device *lowerdev; in vxlan_dev_configure() local
3789 ret = vxlan_config_validate(src_net, conf, &lowerdev, vxlan, extack); in vxlan_dev_configure()
3793 vxlan_config_apply(dev, conf, lowerdev, src_net, changelink); in vxlan_dev_configure()
4216 struct net_device *lowerdev; in vxlan_changelink() local
4226 err = vxlan_config_validate(vxlan->net, &conf, &lowerdev, in vxlan_changelink()
4231 if (dst->remote_dev == lowerdev) in vxlan_changelink()
4232 lowerdev = NULL; in vxlan_changelink()
4234 err = netdev_adjacent_change_prepare(dst->remote_dev, lowerdev, dev, in vxlan_changelink()
4256 lowerdev, dev); in vxlan_changelink()
4278 lowerdev, dev); in vxlan_changelink()
4287 netdev_adjacent_change_commit(dst->remote_dev, lowerdev, dev); in vxlan_changelink()
4288 if (lowerdev && lowerdev != dst->remote_dev) in vxlan_changelink()
4289 dst->remote_dev = lowerdev; in vxlan_changelink()
4290 vxlan_config_apply(dev, &conf, lowerdev, vxlan->net, true); in vxlan_changelink()