net: dsa: mv88e6xxx: Offload bridge learning flag
authorTobias Waldekranz <tobias@waldekranz.com>
Thu, 18 Mar 2021 19:25:39 +0000 (20:25 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Mar 2021 23:24:06 +0000 (16:24 -0700)
commit041bd545e1249906b997645ee71f40df21417f17
tree0c275c9a1ce5a136ee776c36c18275a37dcdda04
parent7b9f16fe401c98cd3e1cb92d02bb7184a6d9e4c1
net: dsa: mv88e6xxx: Offload bridge learning flag

Allow a user to control automatic learning per port.

Many chips have an explicit "LearningDisable"-bit that can be used for
this, but we opt for setting/clearing the PAV instead, as it works on
all devices at least as far back as 6083.

Signed-off-by: Tobias Waldekranz <tobias@waldekranz.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c
drivers/net/dsa/mv88e6xxx/port.c
drivers/net/dsa/mv88e6xxx/port.h