diff mbox series

[v2,3/3] linux-gen: fix pktio private size on 128-byte cache machines

Message ID 1536058816-6995-4-git-send-email-odpbot@yandex.ru
State New
Headers show
Series [v2,1/3] include: abi: set ODP_CACHE_LINE_SIZE to 128 on ppc64le | expand

Commit Message

Github ODP bot Sept. 4, 2018, 11 a.m. UTC
From: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>


Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>

---
/** Email created from pull request 692 (lumag:ppc64le-cache)
 ** https://github.com/Linaro/odp/pull/692
 ** Patch: https://github.com/Linaro/odp/pull/692.patch
 ** Base sha: 0a5d67beda902557056d5b5146d8cbe86e5001b0
 ** Merge commit sha: f8a74b1a2c166d0c4225802cfcce30538c375d69
 **/
 platform/linux-generic/include/odp_packet_io_internal.h | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/platform/linux-generic/include/odp_packet_io_internal.h b/platform/linux-generic/include/odp_packet_io_internal.h
index 080850783..53db2c907 100644
--- a/platform/linux-generic/include/odp_packet_io_internal.h
+++ b/platform/linux-generic/include/odp_packet_io_internal.h
@@ -53,6 +53,8 @@  struct pktio_if_ops;
 
 #if defined(ODP_NETMAP)
 #define PKTIO_PRIVATE_SIZE 74752
+#elif defined(ODP_PKTIO_DPDK) && ODP_CACHE_LINE_SIZE == 128
+#define PKTIO_PRIVATE_SIZE 10240
 #elif defined(ODP_PKTIO_DPDK)
 #define PKTIO_PRIVATE_SIZE 5632
 #else