netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 00/17] Remove dsa_priv.h
@ 2022-11-21 13:55 Vladimir Oltean
  2022-11-21 13:55 ` [PATCH net-next 01/17] net: dsa: unexport dsa_dev_to_net_device() Vladimir Oltean
                   ` (18 more replies)
  0 siblings, 19 replies; 38+ messages in thread
From: Vladimir Oltean @ 2022-11-21 13:55 UTC (permalink / raw)
  To: netdev
  Cc: Andrew Lunn, Florian Fainelli, Vladimir Oltean, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni

After working on the "Autoload DSA tagging driver when dynamically
changing protocol" series:
https://patchwork.kernel.org/project/netdevbpf/cover/20221115011847.2843127-1-vladimir.oltean@nxp.com/

it became clear to me that the situation with DSA headers is a bit
messy, and I put the tagging protocol driver macros in a pretty random
temporary spot in dsa_priv.h.

Now is the time to make the net/dsa/ folder a bit more organized, and to
make tagging protocol driver modules include just headers they're going
to use.

Another thing is the merging and cleanup of dsa.c and dsa2.c. Before,
dsa.c had 589 lines and dsa2.c had 1817 lines. Now, the combined dsa.c
has 1749 lines, the rest went to some other places.

Sorry for the set size, I know the rules, but since this is basically
code movement for the most part, I thought more patches are better.

Vladimir Oltean (17):
  net: dsa: unexport dsa_dev_to_net_device()
  net: dsa: modularize DSA_TAG_PROTO_NONE
  net: dsa: move bulk of devlink code to devlink.{c,h}
  net: dsa: if ds->setup is true, ds->devlink is always non-NULL
  net: dsa: move rest of devlink setup/teardown to devlink.c
  net: dsa: move headers exported by port.c to port.h
  net: dsa: move headers exported by master.c to master.h
  net: dsa: move headers exported by slave.c to slave.h
  net: dsa: move tagging protocol code to tag.{c,h}
  net: dsa: move headers exported by switch.c to switch.h
  net: dsa: move dsa_tree_notify() and dsa_broadcast() to switch.c
  net: dsa: move notifier definitions to switch.h
  net: dsa: merge dsa.c into dsa2.c
  net: dsa: rename dsa2.c back into dsa.c and create its header
  net: dsa: move definitions from dsa_priv.h to slave.c
  net: dsa: move tag_8021q headers to their proper place
  net: dsa: kill off dsa_priv.h

 drivers/net/dsa/Kconfig           |    2 +
 drivers/net/dsa/b53/Kconfig       |    1 +
 drivers/net/dsa/microchip/Kconfig |    1 +
 include/linux/dsa/8021q.h         |   31 +-
 include/net/dsa.h                 |    3 +-
 net/dsa/Kconfig                   |    6 +
 net/dsa/Makefile                  |    4 +-
 net/dsa/devlink.c                 |  391 +++++++
 net/dsa/devlink.h                 |   16 +
 net/dsa/dsa.c                     | 1754 +++++++++++++++++++++++-----
 net/dsa/dsa.h                     |   40 +
 net/dsa/dsa2.c                    | 1817 -----------------------------
 net/dsa/dsa_priv.h                |  663 -----------
 net/dsa/master.c                  |   10 +-
 net/dsa/master.h                  |   19 +
 net/dsa/netlink.c                 |    3 +-
 net/dsa/netlink.h                 |    8 +
 net/dsa/port.c                    |    6 +-
 net/dsa/port.h                    |  114 ++
 net/dsa/slave.c                   |   49 +-
 net/dsa/slave.h                   |   69 ++
 net/dsa/switch.c                  |   53 +-
 net/dsa/switch.h                  |  120 ++
 net/dsa/tag.c                     |  243 ++++
 net/dsa/tag.h                     |  310 +++++
 net/dsa/tag_8021q.c               |   19 +-
 net/dsa/tag_8021q.h               |   27 +
 net/dsa/tag_ar9331.c              |    2 +-
 net/dsa/tag_brcm.c                |    2 +-
 net/dsa/tag_dsa.c                 |    2 +-
 net/dsa/tag_gswip.c               |    2 +-
 net/dsa/tag_hellcreek.c           |    2 +-
 net/dsa/tag_ksz.c                 |    3 +-
 net/dsa/tag_lan9303.c             |    2 +-
 net/dsa/tag_mtk.c                 |    2 +-
 net/dsa/tag_none.c                |   30 +
 net/dsa/tag_ocelot.c              |    3 +-
 net/dsa/tag_ocelot_8021q.c        |    4 +-
 net/dsa/tag_qca.c                 |    2 +-
 net/dsa/tag_rtl4_a.c              |    2 +-
 net/dsa/tag_rtl8_4.c              |    2 +-
 net/dsa/tag_rzn1_a5psw.c          |    2 +-
 net/dsa/tag_sja1105.c             |    4 +-
 net/dsa/tag_trailer.c             |    2 +-
 net/dsa/tag_xrs700x.c             |    2 +-
 45 files changed, 3016 insertions(+), 2833 deletions(-)
 create mode 100644 net/dsa/devlink.c
 create mode 100644 net/dsa/devlink.h
 create mode 100644 net/dsa/dsa.h
 delete mode 100644 net/dsa/dsa2.c
 delete mode 100644 net/dsa/dsa_priv.h
 create mode 100644 net/dsa/master.h
 create mode 100644 net/dsa/netlink.h
 create mode 100644 net/dsa/port.h
 create mode 100644 net/dsa/slave.h
 create mode 100644 net/dsa/switch.h
 create mode 100644 net/dsa/tag.c
 create mode 100644 net/dsa/tag.h
 create mode 100644 net/dsa/tag_8021q.h
 create mode 100644 net/dsa/tag_none.c

