Fix toeplitz initialization key and rss key len for mlx4 30/73130/2
authorXavier Simonart <simonartxavier@gmail.com>
Sun, 2 Jan 2022 16:24:00 +0000 (16:24 +0000)
committerXavier Simonart <simonartxavier@gmail.com>
Sun, 2 Jan 2022 16:33:15 +0000 (16:33 +0000)
mlx4 requires key_len to be 40. Other NICS seems fine with it.

Signed-off-by: Xavier Simonart <simonartxavier@gmail.com>
Change-Id: Ifc36ce2f0a80be74e9f957eb1ede3f98c756bfb2

VNFs/DPPD-PROX/toeplitz.c
VNFs/DPPD-PROX/toeplitz.h

index 6242457..a9f7e58 100644 (file)
@@ -25,9 +25,7 @@ uint8_t toeplitz_init_key[TOEPLITZ_KEY_LEN] =
         0x41, 0x67, 0x25, 0x3d, 0x43, 0xa3, 0x8f, 0xb0,
         0xd0, 0xca, 0x2b, 0xcb, 0xae, 0x7b, 0x30, 0xb4,
         0x77, 0xcb, 0x2d, 0xa3, 0x80, 0x30, 0xf2, 0x0c,
-        0x6a, 0x42, 0xb7, 0x3b, 0xbe, 0xac, 0x01, 0xfa,
-        0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-        0x00, 0x00, 0x00, 0x00
+        0x6a, 0x42, 0xb7, 0x3b, 0xbe, 0xac, 0x01, 0xfa
 };
 
 uint32_t toeplitz_hash(uint8_t *buf_p, int buflen)
index f24ae76..7cf052a 100644 (file)
@@ -17,7 +17,7 @@
 #ifndef _TOEPLITZ_H_
 #define _TOEPLITZ_H_
 
-#define TOEPLITZ_KEY_LEN       52
+#define TOEPLITZ_KEY_LEN       40
 extern uint8_t toeplitz_init_key[TOEPLITZ_KEY_LEN];
 uint32_t toeplitz_hash(uint8_t *buf_p, int buflen);
 #endif