Lines Matching refs:vlan
362 struct vlan_dev_info *vlan = vlan_dev_info(dev); in vlan_dev_set_ingress_priority() local
364 if (vlan->ingress_priority_map[vlan_prio & 0x7] && !skb_prio) in vlan_dev_set_ingress_priority()
365 vlan->nr_ingress_mappings--; in vlan_dev_set_ingress_priority()
366 else if (!vlan->ingress_priority_map[vlan_prio & 0x7] && skb_prio) in vlan_dev_set_ingress_priority()
367 vlan->nr_ingress_mappings++; in vlan_dev_set_ingress_priority()
369 vlan->ingress_priority_map[vlan_prio & 0x7] = skb_prio; in vlan_dev_set_ingress_priority()
375 struct vlan_dev_info *vlan = vlan_dev_info(dev); in vlan_dev_set_egress_priority() local
381 mp = vlan->egress_priority_map[skb_prio & 0xF]; in vlan_dev_set_egress_priority()
385 vlan->nr_egress_mappings--; in vlan_dev_set_egress_priority()
387 vlan->nr_egress_mappings++; in vlan_dev_set_egress_priority()
395 mp = vlan->egress_priority_map[skb_prio & 0xF]; in vlan_dev_set_egress_priority()
403 vlan->egress_priority_map[skb_prio & 0xF] = np; in vlan_dev_set_egress_priority()
405 vlan->nr_egress_mappings++; in vlan_dev_set_egress_priority()
412 struct vlan_dev_info *vlan = vlan_dev_info(dev); in vlan_dev_change_flags() local
413 u32 old_flags = vlan->flags; in vlan_dev_change_flags()
418 vlan->flags = (old_flags & ~mask) | (flags & mask); in vlan_dev_change_flags()
420 if (netif_running(dev) && (vlan->flags ^ old_flags) & VLAN_FLAG_GVRP) { in vlan_dev_change_flags()
421 if (vlan->flags & VLAN_FLAG_GVRP) in vlan_dev_change_flags()
436 struct vlan_dev_info *vlan = vlan_dev_info(dev); in vlan_dev_open() local
437 struct net_device *real_dev = vlan->real_dev; in vlan_dev_open()
460 memcpy(vlan->real_dev_addr, real_dev->dev_addr, ETH_ALEN); in vlan_dev_open()
462 if (vlan->flags & VLAN_FLAG_GVRP) in vlan_dev_open()
479 struct vlan_dev_info *vlan = vlan_dev_info(dev); in vlan_dev_stop() local
480 struct net_device *real_dev = vlan->real_dev; in vlan_dev_stop()
482 if (vlan->flags & VLAN_FLAG_GVRP) in vlan_dev_stop()
654 struct vlan_dev_info *vlan = vlan_dev_info(dev); in vlan_dev_uninit() local
657 for (i = 0; i < ARRAY_SIZE(vlan->egress_priority_map); i++) { in vlan_dev_uninit()
658 while ((pm = vlan->egress_priority_map[i]) != NULL) { in vlan_dev_uninit()
659 vlan->egress_priority_map[i] = pm->next; in vlan_dev_uninit()
668 const struct vlan_dev_info *vlan = vlan_dev_info(dev); in vlan_ethtool_get_settings() local
669 struct net_device *real_dev = vlan->real_dev; in vlan_ethtool_get_settings()
687 const struct vlan_dev_info *vlan = vlan_dev_info(dev); in vlan_ethtool_get_rx_csum() local
688 struct net_device *real_dev = vlan->real_dev; in vlan_ethtool_get_rx_csum()
698 const struct vlan_dev_info *vlan = vlan_dev_info(dev); in vlan_ethtool_get_flags() local
699 struct net_device *real_dev = vlan->real_dev; in vlan_ethtool_get_flags()