]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4: Adapt num_vfs/probed_vf params for single port VF
authorMatan Barak <matanb@mellanox.com>
Wed, 19 Mar 2014 16:11:53 +0000 (18:11 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Mar 2014 20:18:30 +0000 (16:18 -0400)
commit97332b654f4163cf77e341c47a8308551d8fa3e2
tree046ca207b850a978178bf0d0b6e11ca48c9d63b8
parentfc1f0f0046d92bb1fa129acebddff612160f4c4a
net/mlx4: Adapt num_vfs/probed_vf params for single port VF

A new syntax is added for the module parameters num_vfs and probe_vf.

  num_vfs=p1,p2,p1+p2
  probe_bf=p1,p2,p1+p2

Where p1(2) is the number of VFs on / probed VFs for physical
port1(2) and p1+p2 is the number of dual port VFs.

Single port VFs are currently supported only when the link type
for both ports of the device is Ethernet.

Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/main.c