Thread (7 messages) 7 messages, 4 authors, 2017-09-29

Re: [PATCH net-next] net: bridge: add per-port group_fwd_mask with less restrictions

flat view

From: Roopa Prabhu <hidden>
Date: 2017-09-29 22:22:01
Also in: bridge

On Fri, Sep 29, 2017 at 3:11 PM, Nikolay Aleksandrov
[off-list ref] wrote:
On 30/09/17 00:51, Stephen Hemminger wrote:
quoted
On Sat, 30 Sep 2017 00:01:24 +0300
Nikolay Aleksandrov [off-list ref] wrote:
quoted
On 29/09/17 18:14, Stephen Hemminger wrote:
quoted
On Wed, 27 Sep 2017 16:12:44 +0300
Nikolay Aleksandrov [off-list ref] wrote:
quoted
We need to be able to transparently forward most link-local frames via
tunnels (e.g. vxlan, qinq). Currently the bridge's group_fwd_mask has a
mask which restricts the forwarding of STP and LACP, but we need to be able
to forward these over tunnels and control that forwarding on a per-port
basis thus add a new per-port group_fwd_mask option which only disallows
mac pause frames to be forwarded (they're always dropped anyway).
The patch does not change the current default situation - all of the others
are still restricted unless configured for forwarding.
We have successfully tested this patch with LACP and STP forwarding over
VxLAN and qinq tunnels.

Signed-off-by: Nikolay Aleksandrov <redacted>
LACP is fine, but STP must not be forwarded if STP in user or kernel
mode is enabled.

Please update this patch or revert it.
The default has not changed, STP is still _not_ forwarded. It can be only if explicitly
requested by the user and that means the port might be participating in STP but not
the bridge's STP, that is explicitly forward all STP frames from that port.
I don't think we have to change anything.
You need to fail if user does something stupid. And DNR.
I get the motivation, but it does not have to be stupid. It may be 802.1q in q, not 802.1ad
where STP is already forwarded by default, or it may be that the port is participating
in a different STP. Wouldn't be enough to warn the user that STP forwarding was enabled
for that port, instead of forcing it off and having it only for 802.1ad ?
Later when we upstream 802.1Q in q patches we'll have to work around that anyway.
quoted
From 16c42db4852234c13288922c1bffbf7650e08434 Mon Sep 17 00:00:00 2001
From: Stephen Hemminger <redacted>
Date: Fri, 29 Sep 2017 14:48:17 -0700
Subject: [PATCH] bridge: check for attempt to forward STP PDU's with STP
 enabled

Move validation into set function and do not allow
configuring forwarding of STP packets if STP is enabled.

Fixes: 5af48b59f35c ("net: bridge: add per-port group_fwd_mask with less restrictions")
What if the user requested explicitly to forward these frames from that port ?
exactly and this could be on a provider bridge which is just tunneling
stp frames from a customer.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help