net: hns3: set the max ring num when alloc netdev
authorPeng Li <lipeng321@huawei.com>
Thu, 8 Mar 2018 11:41:54 +0000 (19:41 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Mar 2018 16:23:37 +0000 (11:23 -0500)
commit678335a123e98e5af8ec50e04f16b59643e2af81
tree7aef02e68bbec42c46b6b5976985394d3c9959e7
parent814e0274fd830c1611715ab2c1ba4a7bdb97121b
net: hns3: set the max ring num when alloc netdev

HNS3 driver should alloc netdev with max support ring num, as
driver support change netdev count by ethtool -L.

Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c