aboutsummaryrefslogtreecommitdiffstats
path: root/GPL/tools/trex
AgeCommit message (Expand)AuthorFilesLines
2020-11-18T-Rex: 2.86pmikus6-6/+6
2020-11-12Switch licenses in GPL directoryVratko Polak6-18/+72
2020-10-29Support existing test types with ASTFVratko Polak4-198/+173
2020-08-24T-Rex: 2.82, core pin, 8 workerspmikus6-8/+12
2020-08-07Perf: NAT44 endpoint-dependent mode - udp, part IJan Gelety2-57/+79
2020-07-23T-Rex: Add advanced stateful modeJan Gelety6-24/+624
2020-07-30TRex stateless: Fix unidirectional testsVratko Polak1-1/+1
2020-07-16FIX: CSIT annoyances IIpmikus1-1/+0
2020-06-10NAT44 EI testsMaros Mullner1-6/+12
2020-05-06Separate files needing GPL licenseVratko Polak3-0/+503
u64 value; } clib_bihash_kv_40_8_t; static inline int clib_bihash_is_free_40_8 (const clib_bihash_kv_40_8_t * v) { /* Free values are memset to 0xff, check a bit... */ if (v->key[0] == ~0ULL && v->value == ~0ULL) return 1; return 0; } static inline u64 clib_bihash_hash_40_8 (const clib_bihash_kv_40_8_t * v) { #if __SSE4_2__ return clib_crc32c ((u8 *) v->key, 40); #else u64 tmp = v->key[0] ^ v->key[1] ^ v->key[2] ^ v->key[3] ^ v->key[4]; return clib_xxhash (tmp); #endif } static inline u8 * format_bihash_kvp_40_8 (u8 * s, va_list * args) { clib_bihash_kv_40_8_t *v = va_arg (*args, clib_bihash_kv_40_8_t *); s = format (s, "key %llu %llu %llu %llu %llu value %llu", v->key[0], v->key[1], v->key[2], v->key[3], v->key[4], v->value); return s; } static inline int clib_bihash_key_compare_40_8 (const u64 * a, const u64 * b) { return ((a[0] ^ b[0]) | (a[1] ^ b[1]) | (a[2] ^ b[2]) | (a[3] ^ b[3]) | (a[4] ^ b[4])) == 0; } #undef __included_bihash_template_h__ #include <vppinfra/bihash_template.h> #endif /* __included_bihash_40_8_h__ */ /* * fd.io coding-style-patch-verification: ON * * Local Variables: * eval: (c-set-style "gnu") * End: */