]> www.infradead.org Git - users/dwmw2/linux.git/commit
net: sparx5: replace SPX5_PORTS with n_ports
authorDaniel Machon <daniel.machon@microchip.com>
Fri, 1 Nov 2024 07:09:08 +0000 (08:09 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 5 Nov 2024 12:31:08 +0000 (13:31 +0100)
commit8f5a812efff8495ba0df93239b62d008925b37d1
tree2aca4c67312b60849ac9f5d449ac17952cead152
parent9bdb67b53f3f2c702ef8bf4723c3d2c5523aba9b
net: sparx5: replace SPX5_PORTS with n_ports

The Sparx5 VCAP implementation uses the SPX5_PORTS symbol to iterate over
the 65 front ports of Sparx5. Replace the use with the n_ports constant
from the match data, which translates to 65 of Sparx5 and 30 on lan969x.

Reviewed-by: Steen Hegelund <Steen.Hegelund@microchip.com>
Reviewed-by: Jens Emil Schulz Østergaard <jensemil.schulzostergaard@microchip.com>
Signed-off-by: Daniel Machon <daniel.machon@microchip.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/microchip/sparx5/sparx5_vcap_impl.c