Currently mlx5 PCI PF and VF devlink devices register their ports as physical port in non-representors mode. Introduce a new port flavour as virtual so that virtual devices can register 'virtual' flavour to make it more clear to users. An example of one PCI PF and 2 PCI virtual functions, each having one devlink port. $ devlink port show pci/0000:06:00.0/1: type eth netdev ens2f0 flavour physical port 0 pci/0000:06:00.2/1: type eth netdev ens2f2 flavour virtual port 0 pci/0000:06:00.3/1: type eth netdev ens2f3 flavour virtual port 0
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -187,6 +187,7 @@ enum devlink_port_flavour { · 186 unmodified lines | |||
| 187 | * for the PCI VF. It is an internal | 187 | * for the PCI VF. It is an internal |
| 188 | * port that faces the PCI VF. | 188 | * port that faces the PCI VF. |
| 189 | */ | 189 | */ |
| 190 | DEVLINK_PORT_FLAVOUR_VIRTUAL, /* Any virtual port facing the user. */ | ||
| 190 | }; | 191 | }; |
| 191 | 192 | ||
| 192 | enum devlink_param_cmode { | 193 | enum devlink_param_cmode { |