What is needed to convert a device from swconfig to DSA support-wise

What is needed to convert a device from swconfig to DSA support-wise? As in not "how to convert my configs to DSA" but how to get a device/Openwrt to use DSA? Is DSA support something that comes only from the Linux kernel?

If a new device gets support but then is on swconfig, is there some sort of driver or hardware limitation?

If I understand this correctly, for a device to get support for DSA:

  • hardware needs to support ethernet frame tagging (do they ever not? is this a newer feature?)
  • the kernel needs to have a driver that is set up for using DSA
  • Openwrt needs to enable it if the 2 previous are true