]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
net: hns3: Refine the MSIX allocation for PF
authorJian Shen <shenjian15@huawei.com>
Wed, 19 Sep 2018 18:23:00 +0000 (20:23 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 1 Oct 2018 14:51:52 +0000 (16:51 +0200)
commit5355e6d318211ecfca3514fd38e5bf6160e7cab9
tree35a94c12f637de6e7de34b7cff3ddbafaee0fa20
parentf4e4e86c1ff0422e88f4c3f0a36765f11fae7f99
net: hns3: Refine the MSIX allocation for PF

BugLink: https://bugs.launchpad.net/bugs/1793221
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>
(cherry picked from commit 375dd5e432128ee071227e3ab0071ca11d01ac8c)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Acked-by: Seth Forshee <seth.forshee@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
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