Re: [PATCH 2/2] rps: changes to bnx2x to get device hash

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Stephen Hemminger
Date: Wednesday, November 11, 2009 - 11:19 am

On Tue, 10 Nov 2009 22:53:36 -0800
Tom Herbert <therbert@google.com> wrote:


How about putting this all in an inline function:

static inline u16 bn2x_get_type(...) {
}


	skb->protocol = bn2x_get_type(...);

Then you won't have two calls to eth_type_trans,

Also: __constant_htons() should not be used directly (except switch statements),
macro for htons() does it automatically if argument is constant.
--
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:
[PATCH 2/2] rps: changes to bnx2x to get device hash, Tom Herbert, (Tue Nov 10, 11:53 pm)
Re: [PATCH 2/2] rps: changes to bnx2x to get device hash, Stephen Hemminger, (Wed Nov 11, 11:19 am)