]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
net: hns: Use NAPI_POLL_WEIGHT for hns driver
authorYonglong Liu <liuyonglong@huawei.com>
Thu, 4 Apr 2019 08:46:43 +0000 (16:46 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Apr 2019 17:35:42 +0000 (10:35 -0700)
commitacb1ce15a61154aa501891d67ebf79bc9ea26818
tree6b7a8a0b67d699a44898935f3a3904c1dc0e93c2
parent3a39a12ad364a9acd1038ba8da67cd8430f30de4
net: hns: Use NAPI_POLL_WEIGHT for hns driver

When the HNS driver loaded, always have an error print:
"netif_napi_add() called with weight 256"

This is because the kernel checks the NAPI polling weights
requested by drivers and it prints an error message if a driver
requests a weight bigger than 64.

So use NAPI_POLL_WEIGHT to fix it.

Signed-off-by: Yonglong Liu <liuyonglong@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns/hns_enet.c