net: hns: Optimize hns_nic_common_poll for better performance
authorlipeng <lipeng321@huawei.com>
Sat, 1 Apr 2017 11:03:36 +0000 (12:03 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Apr 2017 21:48:43 +0000 (14:48 -0700)
commit36eedfde1a3602e8054c16bc295c47764647a208
treebbaf7cd85bbd0abfe37a6abff75715753ad5b6ee
parent4b7cdecaa441bc296a507371766109624c177ec0
net: hns: Optimize hns_nic_common_poll for better performance

After polling less than buget packages, we need check again. If
there are still some packages, we call napi_schedule add softirq
queue, this is not better way. So we return buget value instead
of napi_schedule.

Signed-off-by: lipeng <lipeng321@huawei.com>
reviewed-by: Yisen Zhuang <yisen.zhuang@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns/hns_enet.c
drivers/net/ethernet/hisilicon/hns/hns_enet.h