net: hns3: Refactor the mapping of tqp to vport
authorLipeng <lipeng321@huawei.com>
Thu, 2 Nov 2017 12:45:15 +0000 (20:45 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Nov 2017 12:28:35 +0000 (21:28 +0900)
commit7df7dad633e2c6d43ee9b39c267ee0add9798384
treecbc14b604997c671c7d7efb6ba4345d827e78235
parent9691cea91c9d35f09d6b31a5e8dbfc631d40903a
net: hns3: Refactor the mapping of tqp to vport

This patch refactor the mapping of tqp to vport, making the maping function
can be used both in the reset process and initialization process.

Signed-off-by: qumingguang <qumingguang@huawei.com>
Signed-off-by: Lipeng <lipeng321@huawei.com>
Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c