mirror of
https://github.com/torvalds/linux.git
synced 2024-11-12 07:01:57 +00:00
netfilter: nf_tables: unininline nft_trace_packet()
It makes no sense to inline a rarely used function meant for debugging only that is called a total of five times in the main evaluation loop. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
parent
62f9c8b40d
commit
6d8c00d58e
@ -103,9 +103,9 @@ static struct nf_loginfo trace_loginfo = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
static inline void nft_trace_packet(const struct nft_pktinfo *pkt,
|
static void nft_trace_packet(const struct nft_pktinfo *pkt,
|
||||||
const struct nft_chain *chain,
|
const struct nft_chain *chain,
|
||||||
int rulenum, enum nft_trace type)
|
int rulenum, enum nft_trace type)
|
||||||
{
|
{
|
||||||
struct net *net = dev_net(pkt->in ? pkt->in : pkt->out);
|
struct net *net = dev_net(pkt->in ? pkt->in : pkt->out);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user