Lines Matching refs:data
39 static int vlan_validate(struct nlattr *tb[], struct nlattr *data[]) in vlan_validate() argument
52 if (!data) in vlan_validate()
55 if (data[IFLA_VLAN_ID]) { in vlan_validate()
56 id = nla_get_u16(data[IFLA_VLAN_ID]); in vlan_validate()
60 if (data[IFLA_VLAN_FLAGS]) { in vlan_validate()
61 flags = nla_data(data[IFLA_VLAN_FLAGS]); in vlan_validate()
67 err = vlan_validate_qos_map(data[IFLA_VLAN_INGRESS_QOS]); in vlan_validate()
70 err = vlan_validate_qos_map(data[IFLA_VLAN_EGRESS_QOS]); in vlan_validate()
77 struct nlattr *tb[], struct nlattr *data[]) in vlan_changelink() argument
84 if (data[IFLA_VLAN_FLAGS]) { in vlan_changelink()
85 flags = nla_data(data[IFLA_VLAN_FLAGS]); in vlan_changelink()
88 if (data[IFLA_VLAN_INGRESS_QOS]) { in vlan_changelink()
89 nla_for_each_nested(attr, data[IFLA_VLAN_INGRESS_QOS], rem) { in vlan_changelink()
94 if (data[IFLA_VLAN_EGRESS_QOS]) { in vlan_changelink()
95 nla_for_each_nested(attr, data[IFLA_VLAN_EGRESS_QOS], rem) { in vlan_changelink()
104 struct nlattr *tb[], struct nlattr *data[]) in vlan_newlink() argument
110 if (!data[IFLA_VLAN_ID]) in vlan_newlink()
119 vlan->vlan_id = nla_get_u16(data[IFLA_VLAN_ID]); in vlan_newlink()
132 err = vlan_changelink(dev, tb, data); in vlan_newlink()