Skip to content

Commit 6a9f3f6

Browse files
Parthakumar Roytmonjalo
Parthakumar Roy
authored andcommitted
config: add Meson option for packet buffer headroom
The default value for RTE_PKTMBUF_HEADROOM used to be set in config/rte_config.h. This patch removes it from the file and instead, a Meson option, pkt_mbuf_headroom, is introduced to make headroom tunable from the build process. Signed-off-by: Parthakumar Roy <parthakumar.roy@ibm.com>
1 parent 362b11d commit 6a9f3f6

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

.mailmap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,6 +1072,7 @@ Pankaj Gupta <pagupta@vmware.com> <pagupta@redhat.com>
10721072
Panu Matilainen <pmatilai@redhat.com>
10731073
Paolo Valerio <pvalerio@redhat.com>
10741074
Parav Pandit <parav@nvidia.com> <parav@mellanox.com>
1075+
Parthakumar Roy <parthakumar.roy@ibm.com>
10751076
Pascal Mazon <pascal.mazon@6wind.com>
10761077
Pashupati Kumar <kumarp@brocade.com>
10771078
Patrice Buriez <patrice.buriez@intel.com>

config/meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,7 @@ dpdk_conf.set('RTE_MAX_ETHPORTS', get_option('max_ethports'))
355355
dpdk_conf.set('RTE_LIBEAL_USE_HPET', get_option('use_hpet'))
356356
dpdk_conf.set('RTE_ENABLE_STDATOMIC', get_option('enable_stdatomic'))
357357
dpdk_conf.set('RTE_ENABLE_TRACE_FP', get_option('enable_trace_fp'))
358+
dpdk_conf.set('RTE_PKTMBUF_HEADROOM', get_option('pkt_mbuf_headroom'))
358359
# values which have defaults which may be overridden
359360
dpdk_conf.set('RTE_MAX_VFIO_GROUPS', 64)
360361
dpdk_conf.set('RTE_DRIVER_MEMPOOL_BUCKET_SIZE_KB', 64)

config/rte_config.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@
6262

6363
/* mbuf defines */
6464
#define RTE_MBUF_DEFAULT_MEMPOOL_OPS "ring_mp_mc"
65-
#define RTE_PKTMBUF_HEADROOM 128
6665

6766
/* ether defines */
6867
#define RTE_MAX_QUEUES_PER_PORT 1024

meson_options.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ option('mbuf_refcnt_atomic', type: 'boolean', value: true, description:
5050
'Atomically access the mbuf refcnt.')
5151
option('platform', type: 'string', value: 'native', description:
5252
'Platform to build, either "native", "generic" or a SoC. Please refer to the Linux build guide for more information.')
53+
option('pkt_mbuf_headroom', type: 'integer', value: 128, description:
54+
'Default data offset (in bytes) in a packet buffer to leave room for additional headers.')
5355
option('enable_stdatomic', type: 'boolean', value: false, description:
5456
'enable use of C11 stdatomic')
5557
option('enable_trace_fp', type: 'boolean', value: false, description:

0 commit comments

Comments
 (0)