]> git.baikalelectronics.ru Git - kernel.git/commit
net: cls_basic: return from walking on match in basic_get
authorDaniel Borkmann <dborkman@redhat.com>
Thu, 22 Jan 2015 09:58:18 +0000 (10:58 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Jan 2015 00:08:55 +0000 (16:08 -0800)
commitca61ad977e96cbca008adaf98f8e53c21d829225
treea15d65097742cdd38f9702d07f124c6aae0867e2
parente7a689cebf7936ef38601fc09221bd5d50322556
net: cls_basic: return from walking on match in basic_get

As soon as we've found a matching handle in basic_get(), we can
return it. There's no need to continue walking until the end of
a filter chain, since they are unique anyway.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Acked-by: Jiri Pirko <jiri@resnulli.us>
Cc: Thomas Graf <tgraf@suug.ch>
Acked-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_basic.c