Skip to content

Commit

Permalink
i40e: Tell the stack about our actual number of queues
Browse files Browse the repository at this point in the history
Call the netif_set_real* functions in order to make sure
the stack knows about how many queues we have, in order
for RFS/RPS/XFS to work correctly.

Change-Id: Ib7a7b2792f80c5eef210dedf42cc6607d63953d2
Signed-off-by: Anjali Singhai Jain <anjali.singhai@intel.com>
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Kavindya Deegala <kavindya.s.deegala@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
  • Loading branch information
Anjali Singhai Jain authored and Jeff Kirsher committed Dec 16, 2013
1 parent f551b43 commit 25946dd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions drivers/net/ethernet/intel/i40e/i40e_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3966,6 +3966,15 @@ static int i40e_open(struct net_device *netdev)
if (err)
goto err_setup_rx;

/* Notify the stack of the actual queue counts. */
err = netif_set_real_num_tx_queues(netdev, pf->num_tx_queues);
if (err)
goto err_set_queues;

err = netif_set_real_num_rx_queues(netdev, pf->num_rx_queues);
if (err)
goto err_set_queues;

err = i40e_up_complete(vsi);
if (err)
goto err_up_complete;
Expand All @@ -3982,6 +3991,7 @@ static int i40e_open(struct net_device *netdev)

err_up_complete:
i40e_down(vsi);
err_set_queues:
i40e_vsi_free_irq(vsi);
err_setup_rx:
i40e_vsi_free_rx_resources(vsi);
Expand Down

0 comments on commit 25946dd

Please sign in to comment.