-- 
2.34.1


^ permalink raw reply	[flat|nested] 38+ messages in thread

end of thread, other threads:[~2022-11-23  4:52 UTC | newest]

Thread overview: 38+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-21 13:55 [PATCH net-next 00/17] Remove dsa_priv.h Vladimir Oltean
2022-11-21 13:55 ` [PATCH net-next 01/17] net: dsa: unexport dsa_dev_to_net_device() Vladimir Oltean
2022-11-21 19:56   ` Florian Fainelli
2022-11-21 13:55 ` [PATCH net-next 02/17] net: dsa: modularize DSA_TAG_PROTO_NONE Vladimir Oltean
2022-11-21 19:56   ` Florian Fainelli
2022-11-21 13:55 ` [PATCH net-next 03/17] net: dsa: move bulk of devlink code to devlink.{c,h} Vladimir Oltean
2022-11-21 19:57   ` Florian Fainelli
2022-11-21 13:55 ` [PATCH net-next 04/17] net: dsa: if ds->setup is true, ds->devlink is always non-NULL Vladimir Oltean
2022-11-21 19:58   ` Florian Fainelli
2022-11-21 13:55 ` [PATCH net-next 05/17] net: dsa: move rest of devlink setup/teardown to devlink.c Vladimir Oltean
2022-11-21 19:58   ` Florian Fainelli
2022-11-21 13:55 ` [PATCH net-next 06/17] net: dsa: move headers exported by port.c to port.h Vladimir Oltean
2022-11-21 19:59   ` Florian Fainelli
2022-11-21 13:55 ` [PATCH net-next 07/17] net: dsa: move headers exported by master.c to master.h Vladimir Oltean
2022-11-21 19:59   ` Florian Fainelli
2022-11-21 13:55 ` [PATCH net-next 08/17] net: dsa: move headers exported by slave.c to slave.h Vladimir Oltean
2022-11-21 20:00   ` Florian Fainelli
2022-11-21 13:55 ` [PATCH net-next 09/17] net: dsa: move tagging protocol code to tag.{c,h} Vladimir Oltean
2022-11-21 20:33   ` Florian Fainelli
2022-11-21 13:55 ` [PATCH net-next 10/17] net: dsa: move headers exported by switch.c to switch.h Vladimir Oltean
2022-11-21 20:34   ` Florian Fainelli
2022-11-21 13:55 ` [PATCH net-next 11/17] net: dsa: move dsa_tree_notify() and dsa_broadcast() to switch.c Vladimir Oltean
2022-11-21 20:34   ` Florian Fainelli
2022-11-21 13:55 ` [PATCH net-next 12/17] net: dsa: move notifier definitions to switch.h Vladimir Oltean
2022-11-21 20:35   ` Florian Fainelli
2022-11-21 13:55 ` [PATCH net-next 13/17] net: dsa: merge dsa.c into dsa2.c Vladimir Oltean
2022-11-21 20:36   ` Florian Fainelli
2022-11-21 13:55 ` [PATCH net-next 14/17] net: dsa: rename dsa2.c back into dsa.c and create its header Vladimir Oltean
2022-11-21 20:37   ` Florian Fainelli
2022-11-21 13:55 ` [PATCH net-next 15/17] net: dsa: move definitions from dsa_priv.h to slave.c Vladimir Oltean
2022-11-21 20:37   ` Florian Fainelli
2022-11-21 13:55 ` [PATCH net-next 16/17] net: dsa: move tag_8021q headers to their proper place Vladimir Oltean
2022-11-21 20:38   ` Florian Fainelli
2022-11-21 13:55 ` [PATCH net-next 17/17] net: dsa: kill off dsa_priv.h Vladimir Oltean
2022-11-21 20:38   ` Florian Fainelli
2022-11-21 19:16 ` [PATCH net-next 00/17] Remove dsa_priv.h Florian Fainelli
2022-11-21 20:28   ` Vladimir Oltean
2022-11-23  4:52 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).