mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 04:50:07 +01:00
Add support for Devlink, which is just another family of Generic Netlink like nl80211. Implement get_eswitch_mode and set_eswitch_mode to allow changing between legacy SRIOV and switchdev modes. Devlink's purpose is to allow querying and configuring stuff related to a piece of hardware but not to any of the usual Linux device classes. For example, nowadays the Smart NICs normally allow to change the eswitch mode per PF, because their hardware implements one eswitch per PF, but future models might have a single eswitch for all the physical and virtual ports of the NIC allowing more advanced bridge offloads. Regarding the above example, for the moment we only support PCI network devices with the "one eswitch per PF" model. The reason is that currently NM only knows about netdevs so dealing with "devlink devices" that doesn't map 1-1 with a netdev would require new mechanisms to understand what they are and their relation with the netdevs that NM manage. We will deal with that use cases when they arise and we have more information about the right way to support them. |
||
|---|---|---|
| .. | ||
| nm-devlink.c | ||
| nm-devlink.h | ||