Lines Matching refs:lowerdev

2890 	struct net_device *lowerdev = __dev_get_by_index(vxlan->net,  in vxlan_change_mtu()  local
2897 if (lowerdev) { in vxlan_change_mtu()
2898 int max_mtu = lowerdev->mtu - in vxlan_change_mtu()
3417 struct net_device *lowerdev; in vxlan_config_validate() local
3419 lowerdev = __dev_get_by_index(src_net, conf->remote_ifindex); in vxlan_config_validate()
3420 if (!lowerdev) { in vxlan_config_validate()
3428 struct inet6_dev *idev = __in6_dev_get(lowerdev); in vxlan_config_validate()
3437 *lower = lowerdev; in vxlan_config_validate()
3493 struct net_device *lowerdev, in vxlan_config_apply() argument
3519 if (lowerdev) { in vxlan_config_apply()
3522 dev->gso_max_size = lowerdev->gso_max_size; in vxlan_config_apply()
3523 dev->gso_max_segs = lowerdev->gso_max_segs; in vxlan_config_apply()
3525 needed_headroom = lowerdev->hard_header_len; in vxlan_config_apply()
3527 max_mtu = lowerdev->mtu - (use_ipv6 ? VXLAN6_HEADROOM : in vxlan_config_apply()
3553 struct net_device *lowerdev; in vxlan_dev_configure() local
3556 ret = vxlan_config_validate(src_net, conf, &lowerdev, vxlan, extack); in vxlan_dev_configure()
3560 vxlan_config_apply(dev, conf, lowerdev, src_net, changelink); in vxlan_dev_configure()
3955 struct net_device *lowerdev; in vxlan_changelink() local
3965 err = vxlan_config_validate(vxlan->net, &conf, &lowerdev, in vxlan_changelink()
3970 if (dst->remote_dev == lowerdev) in vxlan_changelink()
3971 lowerdev = NULL; in vxlan_changelink()
3973 err = netdev_adjacent_change_prepare(dst->remote_dev, lowerdev, dev, in vxlan_changelink()
3995 lowerdev, dev); in vxlan_changelink()
4013 netdev_adjacent_change_commit(dst->remote_dev, lowerdev, dev); in vxlan_changelink()
4014 if (lowerdev && lowerdev != dst->remote_dev) { in vxlan_changelink()
4015 dst->remote_dev = lowerdev; in vxlan_changelink()
4016 netdev_update_lockdep_key(lowerdev); in vxlan_changelink()
4018 vxlan_config_apply(dev, &conf, lowerdev, vxlan->net, true); in vxlan_changelink()