Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 962bcb75 authored by Vasundhara Volam's avatar Vasundhara Volam Committed by David S. Miller
Browse files

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: default avatarSathya Perla <sathya.perla@emulex.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d3518e21
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -3434,7 +3434,9 @@ static int be_get_config(struct be_adapter *adapter)
		if (!status)
		if (!status)
			dev_info(&adapter->pdev->dev,
			dev_info(&adapter->pdev->dev,
				 "Using profile 0x%x\n", profile_id);
				 "Using profile 0x%x\n", profile_id);
	}


	if (!BE2_chip(adapter) && be_physfn(adapter)) {
		status = be_get_sriov_config(adapter);
		status = be_get_sriov_config(adapter);
		if (status)
		if (status)
			return status;
			return status;