summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJaime Caamaño Ruiz <jcaamano@suse.com>2020-05-19 13:37:01 +0200
committerIlya Maximets <i.maximets@ovn.org>2020-09-15 22:49:57 +0200
commitdb7041716bfe068ddd0cef05e830b65690ad5c8a (patch)
treec52c06d46b7186219d4676dda27385b44a230075 /lib
parent9d15c02a8bf9cc732cce33012bd1577758260521 (diff)
downloadopenvswitch-db7041716bfe068ddd0cef05e830b65690ad5c8a.tar.gz
netdev-dpdk: Don't set rx mq mode for net_virtio.
Since DPDK 19.11 [1], it is not allowed to set any RX mq mode for virtio driver. [1] https://github.com/DPDK/dpdk/commit/13b3137f3b7c8f866947a9b34e06a8aec0d084f7 Signed-off-by: Jaime Caamaño Ruiz <jcaamano@suse.com> Acked-by: Flavio Leitner <fbl@sysclose.org> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/netdev-dpdk.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c
index 18c4adcc7..c2ec93c91 100644
--- a/lib/netdev-dpdk.c
+++ b/lib/netdev-dpdk.c
@@ -163,7 +163,6 @@ typedef uint16_t dpdk_port_t;
static const struct rte_eth_conf port_conf = {
.rxmode = {
- .mq_mode = ETH_MQ_RX_RSS,
.split_hdr_size = 0,
.offloads = 0,
},
@@ -965,6 +964,14 @@ dpdk_eth_dev_port_config(struct netdev_dpdk *dev, int n_rxq, int n_txq)
rte_eth_dev_info_get(dev->port_id, &info);
+ /* As of DPDK 19.11, it is not allowed to set a mq_mode for
+ * virtio PMD driver. */
+ if (!strcmp(info.driver_name, "net_virtio")) {
+ conf.rxmode.mq_mode = ETH_MQ_RX_NONE;
+ } else {
+ conf.rxmode.mq_mode = ETH_MQ_RX_RSS;
+ }
+
/* As of DPDK 17.11.1 a few PMDs require to explicitly enable
* scatter to support jumbo RX.
* Setting scatter for the device is done after checking for