[PATCH AUTOSEL 4.18 009/136] net: hns3: Fix warning bug when doing lp selftest

2018-09-16 Thread Sasha Levin
From: Yunsheng Lin [ Upstream commit d7099d15478e89edb9bc6c6e3ab4cd341884a367 ] The napi_alloc_skb is excepted to be called under the non-preemptible code path when it is called by hns3_clean_rx_ring during loopback selftest, otherwise the below warning will be logged: [ 92.420780] BUG:

[PATCH AUTOSEL 4.18 009/136] net: hns3: Fix warning bug when doing lp selftest

2018-09-16 Thread Sasha Levin
From: Yunsheng Lin [ Upstream commit d7099d15478e89edb9bc6c6e3ab4cd341884a367 ] The napi_alloc_skb is excepted to be called under the non-preemptible code path when it is called by hns3_clean_rx_ring during loopback selftest, otherwise the below warning will be logged: [ 92.420780] BUG: