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

Commit 581d1aa7 authored by Greg Rose's avatar Greg Rose Committed by David S. Miller
Browse files

ixgbe: Change where clear_to_send_flag is reset to zero.



The clear_to_send flag is being cleared before the call to ping all
the VFs.  It should be called after pinging all the VFs.

Signed-off-by: default avatarGreg Rose <gregory.v.rose@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5809a1ae
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -3244,13 +3244,15 @@ void ixgbe_down(struct ixgbe_adapter *adapter)

	/* disable receive for all VFs and wait one second */
	if (adapter->num_vfs) {
		for (i = 0 ; i < adapter->num_vfs; i++)
			adapter->vfinfo[i].clear_to_send = 0;

		/* ping all the active vfs to let them know we are going down */
		ixgbe_ping_all_vfs(adapter);

		/* Disable all VFTE/VFRE TX/RX */
		ixgbe_disable_tx_rx(adapter);

		/* Mark all the VFs as inactive */
		for (i = 0 ; i < adapter->num_vfs; i++)
			adapter->vfinfo[i].clear_to_send = 0;
	}

	/* disable receives */