Commit c730b170 authored by Ariel Elior's avatar Ariel Elior Committed by David S. Miller
Browse files

bnx2x: vf mark stats started



Solve issue where no stats were being collected for VF devices due to missing
configuration in the stats' atomic synchronization mechanism.

Signed-off-by: default avatarAriel Elior <ariele@broadcom.com>
Signed-off-by: default avatarYuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: default avatarEilon Greenstein <eilong@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent decf4f3f
Loading
Loading
Loading
Loading
+8 −12
Original line number Diff line number Diff line
@@ -522,12 +522,7 @@ static void bnx2x_func_stats_init(struct bnx2x *bp)
/* should be called under stats_sema */
static void __bnx2x_stats_start(struct bnx2x *bp)
{
	/* vfs travel through here as part of the statistics FSM, but no action
	 * is required
	 */
	if (IS_VF(bp))
		return;

	if (IS_PF(bp)) {
		if (bp->port.pmf)
			bnx2x_port_stats_init(bp);

@@ -536,6 +531,7 @@ static void __bnx2x_stats_start(struct bnx2x *bp)

		bnx2x_hw_stats_post(bp);
		bnx2x_storm_stats_post(bp);
	}

	bp->stats_started = true;
}