diff options
authorXavier Simonart <>2022-01-02 16:24:00 +0000
committerXavier Simonart <>2022-01-02 16:33:15 +0000
commit00f5630bf8a9a625a6ff4b35169a2f1f6ff23703 (patch)
parent101b809d19d3e8cfbb9a50c3fb8656e48ebcc63e (diff)
Fix toeplitz initialization key and rss key len for mlx4
mlx4 requires key_len to be 40. Other NICS seems fine with it. Signed-off-by: Xavier Simonart <> Change-Id: Ifc36ce2f0a80be74e9f957eb1ede3f98c756bfb2
2 files changed, 2 insertions, 4 deletions
diff --git a/VNFs/DPPD-PROX/toeplitz.c b/VNFs/DPPD-PROX/toeplitz.c
index 62424579..a9f7e585 100644
--- a/VNFs/DPPD-PROX/toeplitz.c
+++ b/VNFs/DPPD-PROX/toeplitz.c
@@ -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)
diff --git a/VNFs/DPPD-PROX/toeplitz.h b/VNFs/DPPD-PROX/toeplitz.h
index f24ae766..7cf052ae 100644
--- a/VNFs/DPPD-PROX/toeplitz.h
+++ b/VNFs/DPPD-PROX/toeplitz.h
@@ -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);