[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <8806ee72-90f2-f9e6-6193-d59c6c31b1fa@cogentembedded.com>
Date: Wed, 27 Nov 2019 13:07:47 +0300
From: Sergei Shtylyov <sergei.shtylyov@...entembedded.com>
To: Paolo Abeni <pabeni@...hat.com>, netdev@...r.kernel.org
Cc: "David S. Miller" <davem@...emloft.net>,
Pravin B Shelar <pshelar@....org>
Subject: Re: [PATCH net 1/2] openvswitch: drop unneeded BUG_ON() in
ovs_flow_cmd_build_info()
Hello!
On 26.11.2019 15:10, Paolo Abeni wrote:
> All callers already deal with errors correctly, dump a warn instead.
Warning, maybe?
> Fixes: ccb1352e76cf ("net: Add Open vSwitch kernel components.")
> Signed-off-by: Paolo Abeni <pabeni@...hat.com>
> ---
> net/openvswitch/datapath.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/net/openvswitch/datapath.c b/net/openvswitch/datapath.c
> index d8c364d637b1..e94f675794f1 100644
> --- a/net/openvswitch/datapath.c
> +++ b/net/openvswitch/datapath.c
> @@ -882,7 +882,7 @@ static struct sk_buff *ovs_flow_cmd_build_info(const struct sw_flow *flow,
> retval = ovs_flow_cmd_fill_info(flow, dp_ifindex, skb,
> info->snd_portid, info->snd_seq, 0,
> cmd, ufid_flags);
> - BUG_ON(retval < 0);
> + WARN_ON_ONCE(retval < 0);
> return skb;
> }
>
MBR, Sergei
Powered by blists - more mailing lists