Skip to contentSkip to conversation

test/crypto: increase mbuf data payload size to 4K

PATCH Applied Suanming Mou 2 participants 3 messages Jul 20, 2021 – Jul 27, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 test/crypto: increase mbuf data payload size to 4K

Currently, there is vendor which can support bigger crypto data size. Increase the default mbuf data payload size to 4K as needed.

---
 app/test/test_cryptodev.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
app/test/test_cryptodev.h +1 -1
index 31e278261a..1cdd84d01f 100644
@@ -19,7 +19,7 @@
 #define DEFAULT_NUM_XFORMS              (2)
 #define NUM_MBUFS                       (8191)
 #define MBUF_CACHE_SIZE                 (256)
-#define MBUF_DATAPAYLOAD_SIZE		(2048 + DIGEST_BYTE_LENGTH_SHA512)
+#define MBUF_DATAPAYLOAD_SIZE		(4096 + DIGEST_BYTE_LENGTH_SHA512)
 #define MBUF_SIZE			(sizeof(struct rte_mbuf) + \
 		RTE_PKTMBUF_HEADROOM + MBUF_DATAPAYLOAD_SIZE)
 
Signature · 1 line
2.25.1
#1 lore raw
Quoted 8 lines

Currently, there is vendor which can support bigger crypto data size. Increase the default mbuf data payload size to 4K as needed.

---
 app/test/test_cryptodev.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Adding more people.

Quoted 17 lines
app/test/test_cryptodev.h +1 -1
index 31e278261a..1cdd84d01f 100644
@@ -19,7 +19,7 @@
 #define DEFAULT_NUM_XFORMS              (2)
 #define NUM_MBUFS                       (8191)
 #define MBUF_CACHE_SIZE                 (256)
-#define MBUF_DATAPAYLOAD_SIZE		(2048 +
 DIGEST_BYTE_LENGTH_SHA512)
+#define MBUF_DATAPAYLOAD_SIZE		(4096 +
 DIGEST_BYTE_LENGTH_SHA512)
 #define MBUF_SIZE			(sizeof(struct rte_mbuf) + \

RTE_PKTMBUF_HEADROOM + MBUF_DATAPAYLOAD_SIZE)

--
2.25.1

Acked-by Applied
#2 lore raw
Quoted 4 lines
Quoted 4 lines

Currently, there is vendor which can support bigger crypto data size. Increase the default mbuf data payload size to 4K as needed.

Quoted 8 lines
Quoted 5 lines
---
 app/test/test_cryptodev.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Adding more people.

No response from anyone.

Applied to dpdk-next-crypto