]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/thunderx/nicvf_ethdev.c
ethdev: allow drivers to return error on close
[dpdk.git] / drivers / net / thunderx / nicvf_ethdev.c
index 83d94883608e168b5564af97f3b2d45eb6aa987e..3d7348771a5e7dd7023266b3d075e20cb03a6ebd 100644 (file)
@@ -1852,7 +1852,7 @@ nicvf_vf_stop(struct rte_eth_dev *dev, struct nicvf *nic, bool cleanup)
        }
 }
 
-static void
+static int
 nicvf_dev_close(struct rte_eth_dev *dev)
 {
        size_t i;
@@ -1869,6 +1869,8 @@ nicvf_dev_close(struct rte_eth_dev *dev)
 
                nicvf_periodic_alarm_stop(nicvf_vf_interrupt, nic->snicvf[i]);
        }
+
+       return 0;
 }
 
 static int