Thread (3 messages) 3 messages, 2 authors, 2016-09-06

Re: [ovs-dev] [PATCH net-next v21 3/4] openvswitch: 802.1AD Flow handling, actions, vlan parsing, netlink attributes

flat view

From: Eric Garver <hidden>
Date: 2016-09-06 12:34:37

On Sun, Sep 04, 2016 at 01:05:46PM +0200, Jiri Benc wrote:
On Sat, 3 Sep 2016 13:30:12 -0400, Eric Garver wrote:
quoted
Would a BUG_ON(!(encap && in_encap)) be better?
Please don't crash the kernel for something that could very well
continue without problems. Use WARN_ON at most.
Thanks Jiri. WARN_ON_ONCE() is more appropriate for what I was looking
for.
And if you go that way, WARN_ON_ONCE or rate limiting seems to be even
more appropriate, because if this triggers, it's quite possible it will
trigger repeatedly and the resulting log flood would practically make
the machine useless anyway.

Thanks,

 Jiri
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help