]> 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)
commit1472ab77213a7426202bdf05f47d5e2591d8151f
tree3468a865cc28d7c6bf743879a72751c9adfb6e7e
parent0a03e7bd4910243d14b560975a5c02150df0fe01
net: filter: improve filter block macros

Commit 7c5fa4af8449 ("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