dpdk: add support to disable interrupt mode

Type: improvement

Change-Id: I4864dc2af808aa76ecbc9ade0e86e1a781e6b704
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
This commit is contained in:
Mohsin Kazmi
2024-09-03 10:24:02 +00:00
committed by Damjan Marion
parent 9bb0762357
commit 460dee56e7
3 changed files with 13 additions and 0 deletions

View File

@ -241,6 +241,7 @@ typedef struct
_ (num_rx_desc) \
_ (num_tx_desc) \
_ (max_lro_pkt_size) \
_ (disable_rxq_int) \
_ (rss_fn)
typedef enum

View File

@ -588,6 +588,9 @@ dpdk_lib_init (dpdk_main_t * dm)
if (devconf->max_lro_pkt_size)
xd->conf.max_lro_pkt_size = devconf->max_lro_pkt_size;
if (devconf->disable_rxq_int)
xd->conf.enable_rxq_int = 0;
dpdk_device_setup (xd);
/* rss queues should be configured after dpdk_device_setup() */
@ -1006,6 +1009,10 @@ dpdk_device_config (dpdk_config_main_t *conf, void *addr,
if (error)
break;
}
else if (unformat (input, "no-rx-interrupts"))
{
devconf->disable_rxq_int = 1;
}
else if (unformat (input, "tso on"))
{
devconf->tso = DPDK_DEVICE_TSO_ON;

View File

@ -164,6 +164,11 @@ cpu {
# num-rx-queues 2
# }
## Set interface only in poll mode
# dev 0000:02:00.1 {
# no-rx-interrupts
# }
## Change UIO driver used by VPP, Options are: igb_uio, vfio-pci,
## uio_pci_generic or auto (default)
# uio-driver vfio-pci