mbox series

[net-next,v2,0/2] Add an assert in napi_consume_skb()

Message ID 1605927976-232804-1-git-send-email-linyunsheng@huawei.com (mailing list archive)
Headers show
Series Add an assert in napi_consume_skb() | expand

Message

Yunsheng Lin Nov. 21, 2020, 3:06 a.m. UTC
This patch introduces a lockdep_assert_in_softirq() interface and
uses it to assert the case when napi_consume_skb() is not called in
the softirq context.

Changelog:
V2: Use lockdep instead of one-off Kconfig knob

Yunsheng Lin (2):
  lockdep: Introduce in_softirq lockdep assert
  net: Use lockdep_assert_in_softirq() in napi_consume_skb()

 include/linux/lockdep.h | 7 +++++++
 net/core/skbuff.c       | 2 ++
 2 files changed, 9 insertions(+)