From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752539AbbCWMoB (ORCPT ); Mon, 23 Mar 2015 08:44:01 -0400 Received: from mail.us.es ([193.147.175.20]:33953 "EHLO mail.us.es" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752331AbbCWMn4 convert rfc822-to-8bit (ORCPT ); Mon, 23 Mar 2015 08:43:56 -0400 X-Qmail-Scanner-Diagnostics: from 127.0.0.1 by antivirus3 (envelope-from , uid 501) with qmail-scanner-2.10 (clamdscan: 0.98.6/20227. spamassassin: 3.4.0. Clear:RC:1(127.0.0.1):SA:0(-103.2/7.5):. Processed in 2.205459 secs); 23 Mar 2015 12:43:39 -0000 X-Spam-ASN: AS12715 87.216.0.0/16 X-Envelope-From: pneira@us.es Date: Mon, 23 Mar 2015 13:47:23 +0100 From: Pablo Neira Ayuso To: Stephen Rothwell Cc: David Miller , netdev@vger.kernel.org, linux-next@vger.kernel.org, linux-kernel@vger.kernel.org, Patrick McHardy Subject: Re: linux-next: manual merge of the net-next tree with the net tree Message-ID: <20150323124723.GA6740@salvia> References: <20150323140841.0b807b95@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 8BIT In-Reply-To: <20150323140841.0b807b95@canb.auug.org.au> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 23, 2015 at 02:08:41PM +1100, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the net-next tree got a conflict in > net/netfilter/nf_tables_core.c between commit 4017a7ee693d ("netfilter: > restore rule tracing via nfnetlink_log") from the net tree and commit > 01ef16c2dd2e ("netfilter: nf_tables: minor tracing cleanups") from the > net-next tree. > > I fixed it up (see below) and can carry the fix as necessary (no action > is required). This looks good, thanks for adressing this conflict Stephen. > -- > Cheers, > Stephen Rothwell sfr@canb.auug.org.au > > diff --cc net/netfilter/nf_tables_core.c > index 2d298dccb6dd,77165bf023f3..000000000000 > --- a/net/netfilter/nf_tables_core.c > +++ b/net/netfilter/nf_tables_core.c > @@@ -21,6 -21,48 +21,48 @@@ > #include > #include > > + enum nft_trace { > + NFT_TRACE_RULE, > + NFT_TRACE_RETURN, > + NFT_TRACE_POLICY, > + }; > + > + static const char *const comments[] = { > + [NFT_TRACE_RULE] = "rule", > + [NFT_TRACE_RETURN] = "return", > + [NFT_TRACE_POLICY] = "policy", > + }; > + > + static struct nf_loginfo trace_loginfo = { > + .type = NF_LOG_TYPE_LOG, > + .u = { > + .log = { > + .level = 4, > + .logflags = NF_LOG_MASK, > + }, > + }, > + }; > + > + static void __nft_trace_packet(const struct nft_pktinfo *pkt, > + const struct nft_chain *chain, > + int rulenum, enum nft_trace type) > + { > + struct net *net = dev_net(pkt->in ? pkt->in : pkt->out); > + > - nf_log_packet(net, pkt->xt.family, pkt->ops->hooknum, pkt->skb, pkt->in, > - pkt->out, &trace_loginfo, "TRACE: %s:%s:%s:%u ", > - chain->table->name, chain->name, comments[type], > - rulenum); > ++ nf_log_trace(net, pkt->xt.family, pkt->ops->hooknum, pkt->skb, pkt->in, > ++ pkt->out, &trace_loginfo, "TRACE: %s:%s:%s:%u ", > ++ chain->table->name, chain->name, comments[type], > ++ rulenum); > + } > + > + static inline void nft_trace_packet(const struct nft_pktinfo *pkt, > + const struct nft_chain *chain, > + int rulenum, enum nft_trace type) > + { > + if (unlikely(pkt->skb->nf_trace)) > + __nft_trace_packet(pkt, chain, rulenum, type); > + } > + > static void nft_cmp_fast_eval(const struct nft_expr *expr, > struct nft_data data[NFT_REG_MAX + 1]) > {