[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAM8tLiP=Y5BM7q3nGzi+J6JGRYTJ8qazpVB-n9+pFhA2ko-+sA@mail.gmail.com>
Date: Sat, 29 Jun 2013 21:42:48 +0300
From: Dmitry Kravkov <dkravkov@...il.com>
To: Cong Wang <amwang@...hat.com>
Cc: "netdev@...r.kernel.org" <netdev@...r.kernel.org>,
Pravin B Shelar <pshelar@...ira.com>,
"David S. Miller" <davem@...emloft.net>
Subject: Re: [Patch net-next v3] gre: fix a regression in ioctl
On Sat, Jun 29, 2013 at 7:02 AM, Cong Wang <amwang@...hat.com> wrote:
> From: Cong Wang <amwang@...hat.com>
>
> When testing GRE tunnel, I got:
>
> # ip tunnel show
> get tunnel gre0 failed: Invalid argument
> get tunnel gre1 failed: Invalid argument
>
> This is a regression introduced by commit c54419321455631079c7d
> ("GRE: Refactor GRE tunneling code.") because previously we
> only check the parameters for SIOCADDTUNNEL and SIOCCHGTUNNEL,
> after that commit, the check is moved for all commands.
>
> So, just check for SIOCADDTUNNEL and SIOCCHGTUNNEL.
>
> After this patch I got:
>
> # ip tunnel show
> gre0: gre/ip remote any local any ttl inherit nopmtudisc
> gre1: gre/ip remote 192.168.122.101 local 192.168.122.45 ttl inherit
>
> Cc: Pravin B Shelar <pshelar@...ira.com>
> Cc: "David S. Miller" <davem@...emloft.net>
> Signed-off-by: Cong Wang <amwang@...hat.com>
> ---
> v2: check TUNNEL_* flags
> v3: the check should be kept in gre module
>
Shouldn't this be addressed in net-tree?
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists