]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerSeth Forshee <seth.forshee@canonical.com>
Fri, 16 Mar 2018 15:47:44 +0000 (10:47 -0500)
commitf230c6c5b2606e55b1650cfb732a8526fc112fc1
tree31361fb4314c5376e5e84b0cf2fe27e09c85d6ba
parentfcff38e229f067e9ed79676122e26f003e2e099c
net: hns3: add int_gl_idx setup for TX and RX queues

BugLink: http://bugs.launchpad.net/bugs/1756097
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: 76ad4f0ee747 ("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>
(cherry picked from commit 11af96a47beda880e07b6f2f68efaae60794ae78)
Signed-off-by: Manoj Iyer <manoj.iyer@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/net/ethernet/hisilicon/hns3/hnae3.h
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c