[PATCH] vlan: fix typo in vlan_dev_hard_start_xmit()

Subsystems: networking [general], the rest

STALE5541d

4 messages, 4 authors, 2011-06-02 · open the first message on its own page

[PATCH] vlan: fix typo in vlan_dev_hard_start_xmit()

From: Wei Yongjun <hidden>
Date: 2011-06-01 08:54:05

commit 4af429d29b341bb1735f04c2fb960178ed5d52e7 (vlan: lockless
transmit path) have a typo in vlan_dev_hard_start_xmit(), using
u64_stats_update_begin() to end the stat update, it should be
u64_stats_update_end().

Signed-off-by: Wei Yongjun <redacted>
---
 net/8021q/vlan_dev.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/net/8021q/vlan_dev.c b/net/8021q/vlan_dev.c
index f247f5b..7ea5cf9 100644
--- a/net/8021q/vlan_dev.c
+++ b/net/8021q/vlan_dev.c
@@ -165,7 +165,7 @@ static netdev_tx_t vlan_dev_hard_start_xmit(struct sk_buff *skb,
 		u64_stats_update_begin(&stats->syncp);
 		stats->tx_packets++;
 		stats->tx_bytes += len;
-		u64_stats_update_begin(&stats->syncp);
+		u64_stats_update_end(&stats->syncp);
 	} else {
 		this_cpu_inc(vlan_dev_info(dev)->vlan_pcpu_stats->tx_dropped);
 	}
-- 
1.6.5.2

Re: [PATCH] vlan: fix typo in vlan_dev_hard_start_xmit()

From: WANG Cong <hidden>
Date: 2011-06-01 13:55:18

On Wed, 01 Jun 2011 16:53:19 +0800, Wei Yongjun wrote:
commit 4af429d29b341bb1735f04c2fb960178ed5d52e7 (vlan: lockless transmit
path) have a typo in vlan_dev_hard_start_xmit(), using
u64_stats_update_begin() to end the stat update, it should be
u64_stats_update_end().

Signed-off-by: Wei Yongjun <redacted>
Yup, good catch!

Reviewed-by: WANG Cong <redacted>

Re: [PATCH] vlan: fix typo in vlan_dev_hard_start_xmit()

From: Eric Dumazet <hidden>
Date: 2011-06-01 15:07:12

Le mercredi 01 juin 2011 à 16:53 +0800, Wei Yongjun a écrit :
commit 4af429d29b341bb1735f04c2fb960178ed5d52e7 (vlan: lockless
transmit path) have a typo in vlan_dev_hard_start_xmit(), using
u64_stats_update_begin() to end the stat update, it should be
u64_stats_update_end().

Signed-off-by: Wei Yongjun <redacted>
Good catch, Thanks !

Acked-by: Eric Dumazet <redacted>

Re: [PATCH] vlan: fix typo in vlan_dev_hard_start_xmit()

From: David Miller <davem@davemloft.net>
Date: 2011-06-02 04:09:46

From: Eric Dumazet <redacted>
Date: Wed, 01 Jun 2011 17:07:07 +0200
Le mercredi 01 juin 2011 à 16:53 +0800, Wei Yongjun a écrit :
quoted
commit 4af429d29b341bb1735f04c2fb960178ed5d52e7 (vlan: lockless
transmit path) have a typo in vlan_dev_hard_start_xmit(), using
u64_stats_update_begin() to end the stat update, it should be
u64_stats_update_end().

Signed-off-by: Wei Yongjun <redacted>
Good catch, Thanks !

Acked-by: Eric Dumazet <redacted>
Applied and queued up for -stable.

Thanks!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help