OSDN Git Service

caif_virtio: Fix some typos in caif_virtio.c
authorWang Hai <wanghai38@huawei.com>
Fri, 21 May 2021 03:24:55 +0000 (11:24 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 May 2021 20:29:49 +0000 (13:29 -0700)
s/patckets/packets/
s/avilable/available/
s/tbe/the/

Signed-off-by: Wang Hai <wanghai38@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/caif/caif_virtio.c

index 106f089..9123089 100644 (file)
@@ -315,7 +315,7 @@ exit:
        case 0:
                ++cfv->stats.rx_napi_complete;
 
-               /* Really out of patckets? (stolen from virtio_net)*/
+               /* Really out of packets? (stolen from virtio_net)*/
                napi_complete(napi);
                if (unlikely(!vringh_notify_enable_kern(cfv->vr_rx)) &&
                    napi_schedule_prep(napi)) {
@@ -463,7 +463,7 @@ static int cfv_netdev_close(struct net_device *netdev)
        vringh_notify_disable_kern(cfv->vr_rx);
        napi_disable(&cfv->napi);
 
-       /* Release any TX buffers on both used and avilable rings */
+       /* Release any TX buffers on both used and available rings */
        cfv_release_used_buf(cfv->vq_tx);
        spin_lock_irqsave(&cfv->tx_lock, flags);
        while ((buf_info = virtqueue_detach_unused_buf(cfv->vq_tx)))
@@ -497,7 +497,7 @@ static struct buf_info *cfv_alloc_and_copy_to_shm(struct cfv_info *cfv,
        if (unlikely(!buf_info))
                goto err;
 
-       /* Make the IP header aligned in tbe buffer */
+       /* Make the IP header aligned in the buffer */
        hdr_ofs = cfv->tx_hr + info->hdr_len;
        pad_len = hdr_ofs & (IP_HDR_ALIGN - 1);
        buf_info->size = cfv->tx_hr + skb->len + cfv->tx_tr + pad_len;