* [PATCH net] geneve: Fix IPv6 xmit stats update.
@ 2015-12-08 3:17 Pravin B Shelar
2015-12-08 14:54 ` John W. Linville
2015-12-09 3:39 ` David Miller
0 siblings, 2 replies; 4+ messages in thread
From: Pravin B Shelar @ 2015-12-08 3:17 UTC (permalink / raw)
To: netdev; +Cc: Pravin B Shelar
Call to iptunnel_xmit_stats() is not required after udp-tunnel6-xmit.
By calling iptunnel_xmit_stats() results in incorrect device stats.
Following patch drops this call.
Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
---
drivers/net/geneve.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/drivers/net/geneve.c b/drivers/net/geneve.c
index de5c30c..c2b79f5 100644
--- a/drivers/net/geneve.c
+++ b/drivers/net/geneve.c
@@ -967,8 +967,6 @@ static netdev_tx_t geneve6_xmit_skb(struct sk_buff *skb, struct net_device *dev,
err = udp_tunnel6_xmit_skb(dst, gs6->sock->sk, skb, dev,
&fl6.saddr, &fl6.daddr, prio, ttl,
sport, geneve->dst_port, !udp_csum);
-
- iptunnel_xmit_stats(err, &dev->stats, dev->tstats);
return NETDEV_TX_OK;
tx_error:
--
1.7.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH net] geneve: Fix IPv6 xmit stats update.
2015-12-08 3:17 [PATCH net] geneve: Fix IPv6 xmit stats update Pravin B Shelar
@ 2015-12-08 14:54 ` John W. Linville
2015-12-08 17:55 ` Pravin Shelar
2015-12-09 3:39 ` David Miller
1 sibling, 1 reply; 4+ messages in thread
From: John W. Linville @ 2015-12-08 14:54 UTC (permalink / raw)
To: Pravin B Shelar; +Cc: netdev
On Mon, Dec 07, 2015 at 07:17:30PM -0800, Pravin B Shelar wrote:
> Call to iptunnel_xmit_stats() is not required after udp-tunnel6-xmit.
> By calling iptunnel_xmit_stats() results in incorrect device stats.
> Following patch drops this call.
>
> Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
> ---
> drivers/net/geneve.c | 2 --
> 1 files changed, 0 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/net/geneve.c b/drivers/net/geneve.c
> index de5c30c..c2b79f5 100644
> --- a/drivers/net/geneve.c
> +++ b/drivers/net/geneve.c
> @@ -967,8 +967,6 @@ static netdev_tx_t geneve6_xmit_skb(struct sk_buff *skb, struct net_device *dev,
> err = udp_tunnel6_xmit_skb(dst, gs6->sock->sk, skb, dev,
> &fl6.saddr, &fl6.daddr, prio, ttl,
> sport, geneve->dst_port, !udp_csum);
> -
> - iptunnel_xmit_stats(err, &dev->stats, dev->tstats);
> return NETDEV_TX_OK;
>
> tx_error:
So udp_tunnel_xmit_skb and udp_tunnel6_xmit_skb are different in this
regard? It seems so -- who knew? :-)
_Should_ they be different in this regard?
John
--
John W. Linville Someday the world will need a hero, and you
linville@tuxdriver.com might be all we have. Be ready.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH net] geneve: Fix IPv6 xmit stats update.
2015-12-08 14:54 ` John W. Linville
@ 2015-12-08 17:55 ` Pravin Shelar
0 siblings, 0 replies; 4+ messages in thread
From: Pravin Shelar @ 2015-12-08 17:55 UTC (permalink / raw)
To: John W. Linville; +Cc: netdev
On Tue, Dec 8, 2015 at 6:54 AM, John W. Linville <linville@tuxdriver.com> wrote:
> On Mon, Dec 07, 2015 at 07:17:30PM -0800, Pravin B Shelar wrote:
>> Call to iptunnel_xmit_stats() is not required after udp-tunnel6-xmit.
>> By calling iptunnel_xmit_stats() results in incorrect device stats.
>> Following patch drops this call.
>>
>> Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
>> ---
>> drivers/net/geneve.c | 2 --
>> 1 files changed, 0 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/net/geneve.c b/drivers/net/geneve.c
>> index de5c30c..c2b79f5 100644
>> --- a/drivers/net/geneve.c
>> +++ b/drivers/net/geneve.c
>> @@ -967,8 +967,6 @@ static netdev_tx_t geneve6_xmit_skb(struct sk_buff *skb, struct net_device *dev,
>> err = udp_tunnel6_xmit_skb(dst, gs6->sock->sk, skb, dev,
>> &fl6.saddr, &fl6.daddr, prio, ttl,
>> sport, geneve->dst_port, !udp_csum);
>> -
>> - iptunnel_xmit_stats(err, &dev->stats, dev->tstats);
>> return NETDEV_TX_OK;
>>
>> tx_error:
>
> So udp_tunnel_xmit_skb and udp_tunnel6_xmit_skb are different in this
> regard? It seems so -- who knew? :-)
>
> _Should_ they be different in this regard?
>
I am planing on sending a patch to make these APIs consistent.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH net] geneve: Fix IPv6 xmit stats update.
2015-12-08 3:17 [PATCH net] geneve: Fix IPv6 xmit stats update Pravin B Shelar
2015-12-08 14:54 ` John W. Linville
@ 2015-12-09 3:39 ` David Miller
1 sibling, 0 replies; 4+ messages in thread
From: David Miller @ 2015-12-09 3:39 UTC (permalink / raw)
To: pshelar; +Cc: netdev
From: Pravin B Shelar <pshelar@nicira.com>
Date: Mon, 7 Dec 2015 19:17:30 -0800
> Call to iptunnel_xmit_stats() is not required after udp-tunnel6-xmit.
> By calling iptunnel_xmit_stats() results in incorrect device stats.
> Following patch drops this call.
>
> Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Applied, thanks Pravin.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-12-09 3:39 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-08 3:17 [PATCH net] geneve: Fix IPv6 xmit stats update Pravin B Shelar
2015-12-08 14:54 ` John W. Linville
2015-12-08 17:55 ` Pravin Shelar
2015-12-09 3:39 ` 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).