netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/2] tun: trivial fixes.
@ 2012-11-26  8:07 Rami Rosen
  2012-11-26  8:07 ` [PATCH net-next 1/2] vtun: fix typos Rami Rosen
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Rami Rosen @ 2012-11-26  8:07 UTC (permalink / raw)
  To: davem; +Cc: maxk, netdev, Rami Rosen

These two patches contain trivial fixes to the tun driver.
  First patch fixes 4 typos.
  Second patch puts the correct method name in a debug message in tun_do_read().

Rami Rosen (2):
  [PATCH net-next 1/2] vtun: fix typos.
  [PATCH net-next 2/2] tun: put correct method name in a debug message.

 drivers/net/tun.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

-- 
1.7.11.7

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH net-next 1/2] vtun: fix typos.
  2012-11-26  8:07 [PATCH net-next 0/2] tun: trivial fixes Rami Rosen
@ 2012-11-26  8:07 ` Rami Rosen
  2012-11-26  8:07 ` [PATCH net-next 2/2] tun: put correct method name in a debug message Rami Rosen
  2012-11-26 22:22 ` [PATCH net-next 0/2] tun: trivial fixes David Miller
  2 siblings, 0 replies; 5+ messages in thread
From: Rami Rosen @ 2012-11-26  8:07 UTC (permalink / raw)
  To: davem; +Cc: maxk, netdev, Rami Rosen

This patch fixes four typos in drivers/net/vtun.c.

Signed-off-by: Rami Rosen <ramirose@gmail.com>
---
 drivers/net/tun.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/net/tun.c b/drivers/net/tun.c
