Lines Matching refs:attrs
18 #define GENEVE_ATTRSET(attrs, type) (((attrs) & (1L << (type))) != 0) argument
47 static void check_duparg(__u64 *attrs, int type, const char *key, in check_duparg() argument
50 if (!GENEVE_ATTRSET(*attrs, type)) { in check_duparg()
51 *attrs |= (1L << type); in check_duparg()
71 __u64 attrs = 0; in geneve_parse_opt() local
79 check_duparg(&attrs, IFLA_GENEVE_ID, "id", *argv); in geneve_parse_opt()
85 check_duparg(&attrs, IFLA_GENEVE_REMOTE, "remote", in geneve_parse_opt()
98 check_duparg(&attrs, IFLA_GENEVE_TTL, "ttl", *argv); in geneve_parse_opt()
111 check_duparg(&attrs, IFLA_GENEVE_TOS, "tos", *argv); in geneve_parse_opt()
123 check_duparg(&attrs, IFLA_GENEVE_LABEL, "flowlabel", in geneve_parse_opt()
131 check_duparg(&attrs, IFLA_GENEVE_PORT, "dstport", in geneve_parse_opt()
136 check_duparg(&attrs, IFLA_GENEVE_COLLECT_METADATA, in geneve_parse_opt()
140 check_duparg(&attrs, IFLA_GENEVE_COLLECT_METADATA, in geneve_parse_opt()
144 check_duparg(&attrs, IFLA_GENEVE_UDP_CSUM, *argv, in geneve_parse_opt()
148 check_duparg(&attrs, IFLA_GENEVE_UDP_CSUM, *argv, in geneve_parse_opt()
152 check_duparg(&attrs, IFLA_GENEVE_UDP_ZERO_CSUM6_TX, in geneve_parse_opt()
156 check_duparg(&attrs, IFLA_GENEVE_UDP_ZERO_CSUM6_TX, in geneve_parse_opt()
160 check_duparg(&attrs, IFLA_GENEVE_UDP_ZERO_CSUM6_RX, in geneve_parse_opt()
164 check_duparg(&attrs, IFLA_GENEVE_UDP_ZERO_CSUM6_RX, in geneve_parse_opt()
178 if (metadata && GENEVE_ATTRSET(attrs, IFLA_GENEVE_ID)) { in geneve_parse_opt()
185 if (!GENEVE_ATTRSET(attrs, IFLA_GENEVE_ID)) { in geneve_parse_opt()
207 if (!set_op || GENEVE_ATTRSET(attrs, IFLA_GENEVE_LABEL)) in geneve_parse_opt()
209 if (!set_op || GENEVE_ATTRSET(attrs, IFLA_GENEVE_TTL)) in geneve_parse_opt()
211 if (!set_op || GENEVE_ATTRSET(attrs, IFLA_GENEVE_TOS)) in geneve_parse_opt()
217 if (GENEVE_ATTRSET(attrs, IFLA_GENEVE_UDP_CSUM)) in geneve_parse_opt()
219 if (GENEVE_ATTRSET(attrs, IFLA_GENEVE_UDP_ZERO_CSUM6_TX)) in geneve_parse_opt()
221 if (GENEVE_ATTRSET(attrs, IFLA_GENEVE_UDP_ZERO_CSUM6_RX)) in geneve_parse_opt()