diff options
| author | tongzongzhen <[email protected]> | 2024-07-24 16:34:23 +0800 |
|---|---|---|
| committer | tongzongzhen <[email protected]> | 2024-07-24 16:34:23 +0800 |
| commit | 76c0d159c2a85af96cef9fff39285bb3280cb16e (patch) | |
| tree | b3ea70fe6950fbf8b237d4c1102ec0a63dba73dd | |
| parent | d07ad2758d189b6613ee2fe98ca432423b1232cf (diff) | |
fix eth rxmode err
When the device driver type is MR_DEV_DRV_TYPE_DPDK_PCI, the network card is set to multiple queues. The receiving end uses RSS configuration to allow traffic to enter different queues evenly.
| -rw-r--r-- | service/src/devmgr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/service/src/devmgr.c b/service/src/devmgr.c index 63ad913..7aa554f 100644 --- a/service/src/devmgr.c +++ b/service/src/devmgr.c @@ -1159,7 +1159,7 @@ static int gen_dpdk_dev_ethconf(struct dpdk_dev * dev, unsigned nr_rxq_use, stru if ((dev_desc->drv_type == MR_DEV_DRV_TYPE_DPDK_PCI) && (nr_rxq_use > 1)) { /* only PCI devices can run at RSS mode. */ - eth_conf.rxmode.mq_mode = RTE_ETH_MQ_RX_NONE; + eth_conf.rxmode.mq_mode = RTE_ETH_MQ_RX_RSS; /* setup how NICs distributes packets */ if (dev->rssmode == MR_DEV_RSSMODE_2TUPLE_SYM) |