index 3bd9932..1dfb135 100644
--- a/drivers/net/tun.c
+++ b/drivers/net/tun.c
@@ -121,11 +121,11 @@ struct tap_filter {
  * also contains all socket related strctures (except sock_fprog and tap_filter)
  * to serve as one transmit queue for tuntap device. The sock_fprog and
  * tap_filter were kept in tun_struct since they were used for filtering for the
- * netdevice not for a specific queue (at least I didn't see the reqirement for
+ * netdevice not for a specific queue (at least I didn't see the requirement for
  * this).
  *
  * RCU usage:
- * The tun_file and tun_struct are loosely coupled, the pointer from on to the
+ * The tun_file and tun_struct are loosely coupled, the pointer from one to the
  * other can only be read while rcu_read_lock or rtnl_lock is held.
  */
 struct tun_file {
@@ -153,7 +153,7 @@ struct tun_flow_entry {
 #define TUN_NUM_FLOW_ENTRIES 1024
 
 /* Since the socket were moved to tun_file, to preserve the behavior of persist
- * device, socket fileter, sndbuf and vnet header size were restore when the
+ * device, socket filter, sndbuf and vnet header size were restore when the
  * file were attached to a persist device.
  */
 struct tun_struct {
@@ -689,7 +689,7 @@ static netdev_tx_t tun_net_xmit(struct sk_buff *skb, struct net_device *dev)
 	    sk_filter(tfile->socket.sk, skb))
 		goto drop;
 
-	/* Limit the number of packets queued by divining txq length with the
+	/* Limit the number of packets queued by dividing txq length with the
 	 * number of queues.
 	 */
 	if (skb_queue_len(&tfile->socket.sk->sk_receive_queue)
-- 
1.7.11.7

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH net-next 2/2] tun: put correct method name in a debug message.
  2012-11-26  8:07 [PATCH net-next 0/2] tun: trivial fixes Rami Rosen
  2012-11-26  8:07 ` [PATCH net-next 1/2] vtun: fix typos Rami Rosen
@ 2012-11-26  8:07 ` Rami Rosen
  2012-11-26 22:31   ` Joe Perches
  2012-11-26 22:22 ` [PATCH net-next 0/2] tun: trivial fixes David Miller
  2 siblings, 1 reply; 5+ messages in thread
From: Rami Rosen @ 2012-11-26  8:07 UTC (permalink / raw)
  To: davem; +Cc: maxk, netdev, Rami Rosen

This patch puts the correct method name, tun_do_read, in a debug message.

Signed-off-by: Rami Rosen <ramirose@gmail.com>
---
 drivers/net/tun.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/tun.c b/drivers/net/tun.c
index 1dfb135..607a3a5 100644
--- a/drivers/net/tun.c
+++ b/drivers/net/tun.c
@@ -1296,7 +1296,7 @@ static ssize_t tun_do_read(struct tun_struct *tun, struct tun_file *tfile,
 	struct sk_buff *skb;
 	ssize_t ret = 0;
 
-	tun_debug(KERN_INFO, tun, "tun_chr_read\n");
+	tun_debug(KERN_INFO, tun, "tun_do_read\n");
 
 	if (unlikely(!noblock))
 		add_wait_queue(&tfile->wq.wait, &wait);
-- 
1.7.11.7

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH net-next 0/2] tun: trivial fixes.
  2012-11-26  8:07 [PATCH net-next 0/2] tun: trivial fixes Rami Rosen
  2012-11-26  8:07 ` [PATCH net-next 1/2] vtun: fix typos Rami Rosen
  2012-11-26  8:07 ` [PATCH net-next 2/2] tun: put correct method name in a debug message Rami Rosen
@ 2012-11-26 22:22 ` David Miller
  2 siblings, 0 replies; 5+ messages in thread
From: David Miller @ 2012-11-26 22:22 UTC (permalink / raw)
  To: ramirose; +Cc: maxk, netdev

From: Rami Rosen <ramirose@gmail.com>
Date: Mon, 26 Nov 2012 10:07:39 +0200

> These two patches contain trivial fixes to the tun driver.
>   First patch fixes 4 typos.
>   Second patch puts the correct method name in a debug message in tun_do_read().
> 
> Rami Rosen (2):
>   [PATCH net-next 1/2] vtun: fix typos.
>   [PATCH net-next 2/2] tun: put correct method name in a debug message.

All applied to net-next

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH net-next 2/2] tun: put correct method name in a debug message.
  2012-11-26  8:07 ` [PATCH net-next 2/2] tun: put correct method name in a debug message Rami Rosen
@ 2012-11-26 22:31   ` Joe Perches
  0 siblings, 0 replies; 5+ messages in thread
From: Joe Perches @ 2012-11-26 22:31 UTC (permalink / raw)
  To: Rami Rosen; +Cc: davem, maxk, netdev

On Mon, 2012-11-26 at 10:07 +0200, Rami Rosen wrote:
> This patch puts the correct method name, tun_do_read, in a debug message.
> 
> Signed-off-by: Rami Rosen <ramirose@gmail.com>
> ---
>  drivers/net/tun.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/net/tun.c b/drivers/net/tun.c
> index 1dfb135..607a3a5 100644
> --- a/drivers/net/tun.c
> +++ b/drivers/net/tun.c
> @@ -1296,7 +1296,7 @@ static ssize_t tun_do_read(struct tun_struct *tun, struct tun_file *tfile,
>  	struct sk_buff *skb;
>  	ssize_t ret = 0;
>  
> -	tun_debug(KERN_INFO, tun, "tun_chr_read\n");
> +	tun_debug(KERN_INFO, tun, "tun_do_read\n");

It's almost always better to use "%s\n", __func__

Of course for these sorts of trivial tracing functions,
it's better to use the function tracer instead.

http://lwn.net/Articles/370423/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-11-26 22:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-26  8:07 [PATCH net-next 0/2] tun: trivial fixes Rami Rosen
2012-11-26  8:07 ` [PATCH net-next 1/2] vtun: fix typos Rami Rosen
2012-11-26  8:07 ` [PATCH net-next 2/2] tun: put correct method name in a debug message Rami Rosen
2012-11-26 22:31   ` Joe Perches
2012-11-26 22:22 ` [PATCH net-next 0/2] tun: trivial fixes David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).