]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: hns3: Fix for using wrong mask and shift in hclge_get_ring_chain_from_mbx
authorFuyun Liang <liangfuyun1@huawei.com>
Mon, 16 Jul 2018 15:36:26 +0000 (16:36 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Jul 2018 18:16:45 +0000 (11:16 -0700)
commitcf4103c699c2b3dd88bea169f47ad75d872b4a80
tree3ff5ac1e4b3690f672a1bf80fa677b497687aa54
parent82b5321460005ac5d34996e17f5a51a4004a1e14
net: hns3: Fix for using wrong mask and shift in hclge_get_ring_chain_from_mbx

HCLGE_INT_GL_IDX_M and HCLGE_INT_GL_IDX_S are used to set fireware
cmd. When getting int_gl value from mailbox message, we should use
HNAE3_RING_GL_IDX_M and HNAE3_RING_GL_IDX_S.

Fixes: 79eee4108541 ("net: hns3: add int_gl_idx setup for VF")
Signed-off-by: Fuyun Liang <liangfuyun1@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_mbx.c