From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Joe Perches <joe@perches.com>
Cc: netdev@vger.kernel.org, bridge@lists.linux-foundation.org,
linux-kernel@vger.kernel.org, Patrick McHardy <kaber@trash.net>,
coreteam@netfilter.org, netfilter-devel@vger.kernel.org,
Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>,
"David S. Miller" <davem@davemloft.net>
Subject: Re: [Bridge] [PATCH] bridge: netfilter: spanning tree: Add masked_ether_addr_equal and neatening
Date: Fri, 24 Jun 2016 10:51:28 +0200 [thread overview]
Message-ID: <20160624085128.GA1939@salvia> (raw)
In-Reply-To: <1466708400.1847.15.camel@perches.com>
On Thu, Jun 23, 2016 at 12:00:00PM -0700, Joe Perches wrote:
> On Thu, 2016-06-23 at 19:36 +0200, Pablo Neira Ayuso wrote:
> > On Wed, Jun 15, 2016 at 01:58:45PM -0700, Joe Perches wrote:
> > >
> > > There is code duplication of a masked ethernet address comparison here
> > > so make it a separate function instead.
> > >
> > > Miscellanea:
> > >
> > > o Neaten alignment of FWINV macro uses to make it clearer for the reader
> > Applied, thanks.
> >
> > >
> > > Signed-off-by: Joe Perches <joe@perches.com>
> > > ---
> > >
> > > This masked_ether_addr_equal function could go into etherdevice.h,
> > > but I don't see another use like it in kernel code. Is there one?
> >
> > This is specific of iptables, not even nftables would use this. So I
> > would keep this in the iptables tree.
>
> Did you see the other patch that adds a generic
> ether_addr_equal_masked() and uses it in a few
> more files?
You mean this one:
http://patchwork.ozlabs.org/patch/636208/
OK, so I'll toss the previous and will take this one instead.
As I said my opinion is that ether_addr_equal_masked() is only
required by netfilter, but thinking it well I don't really mind in
what header this function is placed given that these are our internal
headers.
Thanks.
WARNING: multiple messages have this Message-ID (diff)
From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Joe Perches <joe@perches.com>
Cc: Patrick McHardy <kaber@trash.net>,
Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>,
Stephen Hemminger <stephen@networkplumber.org>,
"David S. Miller" <davem@davemloft.net>,
netfilter-devel@vger.kernel.org, coreteam@netfilter.org,
bridge@lists.linux-foundation.org, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] bridge: netfilter: spanning tree: Add masked_ether_addr_equal and neatening
Date: Fri, 24 Jun 2016 10:51:28 +0200 [thread overview]
Message-ID: <20160624085128.GA1939@salvia> (raw)
In-Reply-To: <1466708400.1847.15.camel@perches.com>
On Thu, Jun 23, 2016 at 12:00:00PM -0700, Joe Perches wrote:
> On Thu, 2016-06-23 at 19:36 +0200, Pablo Neira Ayuso wrote:
> > On Wed, Jun 15, 2016 at 01:58:45PM -0700, Joe Perches wrote:
> > >
> > > There is code duplication of a masked ethernet address comparison here
> > > so make it a separate function instead.
> > >
> > > Miscellanea:
> > >
> > > o Neaten alignment of FWINV macro uses to make it clearer for the reader
> > Applied, thanks.
> >
> > >
> > > Signed-off-by: Joe Perches <joe@perches.com>
> > > ---
> > >
> > > This masked_ether_addr_equal function could go into etherdevice.h,
> > > but I don't see another use like it in kernel code. Is there one?
> >
> > This is specific of iptables, not even nftables would use this. So I
> > would keep this in the iptables tree.
>
> Did you see the other patch that adds a generic
> ether_addr_equal_masked() and uses it in a few
> more files?
You mean this one:
http://patchwork.ozlabs.org/patch/636208/
OK, so I'll toss the previous and will take this one instead.
As I said my opinion is that ether_addr_equal_masked() is only
required by netfilter, but thinking it well I don't really mind in
what header this function is placed given that these are our internal
headers.
Thanks.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
WARNING: multiple messages have this Message-ID (diff)
From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Joe Perches <joe@perches.com>
Cc: Patrick McHardy <kaber@trash.net>,
Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>,
Stephen Hemminger <stephen@networkplumber.org>,
"David S. Miller" <davem@davemloft.net>,
netfilter-devel@vger.kernel.org, coreteam@netfilter.org,
bridge@lists.linux-foundation.org, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] bridge: netfilter: spanning tree: Add masked_ether_addr_equal and neatening
Date: Fri, 24 Jun 2016 10:51:28 +0200 [thread overview]
Message-ID: <20160624085128.GA1939@salvia> (raw)
In-Reply-To: <1466708400.1847.15.camel@perches.com>
On Thu, Jun 23, 2016 at 12:00:00PM -0700, Joe Perches wrote:
> On Thu, 2016-06-23 at 19:36 +0200, Pablo Neira Ayuso wrote:
> > On Wed, Jun 15, 2016 at 01:58:45PM -0700, Joe Perches wrote:
> > >
> > > There is code duplication of a masked ethernet address comparison here
> > > so make it a separate function instead.
> > >
> > > Miscellanea:
> > >
> > > o Neaten alignment of FWINV macro uses to make it clearer for the reader
> > Applied, thanks.
> >
> > >
> > > Signed-off-by: Joe Perches <joe@perches.com>
> > > ---
> > >
> > > This masked_ether_addr_equal function could go into etherdevice.h,
> > > but I don't see another use like it in kernel code. Is there one?
> >
> > This is specific of iptables, not even nftables would use this. So I
> > would keep this in the iptables tree.
>
> Did you see the other patch that adds a generic
> ether_addr_equal_masked() and uses it in a few
> more files?
You mean this one:
http://patchwork.ozlabs.org/patch/636208/
OK, so I'll toss the previous and will take this one instead.
As I said my opinion is that ether_addr_equal_masked() is only
required by netfilter, but thinking it well I don't really mind in
what header this function is placed given that these are our internal
headers.
Thanks.
next prev parent reply other threads:[~2016-06-24 8:51 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-15 20:58 [Bridge] [PATCH] bridge: netfilter: spanning tree: Add masked_ether_addr_equal and neatening Joe Perches
2016-06-15 20:58 ` Joe Perches
2016-06-16 6:04 ` [Bridge] " Joe Perches
2016-06-16 6:04 ` Joe Perches
2016-06-16 6:04 ` Joe Perches
2016-06-23 17:36 ` [Bridge] " Pablo Neira Ayuso
2016-06-23 17:36 ` Pablo Neira Ayuso
2016-06-23 17:36 ` Pablo Neira Ayuso
2016-06-23 19:00 ` [Bridge] " Joe Perches
2016-06-23 19:00 ` Joe Perches
2016-06-24 8:51 ` Pablo Neira Ayuso [this message]
2016-06-24 8:51 ` Pablo Neira Ayuso
2016-06-24 8:51 ` Pablo Neira Ayuso
2016-06-24 8:57 ` [Bridge] " Pablo Neira Ayuso
2016-06-24 8:57 ` Pablo Neira Ayuso
2016-06-24 8:57 ` Pablo Neira Ayuso
2016-06-24 18:32 ` [Bridge] [PATCH] etherdevice.h & bridge: netfilter: Add and use ether_addr_equal_masked Joe Perches
2016-06-24 18:32 ` Joe Perches
2016-06-28 13:01 ` [Bridge] " David Miller
2016-06-28 13:01 ` David Miller
2016-06-28 13:01 ` David Miller
2016-06-30 9:26 ` [Bridge] " Pablo Neira Ayuso
2016-06-30 9:26 ` Pablo Neira Ayuso
2016-06-30 9:26 ` Pablo Neira Ayuso
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160624085128.GA1939@salvia \
--to=pablo@netfilter.org \
--cc=bridge@lists.linux-foundation.org \
--cc=coreteam@netfilter.org \
--cc=davem@davemloft.net \
--cc=joe@perches.com \
--cc=kaber@trash.net \
--cc=kadlec@blackhole.kfki.hu \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=netfilter-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.