diff options
author | Florin Coras <fcoras@cisco.com> | 2022-01-06 17:51:17 -0800 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2022-01-07 12:46:42 +0000 |
commit | c58b1747b34fe1987835f68268218779a81ae3db (patch) | |
tree | 214488d0d754ab38ef4359025aa7c24675ab5a99 /src/plugins/dpdk | |
parent | ec3a63655f8ed63a7d1d706f50151e132abc0561 (diff) |
dpdk: fix rx and tx descriptor config
Type: fix
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I48ac0a2c77154b5232a0fe4166518f28d1f1d8ef
Diffstat (limited to 'src/plugins/dpdk')
-rw-r--r-- | src/plugins/dpdk/device/init.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/dpdk/device/init.c b/src/plugins/dpdk/device/init.c index fd1c9115954..d30c08c28fd 100644 --- a/src/plugins/dpdk/device/init.c +++ b/src/plugins/dpdk/device/init.c @@ -411,6 +411,12 @@ dpdk_lib_init (dpdk_main_t * dm) di.flow_type_rss_offloads; } + if (devconf->num_rx_desc) + xd->conf.n_rx_desc = devconf->num_rx_desc; + + if (devconf->num_tx_desc) + xd->conf.n_tx_desc = devconf->num_tx_desc; + vec_validate_aligned (xd->rx_queues, xd->conf.n_rx_queues - 1, CLIB_CACHE_LINE_BYTES); |