Lines Matching refs:lowerdev

3159 	struct net_device *lowerdev = __dev_get_by_index(vxlan->net,  in vxlan_change_mtu()  local
3166 if (lowerdev) { in vxlan_change_mtu()
3167 int max_mtu = lowerdev->mtu - in vxlan_change_mtu()
3451 struct net_device *lowerdev = __dev_get_by_index(vxlan->net, in vxlan_get_link_ksettings() local
3454 if (!lowerdev) { in vxlan_get_link_ksettings()
3462 return __ethtool_get_link_ksettings(lowerdev, cmd); in vxlan_get_link_ksettings()
3704 struct net_device *lowerdev; in vxlan_config_validate() local
3706 lowerdev = __dev_get_by_index(src_net, conf->remote_ifindex); in vxlan_config_validate()
3707 if (!lowerdev) { in vxlan_config_validate()
3715 struct inet6_dev *idev = __in6_dev_get(lowerdev); in vxlan_config_validate()
3724 *lower = lowerdev; in vxlan_config_validate()
3780 struct net_device *lowerdev, in vxlan_config_apply() argument
3806 if (lowerdev) { in vxlan_config_apply()
3809 dev->gso_max_size = lowerdev->gso_max_size; in vxlan_config_apply()
3810 dev->gso_max_segs = lowerdev->gso_max_segs; in vxlan_config_apply()
3812 needed_headroom = lowerdev->hard_header_len; in vxlan_config_apply()
3813 needed_headroom += lowerdev->needed_headroom; in vxlan_config_apply()
3815 dev->needed_tailroom = lowerdev->needed_tailroom; in vxlan_config_apply()
3817 max_mtu = lowerdev->mtu - (use_ipv6 ? VXLAN6_HEADROOM : in vxlan_config_apply()
3843 struct net_device *lowerdev; in vxlan_dev_configure() local
3846 ret = vxlan_config_validate(src_net, conf, &lowerdev, vxlan, extack); in vxlan_dev_configure()
3850 vxlan_config_apply(dev, conf, lowerdev, src_net, changelink); in vxlan_dev_configure()
4247 struct net_device *lowerdev; in vxlan_changelink() local
4257 err = vxlan_config_validate(vxlan->net, &conf, &lowerdev, in vxlan_changelink()
4262 if (dst->remote_dev == lowerdev) in vxlan_changelink()
4263 lowerdev = NULL; in vxlan_changelink()
4265 err = netdev_adjacent_change_prepare(dst->remote_dev, lowerdev, dev, in vxlan_changelink()
4287 lowerdev, dev); in vxlan_changelink()
4305 netdev_adjacent_change_commit(dst->remote_dev, lowerdev, dev); in vxlan_changelink()
4306 if (lowerdev && lowerdev != dst->remote_dev) in vxlan_changelink()
4307 dst->remote_dev = lowerdev; in vxlan_changelink()
4308 vxlan_config_apply(dev, &conf, lowerdev, vxlan->net, true); in vxlan_changelink()