aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/dpdk
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2022-01-06 17:51:17 -0800
committerDamjan Marion <dmarion@me.com>2022-01-07 12:46:42 +0000
commitc58b1747b34fe1987835f68268218779a81ae3db (patch)
tree214488d0d754ab38ef4359025aa7c24675ab5a99 /src/plugins/dpdk
parentec3a63655f8ed63a7d1d706f50151e132abc0561 (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.c6
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);