net: hns3: Refine the MSIX allocation for PF
authorJian Shen <shenjian15@huawei.com>
Fri, 3 Aug 2018 09:56:31 +0000 (10:56 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Aug 2018 16:53:24 +0000 (09:53 -0700)
commit375dd5e432128ee071227e3ab0071ca11d01ac8c
tree07f508e55176a24b1c4411d97db0e430d3850d67
parent07acf909ee33983fe22334446dd5c2adf0fdca26
net: hns3: Refine the MSIX allocation for PF

The offset of msix number for roce is different between different
revision id. We should get it from firmware, instead of a fix value.
This patch refines the msix allocation, make it compatible.

Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h