Re: [PATCH] - e1000_ethtool.c - convert macros to functions

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Joe Perches <joe@...>
Cc: netdev <netdev@...>, <e1000-devel@...>, Auke Kok <auke-jan.h.kok@...>, Jeff Garzik <jgarzik@...>
Date: Wednesday, October 31, 2007 - 5:30 pm

Joe Perches wrote:

that's not a bad idea, however see below:


can't we keep the macro here (and just make it call the function instead of
expanding). the resulting code is much more lenghty and contains all these logic
traps that the previous code didn't have.

just have the macro expand to `if (reg_pattern_test(...)) return 1)` and you don't
need to change any of the calling lines.


did you have to change these macro's ?


also, I'm a bit inclined to prefer a patch for e1000e for now as we're about to
move the pci-express hardware over, but we can certainly merge something like this
in e1000 after the move as well.


Auke
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] - e1000_ethtool.c - convert macros to functions, Kok, Auke, (Wed Oct 31, 5:30 pm)