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

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

be2net: use be_max_vfs() macro to access max-vfs



max-vfs value must be accessed via the macro be_max_vfs(adapter).
The earlier patch "create optimal number of queues on SR-IOV config"
by mistake, did not use this macro. This patch fixes it.

fixes: bec84e6b ("be2net: create optimal number of queues on SR-IOV config")
Signed-off-by: default avatarVasundhara Volam <vasundhara.volam@emulex.com>
Signed-off-by: default avatarSathya Perla <sathya.perla@emulex.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ddf1169f
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -3312,7 +3312,7 @@ static void BEx_get_resources(struct be_adapter *adapter,
	res->max_rx_qs = res->max_rss_qs + 1;
	res->max_rx_qs = res->max_rss_qs + 1;


	if (be_physfn(adapter))
	if (be_physfn(adapter))
		res->max_evt_qs = (res->max_vfs > 0) ?
		res->max_evt_qs = (be_max_vfs(adapter) > 0) ?
					BE3_SRIOV_MAX_EVT_QS : BE3_MAX_EVT_QS;
					BE3_SRIOV_MAX_EVT_QS : BE3_MAX_EVT_QS;
	else
	else
		res->max_evt_qs = 1;
		res->max_evt_qs = 1;