Hi Linas, Linas Vepstas schrieb: > Index: linux-2.6.23-rc8-mm1/include/linux/netdevice.h > =================================================================== > --- linux-2.6.23-rc8-mm1.orig/include/linux/netdevice.h 2007-09-26 > 15:07:05.000000000 -0500 > +++ linux-2.6.23-rc8-mm1/include/linux/netdevice.h 2007-11-07 > 17:14:50.000000000 -0600 > @@ -384,6 +384,18 @@ static inline void napi_enable(struct na > clear_bit(NAPI_STATE_SCHED, &n->state); > } > > +/** > + * napi_enabled_p - return non-zero if napi enabled > + * @n: napi context > + * > + * Mnemonic: _p stands for "predicate", returning a yes/no > + * answer to the question.
Call it "is_napi_enabled()" an nobody will ask :-) > + */ > +static inline int napi_enabled_p(struct napi_struct *n) And please make it return "bool" instead of "int". Best Regards Ingo Oeser - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html