提交 a020ed4b 编写于 作者: B Ben Hutchings 提交者: David S. Miller

cxgb4: Use netif_set_real_num_{rx,tx}_queues()

Signed-off-by: NBen Hutchings <bhutchings@solarflare.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 19221e75
......@@ -2763,7 +2763,10 @@ static int cxgb_open(struct net_device *dev)
return err;
}
dev->real_num_tx_queues = pi->nqsets;
netif_set_real_num_tx_queues(dev, pi->nqsets);
err = netif_set_real_num_rx_queues(dev, pi->nqsets);
if (err)
return err;
err = link_start(dev);
if (!err)
netif_tx_start_all_queues(dev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册