From: Zahari Doychev <zax@zaxnet.org>
To: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Cc: Zahari Doychev <zahari.doychev@linux.com>,
netdev@vger.kernel.org, bridge@lists.linux-foundation.org,
roopa@cumulusnetworks.com, jhs@mojatatu.com,
johannes@sipsolutions.net
Subject: Re: [PATCH 0/2] net: bridge: fix tc added QinQ forwarding
Date: Mon, 14 Jan 2019 20:47:55 +0100 [thread overview]
Message-ID: <20190114194755.GC9540@mail> (raw)
In-Reply-To: <62e4c62c-39c0-71d7-99d0-3e51878e2ddc@cumulusnetworks.com>
On Mon, Jan 14, 2019 at 01:46:09PM +0200, Nikolay Aleksandrov wrote:
> On 13/01/2019 15:59, Zahari Doychev wrote:
[...]
>
> How well was this set tested ? It breaks connectivity between bridge and
> members when vlans are used. The host generated packets going out of the bridge
> have mac_len = 0.
>
> E.g.:
> # tcpdump -e -n -i vnet2
> tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
> listening on vnet2, link-type EN10MB (Ethernet), capture size 262144 bytes
> 17:47:08.824208 00:01:52:54:00:04 > 00:01:08:00:06:04, ethertype 802.1Q (0x8100), length 32: vlan 25, p 0, ethertype 0x5eba,
> 0x0000: c0a8 6401 0000 0000 0000 c0a8 6402 ..d.........d.
> 17:47:09.848492 00:01:52:54:00:04 > 00:01:08:00:06:04, ethertype 802.1Q (0x8100), length 32: vlan 25, p 0, ethertype 0x5eba,
> 0x0000: c0a8 6401 0000 0000 0000 c0a8 6402 ..d.........d.
>
> Headers are messed up. This is br0 with pvid 25 and vnet2 with vlan 25 tagged.
> You'll probably have to reset mac_len in bridge's xmit function.
>
Thanks I will look into this. I have done most of tests with PC with two nics
and two other hosts conntected to each of the interfaces.
> The potentially affected cases will need to be carefully considered, as you've noted,
> since this change is dangerous. Please also run all bridge selftests and make sure
> they all pass. Giving more details about which cases you've considered and how
> this set was tested in the commit log would be very helpful.
>
Thanks for pointing to the selftests. I will run them. These are the tests part
of the kselftest correct?
Regards,
Zahari
> Thanks,
> Nik
>
>
prev parent reply other threads:[~2019-01-14 19:40 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-13 13:59 [PATCH 0/2] net: bridge: fix tc added QinQ forwarding Zahari Doychev
2019-01-13 13:59 ` [PATCH 1/2] " Zahari Doychev
2019-01-15 6:11 ` [Bridge] " Toshiaki Makita
2019-01-17 8:17 ` Zahari Doychev
2019-01-17 8:57 ` Toshiaki Makita
2019-01-17 19:19 ` Cong Wang
2019-01-18 2:29 ` Toshiaki Makita
2019-01-21 21:11 ` Zahari Doychev
2019-01-22 8:45 ` Toshiaki Makita
2019-01-13 13:59 ` [PATCH 2/2] net: bridge: fix tc added vlan insert as payload Zahari Doychev
2019-01-14 11:46 ` [PATCH 0/2] net: bridge: fix tc added QinQ forwarding Nikolay Aleksandrov
2019-01-14 19:47 ` Zahari Doychev [this message]
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=20190114194755.GC9540@mail \
--to=zax@zaxnet.org \
--cc=bridge@lists.linux-foundation.org \
--cc=jhs@mojatatu.com \
--cc=johannes@sipsolutions.net \
--cc=netdev@vger.kernel.org \
--cc=nikolay@cumulusnetworks.com \
--cc=roopa@cumulusnetworks.com \
--cc=zahari.doychev@linux.com \
/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).