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:21:50 +0000 (07:21 +0200)
commit7713ee6917674cf9e9f7c9815bca86665234b9b6
treec1b2baa5f6eda0bc3d2f11b642c76708dc664860
parent7e7befd8dee2ddb4d17cd0b2bb214b2622c73e54
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 <sashal@kernel.org>
drivers/net/ethernet/hisilicon/hns/hns_enet.c