tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Lockless IP input queue, the pktqueue interface



On 28/05/2014 11:16 AM, Thor Lancelot Simon wrote:
On Tue, May 27, 2014 at 12:48:47PM +0100, Mindaugas Rasiukevicius wrote:
use enums rather than #define's for things like the counters
You have enums in the public interface.  I do not see a big deal,
though (we still often use #defines even in the new code).
Enums make debugging a little nicer, sometimes.

Yeah, they don't work so well for flags but for constants that are never
combined with others, they're good.

Darren



Home | Main Index | Thread Index | Old Index