net: dsa: qca8k: move port LAG functions to common code
authorChristian Marangi <ansuelsmth@gmail.com>
Wed, 27 Jul 2022 11:35:22 +0000 (13:35 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 29 Jul 2022 05:24:39 +0000 (22:24 -0700)
commite9bbf019af44b204b71ef8edf224002550aab641
tree23a5827d8f02cda79baba1db7b513e609c9c9eb9
parentc5290f636624b98e76a82bd63ffec0a8a9daa620
net: dsa: qca8k: move port LAG functions to common code

The same port LAG functions are used by drivers based on qca8k family
switch. Move them to common code to make them accessible also by other
drivers.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/qca/qca8k-8xxx.c
drivers/net/dsa/qca/qca8k-common.c
drivers/net/dsa/qca/qca8k.h