From: Olivier Matz Date: Tue, 23 Jan 2018 15:54:43 +0000 (+0100) Subject: net/virtio: fix typo in function name X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=727411f50ae33c5e318f3c9579c9cdd56eb2a5be;p=dpdk.git net/virtio: fix typo in function name Fixes: c1f86306a026 ("virtio: add new driver") Signed-off-by: Olivier Matz Acked-by: Yuanhan Liu --- diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c index 55e63a3fdd..0ee1fab4d8 100644 --- a/drivers/net/virtio/virtio_ethdev.c +++ b/drivers/net/virtio/virtio_ethdev.c @@ -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++; } diff --git a/drivers/net/virtio/virtqueue.c b/drivers/net/virtio/virtqueue.c index 5a8b212045..a7d0a9cbee 100644 --- a/drivers/net/virtio/virtqueue.c +++ b/drivers/net/virtio/virtqueue.c @@ -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; diff --git a/drivers/net/virtio/virtqueue.h b/drivers/net/virtio/virtqueue.h index e46de15836..14364f3564 100644 --- a/drivers/net/virtio/virtqueue.h +++ b/drivers/net/virtio/virtqueue.h @@ -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);