Lines Matching refs:attrs
24 #define VXLAN_ATTRSET(attrs, type) (((attrs) & (1L << (type))) != 0) argument
64 static void check_duparg(__u64 *attrs, int type, const char *key, in check_duparg() argument
67 if (!VXLAN_ATTRSET(*attrs, type)) { in check_duparg()
68 *attrs |= (1L << type); in check_duparg()
85 __u64 attrs = 0; in vxlan_parse_opt() local
96 check_duparg(&attrs, IFLA_VXLAN_ID, "id", *argv); in vxlan_parse_opt()
107 check_duparg(&attrs, IFLA_VXLAN_GROUP, "group", *argv); in vxlan_parse_opt()
121 check_duparg(&attrs, IFLA_VXLAN_GROUP, "remote", *argv); in vxlan_parse_opt()
133 check_duparg(&attrs, IFLA_VXLAN_LOCAL, "local", *argv); in vxlan_parse_opt()
153 check_duparg(&attrs, IFLA_VXLAN_LINK, "dev", *argv); in vxlan_parse_opt()
167 check_duparg(&attrs, IFLA_VXLAN_TTL, "ttl", *argv); in vxlan_parse_opt()
182 check_duparg(&attrs, IFLA_VXLAN_TOS, "tos", *argv); in vxlan_parse_opt()
195 check_duparg(&attrs, IFLA_VXLAN_LABEL, "flowlabel", in vxlan_parse_opt()
205 check_duparg(&attrs, IFLA_VXLAN_AGEING, "ageing", in vxlan_parse_opt()
216 check_duparg(&attrs, IFLA_VXLAN_LIMIT, in vxlan_parse_opt()
228 check_duparg(&attrs, IFLA_VXLAN_PORT_RANGE, "srcport", in vxlan_parse_opt()
241 check_duparg(&attrs, IFLA_VXLAN_PORT, "dstport", *argv); in vxlan_parse_opt()
245 check_duparg(&attrs, IFLA_VXLAN_LEARNING, *argv, *argv); in vxlan_parse_opt()
248 check_duparg(&attrs, IFLA_VXLAN_LEARNING, *argv, *argv); in vxlan_parse_opt()
251 check_duparg(&attrs, IFLA_VXLAN_PROXY, *argv, *argv); in vxlan_parse_opt()
254 check_duparg(&attrs, IFLA_VXLAN_PROXY, *argv, *argv); in vxlan_parse_opt()
257 check_duparg(&attrs, IFLA_VXLAN_RSC, *argv, *argv); in vxlan_parse_opt()
260 check_duparg(&attrs, IFLA_VXLAN_RSC, *argv, *argv); in vxlan_parse_opt()
263 check_duparg(&attrs, IFLA_VXLAN_L2MISS, *argv, *argv); in vxlan_parse_opt()
266 check_duparg(&attrs, IFLA_VXLAN_L2MISS, *argv, *argv); in vxlan_parse_opt()
269 check_duparg(&attrs, IFLA_VXLAN_L3MISS, *argv, *argv); in vxlan_parse_opt()
272 check_duparg(&attrs, IFLA_VXLAN_L3MISS, *argv, *argv); in vxlan_parse_opt()
275 check_duparg(&attrs, IFLA_VXLAN_UDP_CSUM, *argv, *argv); in vxlan_parse_opt()
278 check_duparg(&attrs, IFLA_VXLAN_UDP_CSUM, *argv, *argv); in vxlan_parse_opt()
281 check_duparg(&attrs, IFLA_VXLAN_UDP_ZERO_CSUM6_TX, in vxlan_parse_opt()
285 check_duparg(&attrs, IFLA_VXLAN_UDP_ZERO_CSUM6_TX, in vxlan_parse_opt()
289 check_duparg(&attrs, IFLA_VXLAN_UDP_ZERO_CSUM6_RX, in vxlan_parse_opt()
293 check_duparg(&attrs, IFLA_VXLAN_UDP_ZERO_CSUM6_RX, in vxlan_parse_opt()
297 check_duparg(&attrs, IFLA_VXLAN_REMCSUM_TX, in vxlan_parse_opt()
301 check_duparg(&attrs, IFLA_VXLAN_REMCSUM_TX, in vxlan_parse_opt()
305 check_duparg(&attrs, IFLA_VXLAN_REMCSUM_RX, in vxlan_parse_opt()
309 check_duparg(&attrs, IFLA_VXLAN_REMCSUM_RX, in vxlan_parse_opt()
313 check_duparg(&attrs, IFLA_VXLAN_COLLECT_METADATA, in vxlan_parse_opt()
321 check_duparg(&attrs, IFLA_VXLAN_COLLECT_METADATA, in vxlan_parse_opt()
327 check_duparg(&attrs, IFLA_VXLAN_GBP, *argv, *argv); in vxlan_parse_opt()
330 check_duparg(&attrs, IFLA_VXLAN_GPE, *argv, *argv); in vxlan_parse_opt()
343 if (metadata && VXLAN_ATTRSET(attrs, IFLA_VXLAN_ID)) { in vxlan_parse_opt()
348 if (!metadata && !VXLAN_ATTRSET(attrs, IFLA_VXLAN_ID)) { in vxlan_parse_opt()
354 !VXLAN_ATTRSET(attrs, IFLA_VXLAN_LINK)) { in vxlan_parse_opt()
359 if (!VXLAN_ATTRSET(attrs, IFLA_VXLAN_PORT) && in vxlan_parse_opt()
360 VXLAN_ATTRSET(attrs, IFLA_VXLAN_GPE)) { in vxlan_parse_opt()
362 } else if (!VXLAN_ATTRSET(attrs, IFLA_VXLAN_PORT) && !set_op) { in vxlan_parse_opt()
384 if (!set_op || VXLAN_ATTRSET(attrs, IFLA_VXLAN_LEARNING)) in vxlan_parse_opt()