What is the reasoning for this change? Is the compiler able to optomize the right-hand-side to a constant with your change in place?
- if (veth->h_vlan_proto != __constant_htons(ETH_P_8021Q)) { + if (veth->h_vlan_proto != htons(ETH_P_8021Q)) { return -EINVAL; }
-- Ben Greear <[email protected]> Candela Technologies Inc http://www.candelatech.com - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [RFD][PATCH] typhoon and core sample for folding away VLAN stuff
- From: "David S. Miller" <[email protected]>
- Re: [RFD][PATCH] typhoon and core sample for folding away VLAN stuff
- From: Stephen Hemminger <[email protected]>
- Re: [RFD][PATCH] typhoon and core sample for folding away VLAN stuff
- References:
- [PATCH] deinline a few large functions in vlan code
- From: Denis Vlasenko <[email protected]>
- Re: [PATCH] deinline a few large functions in vlan code v2
- From: Ingo Oeser <[email protected]>
- [RFD][PATCH] typhoon and core sample for folding away VLAN stuff (was: Re: [PATCH] deinline a few large functions in vlan code v2)
- From: Ingo Oeser <[email protected]>
- [PATCH] deinline a few large functions in vlan code
- Prev by Date: [RFD][PATCH] typhoon and core sample for folding away VLAN stuff (was: Re: [PATCH] deinline a few large functions in vlan code v2)
- Next by Date: Re: [RFC] Making percpu module variables have their own memory.
- Previous by thread: [RFD][PATCH] typhoon and core sample for folding away VLAN stuff (was: Re: [PATCH] deinline a few large functions in vlan code v2)
- Next by thread: Re: [RFD][PATCH] typhoon and core sample for folding away VLAN stuff
- Index(es):