From: "John W. Linville" <linville@tuxdriver.com>
To: Pravin B Shelar <pshelar@nicira.com>
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH net] geneve: Fix IPv6 xmit stats update.
Date: Tue, 8 Dec 2015 09:54:11 -0500 [thread overview]
Message-ID: <20151208145410.GC3598@tuxdriver.com> (raw)
In-Reply-To: <1449544650-6112-1-git-send-email-pshelar@nicira.com>
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.
next prev parent reply other threads:[~2015-12-08 15:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-08 3:17 [PATCH net] geneve: Fix IPv6 xmit stats update Pravin B Shelar
2015-12-08 14:54 ` John W. Linville [this message]
2015-12-08 17:55 ` Pravin Shelar
2015-12-09 3:39 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20151208145410.GC3598@tuxdriver.com \
--to=linville@tuxdriver.com \
--cc=netdev@vger.kernel.org \
--cc=pshelar@nicira.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).