lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Sat, 05 Mar 2011 12:48:50 +0000 From: Ben Hutchings <bhutchings@...arflare.com> To: Jiri Pirko <jpirko@...hat.com> Cc: netdev@...r.kernel.org, davem@...emloft.net, shemminger@...ux-foundation.org, kaber@...sh.net, fubar@...ibm.com, eric.dumazet@...il.com, nicolas.2p.debian@...il.com, andy@...yhouse.net Subject: Re: [patch net-next-2.6 7/8] net: introduce rx_handler results and logic around that On Sat, 2011-03-05 at 11:29 +0100, Jiri Pirko wrote: > This patch allows rx_handlers to better signalize what to do next to > it's caller. That makes skb->deliver_no_wcard no longer needed. [...] > --- a/include/linux/netdevice.h > +++ b/include/linux/netdevice.h > @@ -390,7 +390,14 @@ enum gro_result { > }; > typedef enum gro_result gro_result_t; > > -typedef struct sk_buff *rx_handler_func_t(struct sk_buff *skb); > +enum rx_handler_result { > + RX_HANDLER_CONSUMED, > + RX_HANDLER_ANOTHER, > + RX_HANDLER_EXACT, > + RX_HANDLER_PASS, > +}; [...] This should have a comment (preferably kernel-doc) clearly specifying the meaning of each code, as the differences between ANOTHER/EXACT/PASS are fairly subtle. Ben, -- Ben Hutchings, Senior Software Engineer, Solarflare Communications Not speaking for my employer; that's the marketing department's job. They asked us to note that Solarflare product names are trademarked. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists