[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20171031210205.1882d98d@redhat.com>
Date: Tue, 31 Oct 2017 21:02:05 +0100
From: Jiri Benc <jbenc@...hat.com>
To: Eric Garver <e@...g.me>
Cc: Yi Yang <yi.y.yang@...el.com>, netdev@...r.kernel.org,
dev@...nvswitch.org, pshelar@....org, davem@...emloft.net
Subject: Re: [PATCH net-next v14] openvswitch: enable NSH support
On Tue, 31 Oct 2017 15:57:41 -0400, Eric Garver wrote:
> On Mon, Oct 30, 2017 at 09:29:34AM +0800, Yi Yang wrote:
> > + if (WARN_ON(is_push_nsh && is_mask))
> > + return -EINVAL;
>
> OVS_NLERR() is probably more appropriate.
No, not here. If this happens, it's a bug in the kernel and WARN_ON is
what we need. This is not triggerable from user space and user space
has no way to fix it if this happens.
Jiri
Powered by blists - more mailing lists