net: Use lockdep_assert_in_softirq() in napi_consume_skb()

Use napi_consume_skb() to assert the case when it is not called
in a atomic softirq context.

Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
Yunsheng Lin 2020-11-24 18:49:29 +08:00 committed by Jakub Kicinski
parent 8b5536ad12
commit 6454eca81e
1 changed files with 2 additions and 0 deletions

View File

@ -902,6 +902,8 @@ void napi_consume_skb(struct sk_buff *skb, int budget)
return;
}
lockdep_assert_in_softirq();
if (!skb_unref(skb))
return;