54using rss_key_type = std::basic_string_view<uint8_t>;
57static constexpr uint8_t default_rsskey_40bytes_v[] = {
58 0xd1, 0x81, 0xc6, 0x2c, 0xf7, 0xf4, 0xdb, 0x5b,
59 0x19, 0x83, 0xa2, 0xfc, 0x94, 0x3e, 0x1a, 0xdb,
60 0xd9, 0x38, 0x9e, 0x6b, 0xd1, 0x03, 0x9c, 0x2c,
61 0xa7, 0x44, 0x99, 0xad, 0x59, 0x3d, 0x56, 0xd9,
62 0xf3, 0x25, 0x3c, 0x06, 0x2a, 0xdc, 0x1f, 0xfc
65static constexpr rss_key_type default_rsskey_40bytes{default_rsskey_40bytes_v,
sizeof(default_rsskey_40bytes_v)};
68static constexpr uint8_t default_rsskey_52bytes_v[] = {
69 0x44, 0x39, 0x79, 0x6b, 0xb5, 0x4c, 0x50, 0x23,
70 0xb6, 0x75, 0xea, 0x5b, 0x12, 0x4f, 0x9f, 0x30,
71 0xb8, 0xa2, 0xc0, 0x3d, 0xdf, 0xdc, 0x4d, 0x02,
72 0xa0, 0x8c, 0x9b, 0x33, 0x4a, 0xf6, 0x4a, 0x4c,
73 0x05, 0xc6, 0xfa, 0x34, 0x39, 0x58, 0xd8, 0x55,
74 0x7d, 0x99, 0x58, 0x3a, 0xe1, 0x38, 0xc9, 0x2e,
75 0x81, 0x15, 0x03, 0x66
78static constexpr rss_key_type default_rsskey_52bytes{default_rsskey_52bytes_v,
sizeof(default_rsskey_52bytes_v)};
82toeplitz_hash(rss_key_type key,
const T& data)
88 v = (key[0]<<24) + (key[1]<<16) + (key[2] <<8) + key[3];
89 for (
unsigned i = 0; i < data.size(); i++) {
90 for (
unsigned b = 0; b < 8; b++) {
91 if (data[i] & (1<<(7-b)))
94 if ((i + 4) < key.size() &&
95 (key[i+4] & (1<<(7-b))))
Seastar API namespace.
Definition: abort_on_ebadf.hh:26