]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
devlink: Add 'total_vfs' generic device param
authorVlad Dumitrescu <vdumitrescu@nvidia.com>
Sun, 7 Sep 2025 01:29:43 +0000 (18:29 -0700)
committerJakub Kicinski <kuba@kernel.org>
Wed, 10 Sep 2025 02:14:23 +0000 (19:14 -0700)
commitce0b015e2619ae64b7d33fb24a6b6cadcd70c317
tree6253b7ba2d19791182b5e1227e29a277ada354a6
parentb90c7ca4f9185c0d31ebbe252a448c42a5983483
devlink: Add 'total_vfs' generic device param

NICs are typically configured with total_vfs=0, forcing users to rely
on external tools to enable SR-IOV (a widely used and essential feature).

Add total_vfs parameter to devlink for SR-IOV max VF configurability.
Enables standard kernel tools to manage SR-IOV, addressing the need for
flexible VF configuration.

Signed-off-by: Vlad Dumitrescu <vdumitrescu@nvidia.com>
Tested-by: Kamal Heib <kheib@redhat.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250907012953.301746-2-saeed@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Documentation/networking/devlink/devlink-params.rst
include/net/devlink.h
net/devlink/param.c