OSDN Git Service

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)
commit92ba1f29e6e2f16eb93a0a2c7c01985920b89222
treed82eada97d5f10711b4b59eca3b114ae3ce6660d
parent814b9ce65ec3b53404eeda7a11e1abb4af8d7df3
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