]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: add int_gl_idx setup for VF
authorFuyun Liang <liangfuyun1@huawei.com>
Fri, 26 Jan 2018 11:31:25 +0000 (19:31 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Jan 2018 15:58:30 +0000 (10:58 -0500)
commit58694d467710304d47c31774232a48a1852c1853
tree56f4e6b1842868f2a6770bdeccfd276a94d0269a
parenteb6e63c563950db24f58d72b5b69b39081855a58
net: hns3: add int_gl_idx setup for VF

Just like PF, if the int_gl_idx of VF does not be set, the default
interrupt coalesce index of VF is 0. But it should be GL1 for TX
queues and GL0 for RX queues.

This patch adds the int_gl_idx setup for VF.

Fixes: 200ecda42598 ("net: hns3: Add HNS3 VF HCL(Hardware Compatibility Layer) Support")
Signed-off-by: Fuyun Liang <liangfuyun1@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c