]> 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)
commita89e8b6ff33fabc3d07e2f37618f04d7924386f9
treed82eada97d5f10711b4b59eca3b114ae3ce6660d
parent41304ba06c7bb49a8fd5370bfd60a4551b448493
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