Lines Matching refs:lowerdev
3209 struct net_device *lowerdev = __dev_get_by_index(vxlan->net, in vxlan_change_mtu() local
3215 if (lowerdev) { in vxlan_change_mtu()
3216 int max_mtu = lowerdev->mtu - vxlan_headroom(vxlan->cfg.flags); in vxlan_change_mtu()
3524 struct net_device *lowerdev = __dev_get_by_index(vxlan->net, in vxlan_get_link_ksettings() local
3527 if (!lowerdev) { in vxlan_get_link_ksettings()
3535 return __ethtool_get_link_ksettings(lowerdev, cmd); in vxlan_get_link_ksettings()
3824 struct net_device *lowerdev; in vxlan_config_validate() local
3826 lowerdev = __dev_get_by_index(src_net, conf->remote_ifindex); in vxlan_config_validate()
3827 if (!lowerdev) { in vxlan_config_validate()
3835 struct inet6_dev *idev = __in6_dev_get(lowerdev); in vxlan_config_validate()
3845 *lower = lowerdev; in vxlan_config_validate()
3886 struct net_device *lowerdev, in vxlan_config_apply() argument
3912 if (lowerdev) { in vxlan_config_apply()
3915 netif_inherit_tso_max(dev, lowerdev); in vxlan_config_apply()
3917 needed_headroom = lowerdev->hard_header_len; in vxlan_config_apply()
3918 needed_headroom += lowerdev->needed_headroom; in vxlan_config_apply()
3920 dev->needed_tailroom = lowerdev->needed_tailroom; in vxlan_config_apply()
3922 max_mtu = lowerdev->mtu - vxlan_headroom(flags); in vxlan_config_apply()
3946 struct net_device *lowerdev; in vxlan_dev_configure() local
3949 ret = vxlan_config_validate(src_net, conf, &lowerdev, vxlan, extack); in vxlan_dev_configure()
3953 vxlan_config_apply(dev, conf, lowerdev, src_net, false); in vxlan_dev_configure()
4417 struct net_device *lowerdev; in vxlan_changelink() local
4427 err = vxlan_config_validate(vxlan->net, &conf, &lowerdev, in vxlan_changelink()
4432 if (dst->remote_dev == lowerdev) in vxlan_changelink()
4433 lowerdev = NULL; in vxlan_changelink()
4435 err = netdev_adjacent_change_prepare(dst->remote_dev, lowerdev, dev, in vxlan_changelink()
4460 lowerdev, dev); in vxlan_changelink()
4482 lowerdev, dev); in vxlan_changelink()
4494 netdev_adjacent_change_commit(dst->remote_dev, lowerdev, dev); in vxlan_changelink()
4495 if (lowerdev && lowerdev != dst->remote_dev) in vxlan_changelink()
4496 dst->remote_dev = lowerdev; in vxlan_changelink()
4497 vxlan_config_apply(dev, &conf, lowerdev, vxlan->net, true); in vxlan_changelink()