aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVasundhara Volam <vasundhara.volam@emulex.com>2014-07-17 06:50:30 -0400
committerDavid S. Miller <davem@davemloft.net>2014-07-17 19:38:15 -0400
commit962bcb750b47ef0c8d28cc217ec22b4e44413565 (patch)
treebb9ea13b07602fe60d36a80c70bda8029e1eb748
parentd3518e215af9545eeac1046eec84cde525bae2a5 (diff)
be2net: avoid SRIOV config for BE2 chip
As SRIOV is not supported on BE2 chip, avoid calling be_get/set_sriov_config() for BE2 chip. Signed-off-by: Sathya Perla <sathya.perla@emulex.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/emulex/benet/be_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/emulex/benet/be_main.c b/drivers/net/ethernet/emulex/benet/be_main.c
index 3475bdbe7ee3..9ee445c8096e 100644
--- a/drivers/net/ethernet/emulex/benet/be_main.c
+++ b/drivers/net/ethernet/emulex/benet/be_main.c
@@ -3434,7 +3434,9 @@ static int be_get_config(struct be_adapter *adapter)
3434 if (!status) 3434 if (!status)
3435 dev_info(&adapter->pdev->dev, 3435 dev_info(&adapter->pdev->dev,
3436 "Using profile 0x%x\n", profile_id); 3436 "Using profile 0x%x\n", profile_id);
3437 }
3437 3438
3439 if (!BE2_chip(adapter) && be_physfn(adapter)) {
3438 status = be_get_sriov_config(adapter); 3440 status = be_get_sriov_config(adapter);
3439 if (status) 3441 if (status)
3440 return status; 3442 return status;