]> 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)
commitea579743134aa0e0e97a81e1fdf494b792d9b5c8
treecbc14b604997c671c7d7efb6ba4345d827e78235
parent211cf4704ed1e696015370af1af5c4085da24f6c
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