-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kernel: Activate CONFIG_NET_SWITCHDEV in generic config #17668
base: main
Are you sure you want to change the base?
Conversation
The CONFIG_NET_SWITCHDEV option is needed by CONFIG_DSA and some other options. It is boolean, we have to compile it into the kernel it self. Activate it for all targets in the generic configuration, it is already activated for most of them. This allows to install DSA drivers as a module. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
@tk154 Please check if the mellanox driverstill works. |
Some targets like e.g. ramips/mt7620 work without DSA so CONFIG_NET_SWITCHDEV should not be enabled for them. |
I reduced this to the |
Yes this will increase the kernel size for some targets which are not needing it. This also provides us the possibility to build DSA as a kernel module on all targets. The Mellanox driver was activating it anyway for most targets in the past. |
It would be useful to know how much the kernel is increased by. For routers with 8MB flash, every kb is important. |
On the ramips/mt7620 target the kernel has grown by 4.5kB. |
Thanks for measuring this. Was this compressed or uncompressed? |
@hauke openwrt-ramips-mt7620-router_name-initramfs-kernel.bin |
Hi, the Mellanox driver still works on our Switches. |
The CONFIG_NET_SWITCHDEV option is needed by CONFIG_DSA and some other
options. It is boolean, we have to compile it into the kernel it self.
Activate it for all targets in the generic configuration, it is already
activated for most of them. This allows to install DSA drivers as a
module.