DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev]  setting parameters in meson build system
@ 2020-10-22 11:43 Sarosh Arif
  2020-10-22 13:52 ` Bruce Richardson
  0 siblings, 1 reply; 2+ messages in thread
From: Sarosh Arif @ 2020-10-22 11:43 UTC (permalink / raw)
  To: dev

Hello,

I was using make build system previously, but since it is removed from
dpdk now, I am trying to figure out how to enable/disable certain
things using meson,

Previously we were able to set some parameters using .config file.
Some examples of these parameters are:

CONFIG_RTE_LIBRTE_I40E_PMD=y
CONFIG_RTE_LIBRTE_I40E_DEBUG_RX=n
CONFIG_RTE_LIBRTE_I40E_DEBUG_TX=n
CONFIG_RTE_LIBRTE_I40E_DEBUG_TX_FREE=n
CONFIG_RTE_LIBRTE_I40E_RX_ALLOW_BULK_ALLOC=y
CONFIG_RTE_LIBRTE_I40E_INC_VECTOR=y
CONFIG_RTE_LIBRTE_I40E_16BYTE_RX_DESC=n
CONFIG_RTE_LIBRTE_I40E_QUEUE_NUM_PER_PF=64
CONFIG_RTE_LIBRTE_I40E_QUEUE_NUM_PER_VM=4

Can someone help me figure out how to enable/disable/change these
using the meson build system?

Thanks,
Sarosh Arif.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-dev] setting parameters in meson build system
  2020-10-22 11:43 [dpdk-dev] setting parameters in meson build system Sarosh Arif
@ 2020-10-22 13:52 ` Bruce Richardson
  0 siblings, 0 replies; 2+ messages in thread
From: Bruce Richardson @ 2020-10-22 13:52 UTC (permalink / raw)
  To: Sarosh Arif; +Cc: dev

On Thu, Oct 22, 2020 at 04:43:50PM +0500, Sarosh Arif wrote:
> Hello,
> 
> I was using make build system previously, but since it is removed from
> dpdk now, I am trying to figure out how to enable/disable certain
> things using meson,
> 
> Previously we were able to set some parameters using .config file.
> Some examples of these parameters are:
> 
> CONFIG_RTE_LIBRTE_I40E_PMD=y
> CONFIG_RTE_LIBRTE_I40E_DEBUG_RX=n
> CONFIG_RTE_LIBRTE_I40E_DEBUG_TX=n
> CONFIG_RTE_LIBRTE_I40E_DEBUG_TX_FREE=n
> CONFIG_RTE_LIBRTE_I40E_RX_ALLOW_BULK_ALLOC=y
> CONFIG_RTE_LIBRTE_I40E_INC_VECTOR=y
> CONFIG_RTE_LIBRTE_I40E_16BYTE_RX_DESC=n
> CONFIG_RTE_LIBRTE_I40E_QUEUE_NUM_PER_PF=64
> CONFIG_RTE_LIBRTE_I40E_QUEUE_NUM_PER_VM=4
> 
> Can someone help me figure out how to enable/disable/change these
> using the meson build system?
> 

Enabling/disabling of specific drivers can be done using the
"disable_drivers" meson option to disable drivers, otherwise the drivers
will be enabled automatically if their pre-requisites are met. [In the case
of i40e it has no pre-requisites beyond basic DPDK requirements so it's
always enabled by default].

For the debug settings, there has been discussion onlist about having a
global debug setting which can be scope limited in the same way as the log
level APIs, but in the absense of support for that you can turn on the
DEBUG settings by passing them as cflags (or c_args meson option) to the
build.

For the other settings, these are present in config/rte_config.h header
file and can be edited directly there. However, we'd prefer if this wasn't
necessary, so if you feel the defaults are not suitable for your use,
please let the maintainers know, to see if we can adjust the default to be
suitable for as many users as possible.

Regards,
/Bruce

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-10-22 13:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-22 11:43 [dpdk-dev] setting parameters in meson build system Sarosh Arif
2020-10-22 13:52 ` Bruce Richardson

DPDK patches and discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.dpdk.org/dev/0 dev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dev dev/ https://inbox.dpdk.org/dev \
		dev@dpdk.org
	public-inbox-index dev

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dev


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git