Commit 0a50fd01 authored by Yonglong Liu's avatar Yonglong Liu Committed by Xie XiuQi
Browse files

net: hns: NAPI_POLL_WEIGHT for hns driver



driver inclusion
category: bugfix
bugzilla: NA
CVE: NA

-------------------------------------------------------------------------

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: default avatarYonglong Liu <liuyonglong@huawei.com>
Reviewed-by: default avatarlipeng <lipeng321@huawei.com>
Reviewed-by: default avatarZhitao Yu <yuzhitao@huawei.com>
Reviewed-by: default avatarWeiwei Deng <dengweiwei@huawei.com>
Reviewed-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent e9c25974
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment