Message ID | 20240524194829.b59bcf51bf91.I27d58940522266d55eaf288bebd0981e393bfc7f@changeid (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [1/3] backports: add list_count_nodes() | expand |
diff --git a/backport/backport-include/linux/netdevice.h b/backport/backport-include/linux/netdevice.h index f720b7537f4b..7f72c3a8eb98 100644 --- a/backport/backport-include/linux/netdevice.h +++ b/backport/backport-include/linux/netdevice.h @@ -204,6 +204,12 @@ static inline bool LINUX_BACKPORT(napi_schedule)(struct napi_struct *n) return false; } #define napi_schedule LINUX_BACKPORT(napi_schedule) + +#define napi_is_scheduled LINUX_BACKPORT(napi_is_scheduled) +static inline bool napi_is_scheduled(struct napi_struct *n) +{ + return test_bit(NAPI_STATE_SCHED, &n->state); +} #endif /* < 6.7.0 */ #endif /* __BACKPORT_NETDEVICE_H */