diff options
author | Matias Elo <matias.elo@nokia.com> | 2018-10-18 09:49:01 +0300 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2018-10-18 16:38:11 +0300 |
commit | 690bacc61c55e4f8f3195faaac068da83790ebf4 (patch) | |
tree | 2bed72d31c3fb6939a20b41569dda962c7ccdfe2 /platform/linux-generic/include/odp_config_internal.h | |
parent | 0287f1432eda1cf3e7fb8323e0fda838cf744816 (diff) |
linux-gen: pool: increase minimum packet segment length
Some DPDK NICs need at least 2176 byte buffers (2048B + headroom) to not
segment standard ethernet frames. Increase minimum segment length to avoid
this and add matching check to zero-copy dpdk pktio pool create.
Reported-by: P. Gyanesh Kumar Patra <pgyanesh.patra@gmail.com>
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Tested-by: P. Gyanesh Kumar Patra <pgyanesh.patra@gmail.com>
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'platform/linux-generic/include/odp_config_internal.h')
-rw-r--r-- | platform/linux-generic/include/odp_config_internal.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/linux-generic/include/odp_config_internal.h b/platform/linux-generic/include/odp_config_internal.h index a94012acc..8ceb325b2 100644 --- a/platform/linux-generic/include/odp_config_internal.h +++ b/platform/linux-generic/include/odp_config_internal.h @@ -125,8 +125,8 @@ extern "C" { * defined segment length (seg_len in odp_pool_param_t) will be rounded up into * this value. */ -#define CONFIG_PACKET_SEG_LEN_MIN ((2 * 1024) - \ - CONFIG_PACKET_HEADROOM - \ +#define CONFIG_PACKET_SEG_LEN_MIN ((2 * 1024) + \ + CONFIG_PACKET_HEADROOM + \ CONFIG_PACKET_TAILROOM) /* Maximum number of shared memory blocks. |