dpdk: bump to DPDK v21.11
[vpp.git] / src / plugins / dpdk / device / init.c
index da7a123..1d3e061 100644 (file)
@@ -456,14 +456,7 @@ dpdk_lib_init (dpdk_main_t * dm)
              xd->port_type = VNET_DPDK_PORT_TYPE_ETH_1G;
              xd->conf.n_rx_desc = DPDK_NB_RX_DESC_VIRTIO;
              xd->conf.n_tx_desc = DPDK_NB_TX_DESC_VIRTIO;
-             /*
-              * Enable use of RX interrupts if supported.
-              *
-              * There is no device flag or capability for this, so
-              * use the same check that the virtio driver does.
-              */
-             if (pci_dev && rte_intr_cap_multiple (&pci_dev->intr_handle))
-               xd->conf.enable_rxq_int = 1;
+             xd->conf.enable_rxq_int = 1;
              break;
 
              /* vmxnet3 */
@@ -552,7 +545,6 @@ dpdk_lib_init (dpdk_main_t * dm)
              vnm, xd->hw_if_index, q, VNET_HW_IF_RXQ_THREAD_ANY);
          }
 
-      vnet_hw_if_update_runtime_data (vnm, xd->hw_if_index);
 
       /*Get vnet hardware interface */
       hi = vnet_get_hw_interface (vnm, xd->hw_if_index);
@@ -597,6 +589,9 @@ dpdk_lib_init (dpdk_main_t * dm)
                      format_dpdk_device_errors, xd);
     }
 
+  for (int i = 0; i < vec_len (dm->devices); i++)
+    vnet_hw_if_update_runtime_data (vnm, dm->devices[i].hw_if_index);
+
   return 0;
 }