]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: add int_gl_idx setup for TX and RX queues
authorFuyun Liang <liangfuyun1@huawei.com>
Fri, 12 Jan 2018 08:23:15 +0000 (16:23 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Jan 2018 15:12:33 +0000 (10:12 -0500)
commitb1c4ce156e4054c37344c1ecc48c5a5d9d017d3e
treeb28ac25dd4de9b47311796b7961299697dd7685f
parent96062356ce31e53f8365546243b1f55189e24904
net: hns3: add int_gl_idx setup for TX and RX queues

If the int_gl_idx does not be set, the default interrupt coalesce index
is 0. The TX queues and the RX queues will both use the GL0 as the
interrupt coalesce GL switch. But it should be GL1 for TX queues and GL0
for RX queues.

This patch adds the int_gl_idx setup for TX queues and RX queues.

Fixes: 327a841d1dd9 ("net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC")
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/hnae3.h
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c