Thread (4 messages) 4 messages, 3 authors, 2024-07-08

Re: [PATCH net] net: bridge: mst: Check vlan state for egress decision

From: Elliot Ayrey <hidden>
Date: 2024-07-08 03:37:31
Also in: bridge, lkml

On Sat, 2024-07-06 at 00:00 +0200, Tobias Waldekranz wrote:
I think it might read a bit better if we model it like the hairpin check
above. I.e. (special_mode || regular_condition)

It's not really that the state is forwarding when mst is enabled, we
simply ignore the port-global state in that case.
quoted
-		p->state == BR_STATE_FORWARDING && br_allowed_egress(vg, skb) &&
+		state == BR_STATE_FORWARDING && br_allowed_egress(vg, skb) &&
so something like:

    ...
    (br_mst_is_enabled(p->br) || p->state == BR_STATE_FORWARDING) &&
    br_allowed_egress(vg, skb) && nbp_switchdev_allowed_egress(p, skb) &&
    ...
Yes you're right, that's much clearer. I'll go with that.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help