From: Xavier Simonart Date: Sun, 2 Jan 2022 16:24:00 +0000 (+0000) Subject: Fix toeplitz initialization key and rss key len for mlx4 X-Git-Tag: 0.0.2~15 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F30%2F73130%2F2;p=samplevnf.git 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 --- 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); #endif