]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_tables: minor tracing cleanups
authorPatrick McHardy <kaber@trash.net>
Tue, 3 Mar 2015 20:10:04 +0000 (20:10 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 6 Mar 2015 00:21:11 +0000 (01:21 +0100)
commit82eeafe7926f236551ac20942ddd630af5adbfb8
treef9d042881409f3361005330e1770ece8fbed0d04
parent429a5cb10e04d4459d9016947a3f6215cc89a9d3
netfilter: nf_tables: minor tracing cleanups

The tracing code is squeezed between multiple related parts of the
evaluation code, move it out. Also add an inline wrapper for the
reoccuring test for skb->nf_trace.

Small code savings in nft_do_chain():

  nft_trace_packet          | -137
  nft_do_chain              |   -8
 2 functions changed, 145 bytes removed, diff: -145

net/netfilter/nf_tables_core.c:
  __nft_trace_packet | +137
 1 function changed, 137 bytes added, diff: +137

net/netfilter/nf_tables_core.o:
 3 functions changed, 137 bytes added, 145 bytes removed, diff: -8

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_core.c