be2net: avoid SRIOV config for BE2 chip
authorVasundhara Volam <vasundhara.volam@emulex.com>
Thu, 17 Jul 2014 10:50:30 +0000 (16:20 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Jul 2014 23:38:15 +0000 (16:38 -0700)
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>
drivers/net/ethernet/emulex/benet/be_main.c

index 3475bdb..9ee445c 100644 (file)
@@ -3434,7 +3434,9 @@ static int be_get_config(struct be_adapter *adapter)
                if (!status)
                        dev_info(&adapter->pdev->dev,
                                 "Using profile 0x%x\n", profile_id);
+       }
 
+       if (!BE2_chip(adapter) && be_physfn(adapter)) {
                status = be_get_sriov_config(adapter);
                if (status)
                        return status;