Lines Matching refs:vid
164 u16 vid; member
180 __be16 proto, u16 vid) in vlan_vid_info_get() argument
185 if (vid_info->proto == proto && vid_info->vid == vid) in vlan_vid_info_get()
191 static struct vlan_vid_info *vlan_vid_info_alloc(__be16 proto, u16 vid) in vlan_vid_info_alloc() argument
199 vid_info->vid = vid; in vlan_vid_info_alloc()
204 static int vlan_add_rx_filter_info(struct net_device *dev, __be16 proto, u16 vid) in vlan_add_rx_filter_info() argument
210 return dev->netdev_ops->ndo_vlan_rx_add_vid(dev, proto, vid); in vlan_add_rx_filter_info()
215 static int vlan_kill_rx_filter_info(struct net_device *dev, __be16 proto, u16 vid) in vlan_kill_rx_filter_info() argument
221 return dev->netdev_ops->ndo_vlan_rx_kill_vid(dev, proto, vid); in vlan_kill_rx_filter_info()
227 int (*action)(struct net_device *dev, int vid, void *arg), in vlan_for_each() argument
243 vid_info->vid); in vlan_for_each()
244 ret = action(vdev, vid_info->vid, arg); in vlan_for_each()
262 vlan_vid_info->vid); in vlan_filter_push_vids()
275 vlan_vid_info->vid); in vlan_filter_push_vids()
290 vlan_vid_info->vid); in vlan_filter_drop_vids()
294 static int __vlan_vid_add(struct vlan_info *vlan_info, __be16 proto, u16 vid, in __vlan_vid_add() argument
301 vid_info = vlan_vid_info_alloc(proto, vid); in __vlan_vid_add()
305 err = vlan_add_rx_filter_info(dev, proto, vid); in __vlan_vid_add()
317 int vlan_vid_add(struct net_device *dev, __be16 proto, u16 vid) in vlan_vid_add() argument
333 vid_info = vlan_vid_info_get(vlan_info, proto, vid); in vlan_vid_add()
335 err = __vlan_vid_add(vlan_info, proto, vid, &vid_info); in vlan_vid_add()
358 u16 vid = vid_info->vid; in __vlan_vid_del() local
361 err = vlan_kill_rx_filter_info(dev, proto, vid); in __vlan_vid_del()
364 proto, vid, dev->name); in __vlan_vid_del()
371 void vlan_vid_del(struct net_device *dev, __be16 proto, u16 vid) in vlan_vid_del() argument
382 vid_info = vlan_vid_info_get(vlan_info, proto, vid); in vlan_vid_del()
410 err = vlan_vid_add(dev, vid_info->proto, vid_info->vid); in vlan_vids_add_by_dev()
420 vlan_vid_del(dev, vid_info->proto, vid_info->vid); in vlan_vids_add_by_dev()
440 vlan_vid_del(dev, vid_info->proto, vid_info->vid); in vlan_vids_del_by_dev()