]> git.itanic.dy.fi Git - linux-stable/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 May 2019 05:22:53 +0000 (07:22 +0200)
commit2cbe0575198107fa58d31aa2e9eb95874d1dc58b
tree298530a2097dfbba6c54ac325648df40a485ad8a
parentf59129993a5300dce02bea7c3dc77b2ee3fb101c
net: hns: Use NAPI_POLL_WEIGHT for hns driver

[ Upstream commit acb1ce15a61154aa501891d67ebf79bc9ea26818 ]

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>
Signed-off-by: Sasha Levin (Microsoft) <sashal@kernel.org>
drivers/net/ethernet/hisilicon/hns/hns_enet.c