From: Nicolas Dichtel <nicolas.dichtel@6wind.com>
To: Thadeu Lima de Souza Cascardo <cascardo@redhat.com>
Cc: Pravin B Shelar <pshelar@nicira.com>, netdev@vger.kernel.org
Subject: Re: [PATCH net-next v2] ip_tunnel: Move stats update to iptunnel_xmit()
Date: Thu, 24 Dec 2015 15:17:17 +0100 [thread overview]
Message-ID: <567BFE6D.40803@6wind.com> (raw)
In-Reply-To: <20151224124649.GB17571@indiana.gru.redhat.com>
Le 24/12/2015 13:46, Thadeu Lima de Souza Cascardo a écrit :
> On Thu, Dec 24, 2015 at 10:21:27AM +0100, Nicolas Dichtel wrote:
>> Le 24/12/2015 00:52, Pravin B Shelar a écrit :
>> [snip]
>>> diff --git a/net/tipc/udp_media.c b/net/tipc/udp_media.c
>>> index 6af78c6..d63a911 100644
>>> --- a/net/tipc/udp_media.c
>>> +++ b/net/tipc/udp_media.c
>>> @@ -182,15 +182,9 @@ static int tipc_udp_send_msg(struct net *net, struct sk_buff *skb,
>>> goto tx_error;
>>> }
>>> ttl = ip4_dst_hoplimit(&rt->dst);
>>> - err = udp_tunnel_xmit_skb(rt, ub->ubsock->sk, skb,
>>> - src->ipv4.s_addr,
>>> - dst->ipv4.s_addr, 0, ttl, 0,
>>> - src->udp_port, dst->udp_port,
>>> - false, true);
>>> - if (err < 0) {
>>> - ip_rt_put(rt);
>>> - goto tx_error;
>>> - }
>>> + udp_tunnel_xmit_skb(rt, ub->ubsock->sk, skb, src->ipv4.s_addr,
>>> + dst->ipv4.s_addr, 0, ttl, 0, src->udp_port,
>>> + dst->udp_port, false, true);
>> I don't know how tipc works, but this change is clearly suspect. What make the
>> error path not needed anymore after your patch?
>
> I looked into it as well. As far as I see, err could only be positive or 0, so
> if there is a tipc bug here, Pravin's patch introduces no regression. Or did I
> fail to see how udp_tunnel_xmit_skb could return a negative value?
You're probably right. But I think it needs a separate patch in that case.
Regards,
Nicolas
prev parent reply other threads:[~2015-12-24 14:17 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-23 23:52 [PATCH net-next v2] ip_tunnel: Move stats update to iptunnel_xmit() Pravin B Shelar
2015-12-24 2:57 ` David Miller
2015-12-24 4:37 ` Pravin Shelar
2015-12-24 9:03 ` Nicolas Dichtel
2015-12-24 9:14 ` Nicolas Dichtel
2015-12-24 22:36 ` Pravin Shelar
2015-12-24 9:21 ` Nicolas Dichtel
2015-12-24 12:46 ` Thadeu Lima de Souza Cascardo
2015-12-24 14:17 ` Nicolas Dichtel [this message]
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=567BFE6D.40803@6wind.com \
--to=nicolas.dichtel@6wind.com \
--cc=cascardo@redhat.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.