diff options
author | Rami Rosen <ramirose@gmail.com> | 2012-11-25 17:07:40 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-11-26 17:22:09 -0500 |
commit | 36fe8c0973b39cc43855dff123d6f05d7e4549fc (patch) | |
tree | 0820b0731785d0579e8c1f84b6c7f2ca627dd23a /drivers/net/tun.c | |
parent | ae088d663beebb3cad0e7abaac67ee61a7c578d5 (diff) |
vtun: fix typos.
This patch fixes four typos in drivers/net/vtun.c.
Signed-off-by: Rami Rosen <ramirose@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tun.c')
-rw-r--r-- | drivers/net/tun.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/tun.c b/drivers/net/tun.c index 3bd9932a8cde..1dfb135e4e6d 100644 --- a/drivers/net/tun.c +++ b/drivers/net/tun.c | |||
@@ -121,11 +121,11 @@ struct tap_filter { | |||
121 | * also contains all socket related strctures (except sock_fprog and tap_filter) | 121 | * also contains all socket related strctures (except sock_fprog and tap_filter) |
122 | * to serve as one transmit queue for tuntap device. The sock_fprog and | 122 | * to serve as one transmit queue for tuntap device. The sock_fprog and |
123 | * tap_filter were kept in tun_struct since they were used for filtering for the | 123 | * tap_filter were kept in tun_struct since they were used for filtering for the |
124 | * netdevice not for a specific queue (at least I didn't see the reqirement for | 124 | * netdevice not for a specific queue (at least I didn't see the requirement for |
125 | * this). | 125 | * this). |
126 | * | 126 | * |
127 | * RCU usage: | 127 | * RCU usage: |
128 | * The tun_file and tun_struct are loosely coupled, the pointer from on to the | 128 | * The tun_file and tun_struct are loosely coupled, the pointer from one to the |
129 | * other can only be read while rcu_read_lock or rtnl_lock is held. | 129 | * other can only be read while rcu_read_lock or rtnl_lock is held. |
130 | */ | 130 | */ |
131 | struct tun_file { | 131 | struct tun_file { |
@@ -153,7 +153,7 @@ struct tun_flow_entry { | |||
153 | #define TUN_NUM_FLOW_ENTRIES 1024 | 153 | #define TUN_NUM_FLOW_ENTRIES 1024 |
154 | 154 | ||
155 | /* Since the socket were moved to tun_file, to preserve the behavior of persist | 155 | /* Since the socket were moved to tun_file, to preserve the behavior of persist |
156 | * device, socket fileter, sndbuf and vnet header size were restore when the | 156 | * device, socket filter, sndbuf and vnet header size were restore when the |
157 | * file were attached to a persist device. | 157 | * file were attached to a persist device. |
158 | */ | 158 | */ |
159 | struct tun_struct { | 159 | struct tun_struct { |
@@ -689,7 +689,7 @@ static netdev_tx_t tun_net_xmit(struct sk_buff *skb, struct net_device *dev) | |||
689 | sk_filter(tfile->socket.sk, skb)) | 689 | sk_filter(tfile->socket.sk, skb)) |
690 | goto drop; | 690 | goto drop; |
691 | 691 | ||
692 | /* Limit the number of packets queued by divining txq length with the | 692 | /* Limit the number of packets queued by dividing txq length with the |
693 | * number of queues. | 693 | * number of queues. |
694 | */ | 694 | */ |
695 | if (skb_queue_len(&tfile->socket.sk->sk_receive_queue) | 695 | if (skb_queue_len(&tfile->socket.sk->sk_receive_queue) |