diff options
author | stephen hemminger <stephen@networkplumber.org> | 2013-12-05 23:42:58 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-12-06 12:51:39 -0500 |
commit | 92d4ea6e412a023434b477c04fd5632aefb233d4 (patch) | |
tree | a51335513aceff5650f2df178b5ab88588e49eb3 /drivers/net/tun.c | |
parent | c057b190b82063c57cb8b2b575a00520f9976e2b (diff) |
tun: spelling fixes
Fix spelling errors in tun driver.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tun.c')
-rw-r--r-- | drivers/net/tun.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/tun.c b/drivers/net/tun.c index 782e38bfc1ee..5ac2877a89c3 100644 --- a/drivers/net/tun.c +++ b/drivers/net/tun.c | |||
@@ -110,7 +110,7 @@ struct tap_filter { | |||
110 | unsigned char addr[FLT_EXACT_COUNT][ETH_ALEN]; | 110 | unsigned char addr[FLT_EXACT_COUNT][ETH_ALEN]; |
111 | }; | 111 | }; |
112 | 112 | ||
113 | /* DEFAULT_MAX_NUM_RSS_QUEUES were choosed to let the rx/tx queues allocated for | 113 | /* DEFAULT_MAX_NUM_RSS_QUEUES were chosen to let the rx/tx queues allocated for |
114 | * the netdevice to be fit in one page. So we can make sure the success of | 114 | * the netdevice to be fit in one page. So we can make sure the success of |
115 | * memory allocation. TODO: increase the limit. */ | 115 | * memory allocation. TODO: increase the limit. */ |
116 | #define MAX_TAP_QUEUES DEFAULT_MAX_NUM_RSS_QUEUES | 116 | #define MAX_TAP_QUEUES DEFAULT_MAX_NUM_RSS_QUEUES |
@@ -119,7 +119,7 @@ struct tap_filter { | |||
119 | #define TUN_FLOW_EXPIRE (3 * HZ) | 119 | #define TUN_FLOW_EXPIRE (3 * HZ) |
120 | 120 | ||
121 | /* A tun_file connects an open character device to a tuntap netdevice. It | 121 | /* A tun_file connects an open character device to a tuntap netdevice. It |
122 | * also contains all socket related strctures (except sock_fprog and tap_filter) | 122 | * also contains all socket related structures (except sock_fprog and tap_filter) |
123 | * to serve as one transmit queue for tuntap device. The sock_fprog and | 123 | * to serve as one transmit queue for tuntap device. The sock_fprog and |
124 | * tap_filter were kept in tun_struct since they were used for filtering for the | 124 | * tap_filter were kept in tun_struct since they were used for filtering for the |
125 | * netdevice not for a specific queue (at least I didn't see the requirement for | 125 | * netdevice not for a specific queue (at least I didn't see the requirement for |
@@ -342,7 +342,7 @@ unlock: | |||
342 | } | 342 | } |
343 | 343 | ||
344 | /* We try to identify a flow through its rxhash first. The reason that | 344 | /* We try to identify a flow through its rxhash first. The reason that |
345 | * we do not check rxq no. is becuase some cards(e.g 82599), chooses | 345 | * we do not check rxq no. is because some cards(e.g 82599), chooses |
346 | * the rxq based on the txq where the last packet of the flow comes. As | 346 | * the rxq based on the txq where the last packet of the flow comes. As |
347 | * the userspace application move between processors, we may get a | 347 | * the userspace application move between processors, we may get a |
348 | * different rxq no. here. If we could not get rxhash, then we would | 348 | * different rxq no. here. If we could not get rxhash, then we would |
@@ -531,7 +531,7 @@ static int tun_attach(struct tun_struct *tun, struct file *file, bool skip_filte | |||
531 | 531 | ||
532 | err = 0; | 532 | err = 0; |
533 | 533 | ||
534 | /* Re-attach the filter to presist device */ | 534 | /* Re-attach the filter to persist device */ |
535 | if (!skip_filter && (tun->filter_attached == true)) { | 535 | if (!skip_filter && (tun->filter_attached == true)) { |
536 | err = sk_attach_filter(&tun->fprog, tfile->socket.sk); | 536 | err = sk_attach_filter(&tun->fprog, tfile->socket.sk); |
537 | if (!err) | 537 | if (!err) |
@@ -819,9 +819,9 @@ static void tun_poll_controller(struct net_device *dev) | |||
819 | * Tun only receives frames when: | 819 | * Tun only receives frames when: |
820 | * 1) the char device endpoint gets data from user space | 820 | * 1) the char device endpoint gets data from user space |
821 | * 2) the tun socket gets a sendmsg call from user space | 821 | * 2) the tun socket gets a sendmsg call from user space |
822 | * Since both of those are syncronous operations, we are guaranteed | 822 | * Since both of those are synchronous operations, we are guaranteed |
823 | * never to have pending data when we poll for it | 823 | * never to have pending data when we poll for it |
824 | * so theres nothing to do here but return. | 824 | * so there is nothing to do here but return. |
825 | * We need this though so netpoll recognizes us as an interface that | 825 | * We need this though so netpoll recognizes us as an interface that |
826 | * supports polling, which enables bridge devices in virt setups to | 826 | * supports polling, which enables bridge devices in virt setups to |
827 | * still use netconsole | 827 | * still use netconsole |