]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: hide dp->bridge_dev and dp->bridge_num in the core behind helpers
authorVladimir Oltean <vladimir.oltean@nxp.com>
Mon, 6 Dec 2021 16:57:52 +0000 (18:57 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 8 Dec 2021 22:31:15 +0000 (14:31 -0800)
commit53f2b503a0a809b7077ad0749e630eccab02b7f0
treeb0ec5a13c683593d46a164a22f26b02b6e48f059
parentf36bba0bfb34b3972e09ffa5e602eb010c01823b
net: dsa: hide dp->bridge_dev and dp->bridge_num in the core behind helpers

The location of the bridge device pointer and number is going to change.
It is not going to be kept individually per port, but in a common
structure allocated dynamically and which will have lockdep validation.

Create helpers to access these elements so that we have a migration path
to the new organization.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/dsa.h
net/dsa/dsa_priv.h
net/dsa/port.c
net/dsa/slave.c
net/dsa/switch.c
net/dsa/tag_8021q.c
net/dsa/tag_dsa.c
net/dsa/tag_ocelot.c
net/dsa/tag_sja1105.c