<div dir="ltr">I'm using a Nutanix virtual machine to run a DPDK(Version 21.11)-based application. <br>Application is failing during rte_eth_dev_configure . For our application, RSS support is required. <br><br>eth_config.rxmode.mq_mode = ETH_MQ_RX_RSS;<br>static uint8_t hashKey[] = {<br>            0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A,<br>            0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A,<br>            0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A,<br>            0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A,<br>            0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A,<br>        };<br>      <br>        eth_config.rx_adv_conf.rss_conf.rss_key = hashKey;<br>        eth_config.rx_adv_conf.rss_conf.rss_key_len = sizeof(hashKey);<br>          eth_config.rx_adv_conf.rss_conf.rss_hf = 260 <br>         <br>              <br>      <br>With the aforementioned RSS configuration, the application is not coming up. The same application runs without any issues on a VMware virtual machine.  <br><br>When I set       <br><br>    eth_config.rxmode.mq_mode = ETH_MQ_RX_NONE<br>  eth_config.rx_adv_conf.rss_conf.rss_hf = 0<br>    <br>Application starts working fine. Since we need RSS support for our application I cannot set eth_config.rxmode.mq_mode = ETH_MQ_RX_NONE. <br><br>I looked at the DPDK 21.11 release notes, and it mentions that virtio_net supports RSS support. <br><br><br>In this application traffic is tapped to capture port. I have also created two queues using ACLI comments.  <br><br><acropolis> vm.nic_create nutms1-ms type=kNetworkFunctionNic network_function_nic_type=kTap queues=2<br><br><acropolis> vm.nic_get testvm<br>xx:xx:xx:xx:xx:xx {<br>  mac_addr: "xx:xx:xx:xx:xx:xx"<br>  network_function_nic_type: "kTap"<br>  network_type: "kNativeNetwork"<br>  queues: 2<br>  type: "kNetworkFunctionNic"<br>  uuid: "9c26c704-bcb3-4483-bdaf-4b64bb9233ef"<br>}      <br><br><br>Additionally, I've turned on dpdk logging. PFB the dpdk log's output. <br><br>EAL: PCI device 0000:00:05.0 on NUMA socket 0<br>EAL:   probe driver: 1af4:1000 net_virtio<br>EAL: Probe PCI driver: net_virtio (1af4:1000) device: 0000:00:05.0 (socket 0)<br>EAL:   PCI memory mapped at 0x940000000<br>EAL:   PCI memory mapped at 0x940001000<br>virtio_read_caps(): [98] skipping non VNDR cap id: 11<br>virtio_read_caps(): [84] cfg type: 5, bar: 0, offset: 0000, len: 0<br>virtio_read_caps(): [70] cfg type: 2, bar: 4, offset: 3000, len: 4096<br>virtio_read_caps(): [60] cfg type: 4, bar: 4, offset: 2000, len: 4096<br>virtio_read_caps(): [50] cfg type: 3, bar: 4, offset: 1000, len: 4096<br>virtio_read_caps(): [40] cfg type: 1, bar: 4, offset: 0000, len: 4096<br>virtio_read_caps(): found modern virtio pci device.<br>virtio_read_caps(): common cfg mapped at: 0x940001000<br>virtio_read_caps(): device cfg mapped at: 0x940003000<br>virtio_read_caps(): isr cfg mapped at: 0x940002000<br>virtio_read_caps(): notify base: 0x940004000, notify off multiplier: 4<br>vtpci_init(): modern virtio pci detected.<br>virtio_ethdev_negotiate_features(): guest_features before negotiate = 8000005f10ef8028<br>virtio_ethdev_negotiate_features(): host_features before negotiate = 130ffffa7<br>virtio_ethdev_negotiate_features(): features after negotiate = 110ef8020<br>virtio_init_device(): PORT MAC: 50:6B:8D:A9:09:62<br>virtio_init_device(): link speed = -1, duplex = 1<br>virtio_init_device(): config->max_virtqueue_pairs=2<br>virtio_init_device(): config->status=1<br>virtio_init_device(): PORT MAC: 50:6B:8D:A9:09:62<br>virtio_init_queue(): setting up queue: 0 on NUMA node 0<br>virtio_init_queue(): vq_size: 256<br>virtio_init_queue(): vring_size: 10244, rounded_vring_size: 12288<br>virtio_init_queue(): vq->vq_ring_mem: 0x7fffab000<br>virtio_init_queue(): vq->vq_ring_virt_mem: 0x17ffab000<br>virtio_init_vring():  >><br>modern_setup_queue(): queue 0 addresses:<br>modern_setup_queue():    desc_addr: 7fffab000<br>modern_setup_queue():    aval_addr: 7fffac000<br>modern_setup_queue():    used_addr: 7fffad000<br>modern_setup_queue():    notify addr: 0x940004000 (notify offset: 0)<br>virtio_init_queue(): setting up queue: 1 on NUMA node 0<br>virtio_init_queue(): vq_size: 256<br>virtio_init_queue(): vring_size: 10244, rounded_vring_size: 12288<br>virtio_init_queue(): vq->vq_ring_mem: 0x7fffa6000<br>virtio_init_queue(): vq->vq_ring_virt_mem: 0x17ffa6000<br>virtio_init_vring():  >><br>modern_setup_queue(): queue 1 addresses:<br>modern_setup_queue():    desc_addr: 7fffa6000<br>modern_setup_queue():    aval_addr: 7fffa7000<br>modern_setup_queue():    used_addr: 7fffa8000<br>modern_setup_queue():    notify addr: 0x940004004 (notify offset: 1)<br>virtio_init_queue(): setting up queue: 2 on NUMA node 0<br>virtio_init_queue(): vq_size: 256<br>virtio_init_queue(): vring_size: 10244, rounded_vring_size: 12288<br>virtio_init_queue(): vq->vq_ring_mem: 0x7fff98000<br>virtio_init_queue(): vq->vq_ring_virt_mem: 0x17ff98000<br>virtio_init_vring():  >><br>modern_setup_queue(): queue 2 addresses:<br>modern_setup_queue():    desc_addr: 7fff98000<br>modern_setup_queue():    aval_addr: 7fff99000<br>modern_setup_queue():    used_addr: 7fff9a000<br>modern_setup_queue():    notify addr: 0x940004008 (notify offset: 2)<br>virtio_init_queue(): setting up queue: 3 on NUMA node 0<br>virtio_init_queue(): vq_size: 256<br>virtio_init_queue(): vring_size: 10244, rounded_vring_size: 12288<br>virtio_init_queue(): vq->vq_ring_mem: 0x7fff93000<br>virtio_init_queue(): vq->vq_ring_virt_mem: 0x17ff93000<br>virtio_init_vring():  >><br>modern_setup_queue(): queue 3 addresses:<br>modern_setup_queue():    desc_addr: 7fff93000<br>modern_setup_queue():    aval_addr: 7fff94000<br>modern_setup_queue():    used_addr: 7fff95000<br>modern_setup_queue():    notify addr: 0x94000400c (notify offset: 3)<br>virtio_init_queue(): setting up queue: 4 on NUMA node 0<br>virtio_init_queue(): vq_size: 64<br>virtio_init_queue(): vring_size: 4612, rounded_vring_size: 8192<br>virtio_init_queue(): vq->vq_ring_mem: 0x7fff87000<br>virtio_init_queue(): vq->vq_ring_virt_mem: 0x17ff87000<br>virtio_init_vring():  >><br>modern_setup_queue(): queue 4 addresses:<br>modern_setup_queue():    desc_addr: 7fff87000<br>modern_setup_queue():    aval_addr: 7fff87400<br>modern_setup_queue():    used_addr: 7fff88000<br>modern_setup_queue():    notify addr: 0x940004010 (notify offset: 4)<br>eth_virtio_pci_init(): port 0 vendorID=0x1af4 deviceID=0x1000<br>EAL: Module /sys/module/vfio not found! error 2 (No such file or directory)<br>EAL: lib.telemetry log level changed from disabled to debug<br>TELEMETRY: Attempting socket bind to path '/var/run/dpdk/rte/dpdk_telemetry.v2'<br>TELEMETRY: Initial bind to socket '/var/run/dpdk/rte/dpdk_telemetry.v2' failed.<br>TELEMETRY: Attempting unlink and retrying bind<br>TELEMETRY: Socket creation and binding ok<br>TELEMETRY: Telemetry initialized ok<br>TELEMETRY: No legacy callbacks, legacy socket not created<br>[Wed Jul 26 04:44:42 2023][ms_dpi: 28098] DPDK Initialised<br>[Wed Jul 26 04:44:42 2023][ms_dpi: 28098] Finished DPDK logging session<br><br><br>The following result is produced when testpmd runs the RSS configuration command. <br><br>testpmd> port config all rss all<br>Port 0 modified RSS hash function based on hardware support,requested:0x17f83fffc configured:0<br>Multi-queue RSS mode isn't enabled.<br>Configuration of RSS hash at ethernet port 0 failed with error (95): Operation not supported.<br><br><br>Any suggestions on how to enable RSS support in this situation would be greatly appreciated. <br><br>Thank you for your assistance. <br></div>