]> git.baikalelectronics.ru Git - kernel.git/commit
netdevsim: Implement VFs
authorDmytro Linkin <dlinkin@nvidia.com>
Wed, 2 Jun 2021 12:17:17 +0000 (15:17 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Jun 2021 21:08:36 +0000 (14:08 -0700)
commita7c1998a3d17a575f2adfadda8edaf94e2e5d4ba
treed82eada97d5f10711b4b59eca3b114ae3ce6660d
parent6318e961abdcb2740c5e9944f7de772558e33b52
netdevsim: Implement VFs

Allow creation of netdevsim ports for VFs along with allocations of
corresponding net devices and devlink ports.
Add enums and helpers to distinguish PFs' ports from VFs' ports.

Ports creation/deletion debugfs API intended to be used with physical
ports only.
VFs instantiation will be done in one of the next patches.

Signed-off-by: Dmytro Linkin <dlinkin@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/netdevsim/dev.c
drivers/net/netdevsim/netdev.c