]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: sja1105: dimension the data structures for a larger port count
authorVladimir Oltean <vladimir.oltean@nxp.com>
Mon, 24 May 2021 13:14:15 +0000 (16:14 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 May 2021 20:59:03 +0000 (13:59 -0700)
commit12f7468ff1e5112d89fd61bffa132cc66c536cc5
treed4d0f0b1bd7367a2cb804c98344b5081b029ba46
parent008cc4223823b966be27eb0ce87ce167a2bcb374
net: dsa: sja1105: dimension the data structures for a larger port count

Introduce a SJA1105_MAX_NUM_PORTS macro which at the moment is equal to
SJA1105_NUM_PORTS (5). With the introduction of SJA1110, these
structures will need to hold information for up to 11 ports.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/sja1105/sja1105.h
drivers/net/dsa/sja1105/sja1105_flower.c
drivers/net/dsa/sja1105/sja1105_main.c
drivers/net/dsa/sja1105/sja1105_tas.h
drivers/net/dsa/sja1105/sja1105_vl.c