Skip to content

Commit

Permalink
ibmvnic: properly start and stop tx queues
Browse files Browse the repository at this point in the history
Since ibmvnic uses multiple tx queues, start and stop all queues when
opening and closing devices.

Signed-off-by: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Thomas Falcon authored and David S. Miller committed Jul 9, 2016
1 parent 5b58d83 commit b8efb89
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/net/ethernet/ibm/ibmvnic.c
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,8 @@ static int ibmvnic_open(struct net_device *netdev)
crq.logical_link_state.link_state = IBMVNIC_LOGICAL_LNK_UP;
ibmvnic_send_crq(adapter, &crq);

netif_start_queue(netdev);
netif_tx_start_all_queues(netdev);

return 0;

bounce_map_failed:
Expand Down Expand Up @@ -519,7 +520,7 @@ static int ibmvnic_close(struct net_device *netdev)
for (i = 0; i < adapter->req_rx_queues; i++)
napi_disable(&adapter->napi[i]);

netif_stop_queue(netdev);
netif_tx_stop_all_queues(netdev);

if (adapter->bounce_buffer) {
if (!dma_mapping_error(dev, adapter->bounce_buffer_dma)) {
Expand Down

0 comments on commit b8efb89

Please sign in to comment.