Skip to content
Snippets Groups Projects
Commit 63c3a66f authored by Joe Perches's avatar Joe Perches Committed by David S. Miller
Browse files

tg3: Convert u32 flag,flg2,flg3 uses to bitmap


Using a bitmap instead of separate u32 flags allows a consistent, simpler
and more extensible mechanism to determine capabilities.

Convert bitmasks to enum.
Add tg3_flag, tg3_flag_clear and tg3_flag_set.
Convert the flag & bitmask tests.

Signed-off-by: default avatarJoe Perches <joe@perches.com>
Acked-by: default avatarMatt Carlson <mcarlson@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent fa2bd7ff
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment