From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pablo Neira Ayuso Subject: Re: [PATCH] bridge: netfilter: spanning tree: Add masked_ether_addr_equal and neatening Date: Fri, 24 Jun 2016 10:51:28 +0200 Message-ID: <20160624085128.GA1939@salvia> References: <20160623173659.GA3474@salvia> <1466708400.1847.15.camel@perches.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Patrick McHardy , Jozsef Kadlecsik , Stephen Hemminger , "David S. Miller" , netfilter-devel@vger.kernel.org, coreteam@netfilter.org, bridge@lists.linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org To: Joe Perches Return-path: Received: from mail.us.es ([193.147.175.20]:39013 "EHLO mail.us.es" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750960AbcFXIvt (ORCPT ); Fri, 24 Jun 2016 04:51:49 -0400 Received: from antivirus1-rhel7.int (unknown [192.168.2.11]) by mail.us.es (Postfix) with ESMTP id 7B92E1682EC for ; Fri, 24 Jun 2016 10:51:47 +0200 (CEST) Received: from antivirus1-rhel7.int (localhost [127.0.0.1]) by antivirus1-rhel7.int (Postfix) with ESMTP id 42075B505B for ; Fri, 24 Jun 2016 10:51:47 +0200 (CEST) Received: from antivirus1-rhel7.int (localhost [127.0.0.1]) by antivirus1-rhel7.int (Postfix) with ESMTP id 2BE2CFAB53 for ; Fri, 24 Jun 2016 10:51:44 +0200 (CEST) Content-Disposition: inline In-Reply-To: <1466708400.1847.15.camel@perches.com> Sender: netfilter-devel-owner@vger.kernel.org List-ID: 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: > > >=20 > > > There is code duplication of a masked ethernet address comparison= here > > > so make it a separate function instead. > > >=20 > > > Miscellanea: > > >=20 > > > o Neaten alignment of FWINV macro uses to make it clearer for the= reader > > Applied, thanks. > >=20 > > >=20 > > > Signed-off-by: Joe Perches > > > --- > > >=20 > > > This masked_ether_addr_equal function could go into etherdevice.h= , > > > but I don't see another use like it in kernel code.=A0=A0Is there= one? > > > > This is specific of iptables, not even nftables would use this. So = I > > would keep this in the iptables tree. >=20 > 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-dev= el" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html