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)
commit01ef16c2dd2e9a77fbd94eb0314c4787ab8f7113
treef9d042881409f3361005330e1770ece8fbed0d04
parent43270b1bc5f1e33522dacf3d3b9175c29404c36c
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