]> git.baikalelectronics.ru Git - kernel.git/commit
net: filter: improve filter block macros
authorDaniel Borkmann <dborkman@redhat.com>
Thu, 29 May 2014 08:22:51 +0000 (10:22 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Jun 2014 05:16:58 +0000 (22:16 -0700)
commitbe321d5cc45dda23468cf361bdb8be4229540fc5
tree3468a865cc28d7c6bf743879a72751c9adfb6e7e
parentcf24e7a20b768dcb74883d369f7237c3a176f827
net: filter: improve filter block macros

Commit bbe3f59d17ef ("net: filter: make BPF conversion more readable")
started to introduce helper macros similar to BPF_STMT()/BPF_JUMP()
macros from classic BPF.

However, quite some statements in the filter conversion functions
remained in the old style which gives a mixture of block macros and
non block macros in the code. This patch makes the block macros itself
more readable by using explicit member initialization, and converts
the remaining ones where possible to remain in a more consistent state.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Acked-by: Alexei Starovoitov <ast@plumgrid.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/filter.h
net/core/filter.c