Skip to content

Commit

Permalink
ixgbe: Change where clear_to_send_flag is reset to zero.
Browse files Browse the repository at this point in the history
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: Greg Rose <gregory.v.rose@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Greg Rose authored and David S. Miller committed Mar 26, 2010
1 parent 5809a1a commit 581d1aa
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions drivers/net/ixgbe/ixgbe_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 581d1aa

Please sign in to comment.