Lines Matching refs:lowerdev

3147 	struct net_device *lowerdev = __dev_get_by_index(vxlan->net,  in vxlan_change_mtu()  local
3154 if (lowerdev) { in vxlan_change_mtu()
3155 int max_mtu = lowerdev->mtu - in vxlan_change_mtu()
3439 struct net_device *lowerdev = __dev_get_by_index(vxlan->net, in vxlan_get_link_ksettings() local
3442 if (!lowerdev) { in vxlan_get_link_ksettings()
3450 return __ethtool_get_link_ksettings(lowerdev, cmd); in vxlan_get_link_ksettings()
3692 struct net_device *lowerdev; in vxlan_config_validate() local
3694 lowerdev = __dev_get_by_index(src_net, conf->remote_ifindex); in vxlan_config_validate()
3695 if (!lowerdev) { in vxlan_config_validate()
3703 struct inet6_dev *idev = __in6_dev_get(lowerdev); in vxlan_config_validate()
3712 *lower = lowerdev; in vxlan_config_validate()
3768 struct net_device *lowerdev, in vxlan_config_apply() argument
3794 if (lowerdev) { in vxlan_config_apply()
3797 dev->gso_max_size = lowerdev->gso_max_size; in vxlan_config_apply()
3798 dev->gso_max_segs = lowerdev->gso_max_segs; in vxlan_config_apply()
3800 needed_headroom = lowerdev->hard_header_len; in vxlan_config_apply()
3801 needed_headroom += lowerdev->needed_headroom; in vxlan_config_apply()
3803 dev->needed_tailroom = lowerdev->needed_tailroom; in vxlan_config_apply()
3805 max_mtu = lowerdev->mtu - (use_ipv6 ? VXLAN6_HEADROOM : in vxlan_config_apply()
3831 struct net_device *lowerdev; in vxlan_dev_configure() local
3834 ret = vxlan_config_validate(src_net, conf, &lowerdev, vxlan, extack); in vxlan_dev_configure()
3838 vxlan_config_apply(dev, conf, lowerdev, src_net, changelink); in vxlan_dev_configure()
4235 struct net_device *lowerdev; in vxlan_changelink() local
4245 err = vxlan_config_validate(vxlan->net, &conf, &lowerdev, in vxlan_changelink()
4250 if (dst->remote_dev == lowerdev) in vxlan_changelink()
4251 lowerdev = NULL; in vxlan_changelink()
4253 err = netdev_adjacent_change_prepare(dst->remote_dev, lowerdev, dev, in vxlan_changelink()
4275 lowerdev, dev); in vxlan_changelink()
4293 netdev_adjacent_change_commit(dst->remote_dev, lowerdev, dev); in vxlan_changelink()
4294 if (lowerdev && lowerdev != dst->remote_dev) in vxlan_changelink()
4295 dst->remote_dev = lowerdev; in vxlan_changelink()
4296 vxlan_config_apply(dev, &conf, lowerdev, vxlan->net, true); in vxlan_changelink()