diff options
author | Javier Carrasco <javier.carrasco.cruz@gmail.com> | 2024-08-08 11:47:32 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-08-11 17:00:33 +0100 |
commit | e81d00a6b3b7d619060223d0754ca02e7d4ba90f (patch) | |
tree | f53d1479022a393915617a1e1a8808149d5d5174 /tools/testing/selftests/drivers/net/hw/rss_ctx.py | |
parent | 80d021bc572fbf1b59b029672df5be069dd078ae (diff) | |
download | linux-e81d00a6b3b7d619060223d0754ca02e7d4ba90f.tar.gz linux-e81d00a6b3b7d619060223d0754ca02e7d4ba90f.tar.bz2 linux-e81d00a6b3b7d619060223d0754ca02e7d4ba90f.zip |
net: mvpp2: use port_count to remove ports
As discussed in [1], there is no need to iterate over child nodes to
remove the list of ports. Instead, a loop up to `port_count` ports can
be used, and is in fact more reliable in case the child node
availability changes.
The suggested approach removes the need for the `fwnode` and
`port_fwnode` variables in mvpp2_remove() as well.
Link: https://lore.kernel.org/all/ZqdRgDkK1PzoI2Pf@shell.armlinux.org.uk/ [1]
Suggested-by: Russell King <linux@armlinux.org.uk>
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/drivers/net/hw/rss_ctx.py')
0 files changed, 0 insertions, 0 deletions