Lines Matching refs:vlan
144 struct vlan_dev_priv *vlan = vlan_dev_priv(dev); in vlan_newlink() local
171 vlan->vlan_proto = proto; in vlan_newlink()
172 vlan->vlan_id = nla_get_u16(data[IFLA_VLAN_ID]); in vlan_newlink()
173 vlan->real_dev = real_dev; in vlan_newlink()
175 vlan->flags = VLAN_FLAG_REORDER_HDR; in vlan_newlink()
177 err = vlan_check_real_dev(real_dev, vlan->vlan_proto, vlan->vlan_id, in vlan_newlink()
213 struct vlan_dev_priv *vlan = vlan_dev_priv(dev); in vlan_get_size() local
218 vlan_qos_map_size(vlan->nr_ingress_mappings) + in vlan_get_size()
219 vlan_qos_map_size(vlan->nr_egress_mappings); in vlan_get_size()
224 struct vlan_dev_priv *vlan = vlan_dev_priv(dev); in vlan_fill_info() local
231 if (nla_put_be16(skb, IFLA_VLAN_PROTOCOL, vlan->vlan_proto) || in vlan_fill_info()
232 nla_put_u16(skb, IFLA_VLAN_ID, vlan->vlan_id)) in vlan_fill_info()
234 if (vlan->flags) { in vlan_fill_info()
235 f.flags = vlan->flags; in vlan_fill_info()
240 if (vlan->nr_ingress_mappings) { in vlan_fill_info()
245 for (i = 0; i < ARRAY_SIZE(vlan->ingress_priority_map); i++) { in vlan_fill_info()
246 if (!vlan->ingress_priority_map[i]) in vlan_fill_info()
250 m.to = vlan->ingress_priority_map[i]; in vlan_fill_info()
258 if (vlan->nr_egress_mappings) { in vlan_fill_info()
263 for (i = 0; i < ARRAY_SIZE(vlan->egress_priority_map); i++) { in vlan_fill_info()
264 for (pm = vlan->egress_priority_map[i]; pm; in vlan_fill_info()