]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: qca8k: tidy for loop in setup and add cpu port check
authorAnsuel Smith <ansuelsmth@gmail.com>
Tue, 19 Oct 2021 00:08:50 +0000 (02:08 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Oct 2021 13:16:37 +0000 (14:16 +0100)
commit45f75d41f41605f05cb349b94bd326d4f2990778
treee7adb4168b41adf078ede487a565f8c9fc3fabd4
parent3b8accacb9ad1b387ef7852784cf19f5738ef91a
net: dsa: qca8k: tidy for loop in setup and add cpu port check

Tidy and organize qca8k setup function from multiple for loop.
Change for loop in bridge leave/join to scan all port and skip cpu port.
No functional change intended.

Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/qca8k.c