]> git.kernelconcepts.de Git - karo-tx-linux.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)
commitf8f6d679aaa78b989d9aee8d2935066fbdca2a30
tree3468a865cc28d7c6bf743879a72751c9adfb6e7e
parent3480593131e0b781287dae0139bf7ccee7cba7ff
net: filter: improve filter block macros

Commit 9739eef13c92 ("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