[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CALDO+SaRCh5QPXCXzpkBLP-4w_ztjrva_Y2n-DedY=oee78zTA@mail.gmail.com>
Date: Fri, 15 Dec 2017 08:26:54 -0800
From: William Tu <u9012063@...il.com>
To: Haishuang Yan <yanhaishuang@...s.chinamobile.com>
Cc: "David S. Miller" <davem@...emloft.net>,
Alexey Kuznetsov <kuznet@....inr.ac.ru>,
Hideaki YOSHIFUJI <yoshfuji@...ux-ipv6.org>,
Linux Kernel Network Developers <netdev@...r.kernel.org>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] ip_gre: fix wrong return value of erspan_rcv
On Thu, Dec 14, 2017 at 6:46 PM, Haishuang Yan
<yanhaishuang@...s.chinamobile.com> wrote:
> If pskb_may_pull return failed, return PACKET_REJECT instead of -ENOMEM.
>
> Fixes: 84e54fe0a5ea ("gre: introduce native tunnel support for ERSPAN")
> Cc: William Tu <u9012063@...il.com>
> Signed-off-by: Haishuang Yan <yanhaishuang@...s.chinamobile.com>
> ---
Thanks for the patch.
I think the other way is simply to just 'goto drop', freeing the skb
in erspan_rcv(), instead of 'return PACKET_REJECT'. I'm ok either way.
Acked-by: William Tu <u9012063@...il.com>
Powered by blists - more mailing lists