Skip to content
This repository has been archived by the owner on Sep 28, 2024. It is now read-only.

Commit

Permalink
RH7: [PATCH net-next] hv_netvsc: Fix the real number of queues of non…
Browse files Browse the repository at this point in the history
…-vRSS cases <upstream:96a8032fdda2c80451e1024d61da1a5ab379019e>
  • Loading branch information
Alex Ng committed Sep 23, 2017
1 parent 4c1f9a4 commit 633b8b8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions hv-rhel7.x/hv/netvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -1958,6 +1958,13 @@ static int netvsc_probe(struct hv_device *dev,
/* We always need headroom for rndis header */
net->needed_headroom = RNDIS_AND_PPI_SIZE;

/* Initialize the number of queues to be 1, we may change it if more
* channels are offered later.
*/
netif_set_real_num_tx_queues(net, 1);
netif_set_real_num_rx_queues(net, 1);

/* Notify the netvsc driver of the new device */
memset(&device_info, 0, sizeof(device_info));
device_info.ring_size = ring_size;
device_info.num_chn = VRSS_CHANNEL_DEFAULT;
Expand Down

0 comments on commit 633b8b8

Please sign in to comment.