default or selected kernelversion does not have config value CONFIG_NET_DSA_HWMON.
Result is shown for kernelversion 6.4.14

Distributed Switch Architecture HWMON support


Linux Kernel Configuration
└─>Networking support
└─>Networking options
└─>Distributed Switch Architecture HWMON support
In linux kernel since version 3.19 (release Date: 2015-02-08)  
Say Y if you want to expose thermal sensor data on switches supported
by the Distributed Switch Architecture.

Some of those switches contain thermal sensors. This data is available
via the hwmon sysfs interface and exposes the onboard sensors.