]> Pileus Git - ~andy/linux/commit
bnx2x: Don't disable/enable SR-IOV when loading
authorAriel Elior <ariele@broadcom.com>
Sat, 28 Sep 2013 05:46:09 +0000 (08:46 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 28 Sep 2013 22:24:01 +0000 (15:24 -0700)
commit9a8130bc381592877bdad08f81e9b10147933d16
treeb2a627cc53549ebc76269cb0eb9b578819c1ac36
parent75543741f89e513b26866c1a15d71c9efecef6b5
bnx2x: Don't disable/enable SR-IOV when loading

Current bnx2x implementation controls the number of VFs only by
standard sysfs support, and will reject setting the number of VFs
when the PF is not loaded.
As a result, there is no need to schedule a delayed work to enable
SR-IOV when PF is loaded, as the number of VFs at that point
must be 0.

Signed-off-by: Ariel Elior <ariele@broadcom.com>
Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.h