Thread (7 messages) flat view 7 messages, 5 authors, 2021-03-16

Re: [PATCH net-next] net: dsa: hellcreek: Offload bridge port flags

From: Kurt Kanzenbach <kurt@linutronix.de>
Date: 2021-03-16 08:39:15

On Mon Mar 15 2021, Vladimir Oltean wrote:
On Mon, Mar 15, 2021 at 09:33:44PM +0100, Kurt Kanzenbach wrote:
quoted
On Mon Mar 15 2021, Vladimir Oltean wrote:
quoted
On Sun, Mar 14, 2021 at 01:52:08PM +0100, Kurt Kanzenbach wrote:
quoted
+	if (enable)
+		val &= ~HR_PTCFG_UUC_FLT;
+	else
+		val |= HR_PTCFG_UUC_FLT;
What does 'unknown unicast filtering' mean/do, exactly?
The semantics of BR_FLOOD are on egress: all unicast packets with an
unknown destination that are received on ports from this bridging domain
can be flooded towards port X if that port has flooding enabled.
When I hear "filtering", I imagine an ingress setting, am I wrong?
It means that frames without matching fdb entries towards this port are
discarded.
The phrasing is still not crystal clear, sorry.
You have a switch with 2 user ports, lan0 and lan1, and one CPU port.
lan0 and lan1 are under br0. lan0 has 'unknown unicast filtering'
disabled, lan1 has it enabled, and the CPU port has it disabled.
You receive a packet from lan0 towards an unknown unicast destination.
Is the packet discarded or is it sent to the CPU port?
It's sent to the CPU port. Anyway, I'll double check it.

Thanks,
Kurt

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help