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)
commit79eee41085414c25c788cd98b78e8776551d837f
tree56f4e6b1842868f2a6770bdeccfd276a94d0269a
parentad31c7320140fc2fad259d81c3340901b6225f03
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