]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns: optimizate irq proccess for HNS V2
authorSheng Li <lisheng011@huawei.com>
Thu, 24 Mar 2016 11:08:04 +0000 (19:08 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Mar 2016 18:33:07 +0000 (14:33 -0400)
commitcfad0d895751646e52c1b5dad15dc12da3ad235c
treec6855e04eb3a8b6dfc35c462aa412f015116e18d
parent37451b135c229bf3562e681c260d4b9b3e203c35
net: hns: optimizate irq proccess for HNS V2

In hns V1, common_poll should check and clean fbd pkts, because it
can not pend irq to clean them if there is no new pkt comes in.
But hns V2 hw fixes this bug, and will pend irq itself to do this.
So, for hns V2, we set ring_data->fini_process to NULL.

Signed-off-by: Sheng Li <lisheng011@huawei.com>
Signed-off-by: Yisen Zhuang <Yisen.Zhuang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns/hns_enet.c