LinuxKPI: napi_schedule() requires return value, implement napi_is_scheduled()
authorBjoern A. Zeeb <bz@FreeBSD.org>
Sun, 31 Mar 2024 17:27:45 +0000 (17:27 +0000)
committerBjoern A. Zeeb <bz@FreeBSD.org>
Mon, 15 Apr 2024 16:19:47 +0000 (16:19 +0000)
commit21761f2ede4ebad13e78112b9409c1f20f946781
treedb4cf5ab71f69dce249d97c576434848a017493b
parent3d3ec17825a124f0119d76c4d2523d73012fa226
LinuxKPI: napi_schedule() requires return value, implement napi_is_scheduled()

A newer version of iwlwifi requires a return value from napi_schedule();
unclear if the function always should have been bool. Add the bool to test
based on the napi_schedule_prep() result.

Also add napi_is_scheduled() for rtw89.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days
Reviewed by: emaste (previous version)
Differential Revision: https://reviews.freebsd.org/D44591
sys/compat/linuxkpi/common/include/linux/netdevice.h
sys/compat/linuxkpi/common/src/linux_netdev.c