netfilter: nf_tables: Use pkt->net instead of computing net from the passed net_devices
[deliverable/linux.git] / net / netfilter / nft_log.c
index a13d6a386d635f00b5715d1b71ba9b0819203544..319c22b4bca2386c0ba6f95bca3e0aba104660d0 100644 (file)
@@ -31,9 +31,8 @@ static void nft_log_eval(const struct nft_expr *expr,
                         const struct nft_pktinfo *pkt)
 {
        const struct nft_log *priv = nft_expr_priv(expr);
-       struct net *net = dev_net(pkt->in ? pkt->in : pkt->out);
 
-       nf_log_packet(net, pkt->ops->pf, pkt->ops->hooknum, pkt->skb, pkt->in,
+       nf_log_packet(pkt->net, pkt->pf, pkt->hook, pkt->skb, pkt->in,
                      pkt->out, &priv->loginfo, "%s", priv->prefix);
 }
 
This page took 0.028591 seconds and 5 git commands to generate.