diff mbox series

[RFC,net-next,16/16] net: dsa: ocelot: tell DSA that we can offload link aggregation

Message ID 20201208120802.1268708-17-vladimir.oltean@nxp.com
State Superseded
Headers show
Series LAG offload for Ocelot DSA switches | expand

Commit Message

Vladimir Oltean Dec. 8, 2020, 12:08 p.m. UTC
For preallocation purposes, we need to specify the maximum number of
individual bonding/team devices that we can offload, which in our case
is equal to the number of physical interfaces.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
---
 drivers/net/dsa/ocelot/felix.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/drivers/net/dsa/ocelot/felix.c b/drivers/net/dsa/ocelot/felix.c
index 53ed182fac12..ad73aaa4457c 100644
--- a/drivers/net/dsa/ocelot/felix.c
+++ b/drivers/net/dsa/ocelot/felix.c
@@ -653,6 +653,7 @@  static int felix_setup(struct dsa_switch *ds)
 
 	ds->mtu_enforcement_ingress = true;
 	ds->configure_vlan_while_not_filtering = true;
+	ds->num_lags = ds->num_ports;
 
 	return 0;
 }