]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: sja1105: fix configuration of source address learning
authorVladimir Oltean <vladimir.oltean@nxp.com>
Tue, 16 Feb 2021 11:41:18 +0000 (13:41 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Feb 2021 22:02:46 +0000 (14:02 -0800)
commit83f702f9c21e78a4d7272778d2a9188911d12b78
tree9906855df2cb70122c9e7f2f6da29043d823e803
parentc5fec0606095f5ccd2d5188856fc82a43d7d8fb5
net: dsa: sja1105: fix configuration of source address learning

Due to a mistake, the driver always sets the address learning flag to
the previously stored value, and not to the currently configured one.
The bug is visible only in standalone ports mode, because when the port
is bridged, the issue is masked by .port_stp_state_set which overwrites
the address learning state to the proper value.

Fixes: 30abb4062fc1 ("net: dsa: sja1105: offload bridge port flags to device")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/sja1105/sja1105_main.c