]> git.droids-corp.org - dpdk.git/commitdiff
net/virtio: fix typo in function name
authorOlivier Matz <olivier.matz@6wind.com>
Tue, 23 Jan 2018 15:54:43 +0000 (16:54 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 29 Jan 2018 09:04:28 +0000 (10:04 +0100)
Fixes: c1f86306a026 ("virtio: add new driver")
Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Yuanhan Liu <yliu@fridaylinux.org>
drivers/net/virtio/virtio_ethdev.c
drivers/net/virtio/virtqueue.c
drivers/net/virtio/virtqueue.h

index 55e63a3fdd5de1cde0e29ed277c4863620b3c25c..0ee1fab4d8d9e38b6dc60fb88e70b915e221c4e4 100644 (file)
@@ -1993,7 +1993,7 @@ static void virtio_dev_free_mbufs(struct rte_eth_dev *dev)
                        type, i);
                VIRTQUEUE_DUMP(vq);
 
-               while ((buf = virtqueue_detatch_unused(vq)) != NULL) {
+               while ((buf = virtqueue_detach_unused(vq)) != NULL) {
                        rte_pktmbuf_free(buf);
                        mbuf_num++;
                }
index 5a8b212045bb4e7ceb076bad564dc1dc28796c52..a7d0a9cbee14ef5c7434445e18ce14585ef6de52 100644 (file)
@@ -16,7 +16,7 @@
  * 2) mbuf that hasn't been consued by backend.
  */
 struct rte_mbuf *
-virtqueue_detatch_unused(struct virtqueue *vq)
+virtqueue_detach_unused(struct virtqueue *vq)
 {
        struct rte_mbuf *cookie;
        struct virtio_hw *hw;
index e46de158362f8f56a0ae5ef9f1c8464d0d9523af..14364f3564b117abd8af0528ee904b6a84c74327 100644 (file)
@@ -281,7 +281,7 @@ void virtqueue_dump(struct virtqueue *vq);
 /**
  *  Get all mbufs to be freed.
  */
-struct rte_mbuf *virtqueue_detatch_unused(struct virtqueue *vq);
+struct rte_mbuf *virtqueue_detach_unused(struct virtqueue *vq);
 
 /* Flush the elements in the used ring. */
 void virtqueue_rxvq_flush(struct virtqueue *vq);