Lines Matching refs:vlandev

289 			      struct net_device *vlandev)  in vlan_sync_address()  argument
291 struct vlan_dev_priv *vlan = vlan_dev_priv(vlandev); in vlan_sync_address()
298 if (vlan_dev_inherit_address(vlandev, dev)) in vlan_sync_address()
303 if (!ether_addr_equal(vlandev->dev_addr, vlan->real_dev_addr) && in vlan_sync_address()
304 ether_addr_equal(vlandev->dev_addr, dev->dev_addr)) in vlan_sync_address()
305 dev_uc_del(dev, vlandev->dev_addr); in vlan_sync_address()
309 if (ether_addr_equal(vlandev->dev_addr, vlan->real_dev_addr) && in vlan_sync_address()
310 !ether_addr_equal(vlandev->dev_addr, dev->dev_addr)) in vlan_sync_address()
311 dev_uc_add(dev, vlandev->dev_addr); in vlan_sync_address()
318 struct net_device *vlandev) in vlan_transfer_features() argument
320 struct vlan_dev_priv *vlan = vlan_dev_priv(vlandev); in vlan_transfer_features()
322 netif_inherit_tso_max(vlandev, dev); in vlan_transfer_features()
325 vlandev->hard_header_len = dev->hard_header_len; in vlan_transfer_features()
327 vlandev->hard_header_len = dev->hard_header_len + VLAN_HLEN; in vlan_transfer_features()
330 vlandev->fcoe_ddp_xid = dev->fcoe_ddp_xid; in vlan_transfer_features()
333 vlandev->priv_flags &= ~IFF_XMIT_DST_RELEASE; in vlan_transfer_features()
334 vlandev->priv_flags |= (vlan->real_dev->priv_flags & IFF_XMIT_DST_RELEASE); in vlan_transfer_features()
335 vlandev->hw_enc_features = vlan_tnl_features(vlan->real_dev); in vlan_transfer_features()
337 netdev_update_features(vlandev); in vlan_transfer_features()
368 struct net_device *vlandev; in vlan_device_event() local
403 vlan_group_for_each_dev(grp, i, vlandev) in vlan_device_event()
404 vlan_stacked_transfer_operstate(dev, vlandev, in vlan_device_event()
405 vlan_dev_priv(vlandev)); in vlan_device_event()
410 vlan_group_for_each_dev(grp, i, vlandev) { in vlan_device_event()
411 flgs = vlandev->flags; in vlan_device_event()
415 vlan_sync_address(dev, vlandev); in vlan_device_event()
420 vlan_group_for_each_dev(grp, i, vlandev) { in vlan_device_event()
421 if (vlandev->mtu <= dev->mtu) in vlan_device_event()
424 dev_set_mtu(vlandev, dev->mtu); in vlan_device_event()
430 vlan_group_for_each_dev(grp, i, vlandev) in vlan_device_event()
431 vlan_transfer_features(dev, vlandev); in vlan_device_event()
439 vlan_group_for_each_dev(grp, i, vlandev) { in vlan_device_event()
440 flgs = vlandev->flags; in vlan_device_event()
444 vlan = vlan_dev_priv(vlandev); in vlan_device_event()
446 list_add(&vlandev->close_list, &close_list); in vlan_device_event()
451 list_for_each_entry_safe(vlandev, tmp, &close_list, close_list) { in vlan_device_event()
452 vlan_stacked_transfer_operstate(dev, vlandev, in vlan_device_event()
453 vlan_dev_priv(vlandev)); in vlan_device_event()
454 list_del_init(&vlandev->close_list); in vlan_device_event()
461 vlan_group_for_each_dev(grp, i, vlandev) { in vlan_device_event()
462 flgs = dev_get_flags(vlandev); in vlan_device_event()
466 vlan = vlan_dev_priv(vlandev); in vlan_device_event()
468 dev_change_flags(vlandev, flgs | IFF_UP, in vlan_device_event()
470 vlan_stacked_transfer_operstate(dev, vlandev, vlan); in vlan_device_event()
479 vlan_group_for_each_dev(grp, i, vlandev) { in vlan_device_event()
485 unregister_vlan_dev(vlandev, &list); in vlan_device_event()
502 vlan_group_for_each_dev(grp, i, vlandev) in vlan_device_event()
503 call_netdevice_notifiers(event, vlandev); in vlan_device_event()