be2net: Call be_vf_setup() even when VFs are enbaled from previous load
authorVasundhara Volam <vasundhara.volam@emulex.com>
Tue, 1 Oct 2013 10:29:56 +0000 (15:59 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Oct 2013 16:45:51 +0000 (12:45 -0400)
commitb905b5d4d93d0b88fcd1d3bcd76d238d9401bc31
tree471ab33c3dc2cfdf26d5a054713b506097205d7d
parentb85f75ea040223519101eb97ee95e23470a73b71
be2net: Call be_vf_setup() even when VFs are enbaled from previous load

Re-define the sriov_want() macro to check for number of VFs that need
to be enabled in the current load of the driver or the number of VFs that
still remain enabled from the previous load (attached VFs cannot be disabled.)

Signed-off-by: Vasundhara Volam <vasundhara.volam@emulex.com>
Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be.h
drivers/net/ethernet/emulex/benet/be_main.c