]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5cf1f3f3c2f22eb12c4eb2854ceac19199ccbce3
treecbc14b604997c671c7d7efb6ba4345d827e78235
parentb1dbbdd7012ca05e0afd2ba82db09df33f1583f1
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