]> 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)
commit82760d7f2ea63829d6ab0f3de7ec98b93132c8ee
treed4d0f0b1bd7367a2cb804c98344b5081b029ba46
parentf238fef1b3de2fac2d09d925ebc75aacf5e27fd1
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