Re: [PATCH v3 net-next 01/14] devlink: add enable_migration parameter
From: Jiri Pirko <jiri@resnulli.us>
Date: 2023-02-20 08:22:18
Fri, Feb 17, 2023 at 11:55:45PM CET, shannon.nelson@amd.com wrote:
Add a new device generic parameter to enable/disable support
for live migration in the devlink device. This is intended
primarily for a core device that supports other ports/VFs/SFs.
Those dependent ports may need their own migratable parameter
for individual enable/disable control.
Examples:
$ devlink dev param set pci/0000:07:00.0 name enable_migration value true cmode runtime
$ devlink dev param show pci/0000:07:00.0 name enable_migration
pci/0000:07:00.0:
name enable_migration type generic
values:
cmode runtime value true
Signed-off-by: Shannon Nelson <redacted>Could you please elaborate why exactly is this needed? From my perspective, the migration capability is something that is related to the actual function (VF/SF). When instantiating/configuring SF/VF, the admin ask for the particular function to support live migration. We have port function caps now, which is exactly where this makes sense. See DEVLINK_PORT_FN_CAP_MIGRATABLE.