]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/virtio/virtio_rxtx.c
net/mlx5: support a device removal check operation
[dpdk.git] / drivers / net / virtio / virtio_rxtx.c
index 265debf203eea73778683d1be529e625c4087886..80e996d06a0aba722dab4219d45bc7b949a8457a 100644 (file)
@@ -988,7 +988,7 @@ virtio_xmit_pkts(void *tx_queue, struct rte_mbuf **tx_pkts, uint16_t nb_pkts)
        uint16_t nb_used, nb_tx = 0;
        int error;
 
-       if (unlikely(hw->started == 0))
+       if (unlikely(hw->started == 0 && tx_pkts != hw->inject_pkts))
                return nb_tx;
 
        if (unlikely(nb_pkts < 1))