Re: [PATCH] tg3: Convert u32 flag,flg2,flg3 uses to bitmap

From: Joe Perches
Date: Thu Apr 21 2011 - 12:49:52 EST


On Thu, 2011-04-21 at 10:31 +0200, Eric Dumazet wrote:
> Le mercredi 20 avril 2011 Ã 23:39 -0700, Joe Perches a Ãcrit :
> > Using a bitmap instead of separate u32 flags allows a consistent, simpler
[]
> Use an enum ?

No strong preference.
If it's an enum .c file will change.

> Why first value is 1 and not 0 ?

Should be 0.

> > +#define TG3_FLAGS 74 /* Set to number of flags */
> Also you need to make TG3_FLAGS be (last_flag_value + 1) or you could
> miss one long in bitmap.

Right. Thanks for comments Eric.
I'll wait for Matt to comment before resubmitting.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/