]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/virtio/virtio_user_ethdev.c
net/virtio-user: support to report net status
[dpdk.git] / drivers / net / virtio / virtio_user_ethdev.c
index 9dd55fa92ffa80c76bcd74f4ba45c4f601600db6..7da9f6f6750166d827aaea69d8e082b0752f990c 100644 (file)
@@ -135,17 +135,17 @@ virtio_user_set_features(struct virtio_hw *hw, uint64_t features)
 static uint8_t
 virtio_user_get_isr(struct virtio_hw *hw __rte_unused)
 {
-       /* When config interrupt happens, driver calls this function to query
-        * what kinds of change happen. Interrupt mode not supported for now.
+       /* rxq interrupts and config interrupt are separated in virtio-user,
+        * here we only report config change.
         */
-       return 0;
+       return VIRTIO_PCI_ISR_CONFIG;
 }
 
 static uint16_t
 virtio_user_set_config_irq(struct virtio_hw *hw __rte_unused,
                    uint16_t vec __rte_unused)
 {
-       return VIRTIO_MSI_NO_VECTOR;
+       return 0;
 }
 
 static uint16_t