From: Patrick McHardy <kaber@trash.net>
To: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Bart De Schuymer <bdschuym@pandora.be>,
Netfilter Developer Mailing List
<netfilter-devel@vger.kernel.org>,
Stephen Hemminger <shemminger@linux-foundation.org>
Subject: Re: [PATCH:RFC 5/5] bridge-netfilter: use the vlan id as part of the connection tracking tuple for bridged traffic
Date: Wed, 31 Mar 2010 10:35:24 +0200 [thread overview]
Message-ID: <4BB3094C.7000505@trash.net> (raw)
In-Reply-To: <1269962855.10116.15.camel@edumazet-laptop>
Eric Dumazet wrote:
> Le mardi 30 mars 2010 à 16:16 +0200, Bart De Schuymer a écrit :
>> @@ -163,7 +166,11 @@ static inline bool __nf_ct_tuple_dst_equ
>> {
>> return (nf_inet_addr_cmp(&t1->dst.u3, &t2->dst.u3) &&
>> t1->dst.u.all == t2->dst.u.all &&
>> - t1->dst.protonum == t2->dst.protonum);
>> + t1->dst.protonum == t2->dst.protonum
>> +#ifdef CONFIG_BRIDGE_NETFILTER
>> + && likely(t1->dst.vlan_id == t2->dst.vlan_id)
>> +#endif
>> + );
>> }
>>
>> static inline bool nf_ct_tuple_equal(const struct nf_conntrack_tuple *t1,
>>
>
> This really sounds very strange, layering violation or something.
>
> You mix conntracking, bridge and vlan here.
I agree, this is really wrong.
> Why setups without bridge should not care of vlan + conntracking side
> effects ?
>
> This whole idea was discussed last November :
>
> http://www.spinics.net/lists/netfilter-devel/msg10692.html
>
> Patrick spoke of 'conntrack zone', and we added this concept.
Indeed, this seems like a better way.
--
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
next prev parent reply other threads:[~2010-03-31 8:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-30 14:16 [PATCH:RFC 5/5] bridge-netfilter: use the vlan id as part of the connection tracking tuple for bridged traffic Bart De Schuymer
2010-03-30 15:27 ` Eric Dumazet
2010-03-31 8:35 ` Patrick McHardy [this message]
2010-04-01 11:02 ` Bart De Schuymer
2010-04-01 11:06 ` Patrick McHardy
2010-03-31 10:17 ` Pascal Hambourg
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=4BB3094C.7000505@trash.net \
--to=kaber@trash.net \
--cc=bdschuym@pandora.be \
--cc=eric.dumazet@gmail.com \
--cc=netfilter-devel@vger.kernel.org \
--cc=shemminger@linux-foundation.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).