Thread (13 messages) flat view 13 messages, 4 authors, 2022-02-11

Re: [PATCH net-next 0/4] net/mlx5: Introduce devlink param to disable SF aux dev probe

From: Jiri Pirko <jiri@resnulli.us>
Date: 2022-02-09 09:59:31
Also in: netdev

Wed, Feb 09, 2022 at 06:23:41AM CET, kuba@kernel.org wrote:
On Tue, 8 Feb 2022 19:14:02 +0200 Moshe Shemesh wrote:
quoted
$ devlink dev param set pci/0000:08:00.0 name enable_sfs_aux_devs \
              value false cmode runtime

Create SF:
$ devlink port add pci/0000:08:00.0 flavour pcisf pfnum 0 sfnum 11
$ devlink port function set pci/0000:08:00.0/32768 \
               hw_addr 00:00:00:00:00:11 state active

Now depending on the use case, the user can enable specific auxiliary
device(s). For example:

$ devlink dev param set auxiliary/mlx5_core.sf.1 \
              name enable_vnet value true cmde driverinit

Afterwards, user needs to reload the SF in order for the SF to come up
with the specific configuration:

$ devlink dev reload auxiliary/mlx5_core.sf.1
If the user just wants vnet why not add an API which tells the driver
which functionality the user wants when the "port" is "spawned"?
It's a different user. One works with the eswitch and creates the port
function. The other one takes the created instance and works with it.
Note that it may be on a different host.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help