From: Vasundhara Volam Date: Thu, 17 Jul 2014 10:50:30 +0000 (+0530) Subject: be2net: avoid SRIOV config for BE2 chip X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=962bcb750b47ef0c8d28cc217ec22b4e44413565;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: David S. Miller --- 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) 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;