Thread (24 messages) 24 messages, 2 authors, 2021-07-30

Re: [RFC net-next 1/2] net: dsa: tag_mtk: skip address learning on transmit to standalone ports

From: Vladimir Oltean <olteanv@gmail.com>
Date: 2021-07-30 19:07:14
Also in: linux-arm-kernel, linux-mediatek, lkml

On Sat, Jul 31, 2021 at 03:00:20AM +0800, DENG Qingfang wrote:
On Fri, Jul 30, 2021 at 07:24:03PM +0300, Vladimir Oltean wrote:
quoted
Considering that you also have the option of setting
ds->assisted_learning_on_cpu_port = true and this will have less false
positives, what are the reasons why you did not choose that approach?
After enabling it, I noticed .port_fdb_{add,del} are called with VID=0
(which it does not use now) unless I turn on VLAN filtering. Is that
normal?
They are called with the VID from the learned packet.
If the bridge is VLAN-unaware, the MAC SA is learned with VID 0.
Generally, VID 0 is always used for VLAN-unaware bridging. You can
privately translate VID 0 to whatever VLAN ID you use in VLAN-unaware
mode.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help