Lines Matching refs:vlan
142 struct vlan_dev_priv *vlan = vlan_dev_priv(dev); in vlan_newlink() local
169 vlan->vlan_proto = proto; in vlan_newlink()
170 vlan->vlan_id = nla_get_u16(data[IFLA_VLAN_ID]); in vlan_newlink()
171 vlan->real_dev = real_dev; in vlan_newlink()
173 vlan->flags = VLAN_FLAG_REORDER_HDR; in vlan_newlink()
175 err = vlan_check_real_dev(real_dev, vlan->vlan_proto, vlan->vlan_id, in vlan_newlink()
211 struct vlan_dev_priv *vlan = vlan_dev_priv(dev); in vlan_get_size() local
216 vlan_qos_map_size(vlan->nr_ingress_mappings) + in vlan_get_size()
217 vlan_qos_map_size(vlan->nr_egress_mappings); in vlan_get_size()
222 struct vlan_dev_priv *vlan = vlan_dev_priv(dev); in vlan_fill_info() local
229 if (nla_put_be16(skb, IFLA_VLAN_PROTOCOL, vlan->vlan_proto) || in vlan_fill_info()
230 nla_put_u16(skb, IFLA_VLAN_ID, vlan->vlan_id)) in vlan_fill_info()
232 if (vlan->flags) { in vlan_fill_info()
233 f.flags = vlan->flags; in vlan_fill_info()
238 if (vlan->nr_ingress_mappings) { in vlan_fill_info()
243 for (i = 0; i < ARRAY_SIZE(vlan->ingress_priority_map); i++) { in vlan_fill_info()
244 if (!vlan->ingress_priority_map[i]) in vlan_fill_info()
248 m.to = vlan->ingress_priority_map[i]; in vlan_fill_info()
256 if (vlan->nr_egress_mappings) { in vlan_fill_info()
261 for (i = 0; i < ARRAY_SIZE(vlan->egress_priority_map); i++) { in vlan_fill_info()
262 for (pm = vlan->egress_priority_map[i]; pm; in vlan_fill_info()