]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: loop: Set correct number of ports
authorFlorian Fainelli <f.fainelli@gmail.com>
Mon, 3 Aug 2020 20:03:54 +0000 (13:03 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Aug 2020 01:19:23 +0000 (18:19 -0700)
commitf08f8d46741b431e13713407f4561cc028e599d8
tree5f3608439e932d90fc33c92e4ed0fa0f3373a3aa
parent67d7f66b09ce0407a91798702fad8a65a538880b
net: dsa: loop: Set correct number of ports

We only support DSA_LOOP_NUM_PORTS in the switch, do not tell the DSA
core to allocate up to DSA_MAX_PORTS which is nearly the double (6 vs.
11).

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/dsa_loop.c