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)
commitdd41cc3bb90efd455df514899a5d3cf245182eb1
tree046ca207b850a978178bf0d0b6e11ca48c9d63b8
parent449fc48866f7d84b0d9a19201de18a4dd4d3488c
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