netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ipvs: change some __constant_htons() to htons()
@ 2008-09-16 15:11 Brian Haley
  2008-09-16 15:31 ` Julius Volz
  0 siblings, 1 reply; 3+ messages in thread
From: Brian Haley @ 2008-09-16 15:11 UTC (permalink / raw)
  To: David Miller; +Cc: netdev, lvs-devel

[-- Attachment #1: Type: text/plain, Size: 143 bytes --]

Change __contant_htons() to htons() in the IPVS code when not in an 
initializer.

-Brian

Signed-off-by: Brian Haley <brian.haley@hp.com>
---

[-- Attachment #2: ipvs.htons.patch --]
[-- Type: text/x-patch, Size: 974 bytes --]

diff --git a/net/ipv4/ipvs/ip_vs_proto.c b/net/ipv4/ipvs/ip_vs_proto.c
index b06da1c..0791f9e 100644
--- a/net/ipv4/ipvs/ip_vs_proto.c
+++ b/net/ipv4/ipvs/ip_vs_proto.c
@@ -237,7 +237,7 @@ ip_vs_tcpudp_debug_packet(struct ip_vs_protocol *pp,
 			  const char *msg)
 {
 #ifdef CONFIG_IP_VS_IPV6
-	if (skb->protocol == __constant_htons(ETH_P_IPV6))
+	if (skb->protocol == htons(ETH_P_IPV6))
 		ip_vs_tcpudp_debug_packet_v6(pp, skb, offset, msg);
 	else
 #endif
diff --git a/net/ipv4/ipvs/ip_vs_proto_ah_esp.c b/net/ipv4/ipvs/ip_vs_proto_ah_esp.c
index 2b18a78..80ab0c8 100644
--- a/net/ipv4/ipvs/ip_vs_proto_ah_esp.c
+++ b/net/ipv4/ipvs/ip_vs_proto_ah_esp.c
@@ -167,7 +167,7 @@ ah_esp_debug_packet(struct ip_vs_protocol *pp, const struct sk_buff *skb,
 		    int offset, const char *msg)
 {
 #ifdef CONFIG_IP_VS_IPV6
-	if (skb->protocol == __constant_htons(ETH_P_IPV6))
+	if (skb->protocol == htons(ETH_P_IPV6))
 		ah_esp_debug_packet_v6(pp, skb, offset, msg);
 	else
 #endif

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] ipvs: change some __constant_htons() to htons()
  2008-09-16 15:11 [PATCH] ipvs: change some __constant_htons() to htons() Brian Haley
@ 2008-09-16 15:31 ` Julius Volz
  2008-09-17  0:14   ` Simon Horman
  0 siblings, 1 reply; 3+ messages in thread
From: Julius Volz @ 2008-09-16 15:31 UTC (permalink / raw)
  To: Brian Haley; +Cc: David Miller, netdev, lvs-devel

On Tue, Sep 16, 2008 at 5:11 PM, Brian Haley <brian.haley@hp.com> wrote:
> Change __contant_htons() to htons() in the IPVS code when not in an
> initializer.
>
> -Brian
>
> Signed-off-by: Brian Haley <brian.haley@hp.com>

Thanks. I somehow missed that in the patch series that got in,
although you mentioned it before, sorry!

Julius

-- 
Julius Volz - Corporate Operations - SysOps

Google Switzerland GmbH - Identification No.: CH-020.4.028.116-1

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] ipvs: change some __constant_htons() to htons()
  2008-09-16 15:31 ` Julius Volz
@ 2008-09-17  0:14   ` Simon Horman
  0 siblings, 0 replies; 3+ messages in thread
From: Simon Horman @ 2008-09-17  0:14 UTC (permalink / raw)
  To: Julius Volz; +Cc: Brian Haley, David Miller, netdev, lvs-devel

On Tue, Sep 16, 2008 at 05:31:39PM +0200, Julius Volz wrote:
> On Tue, Sep 16, 2008 at 5:11 PM, Brian Haley <brian.haley@hp.com> wrote:
> > Change __contant_htons() to htons() in the IPVS code when not in an
> > initializer.
> >
> > -Brian
> >
> > Signed-off-by: Brian Haley <brian.haley@hp.com>
> 
> Thanks. I somehow missed that in the patch series that got in,
> although you mentioned it before, sorry!
> 
> Julius

Thanks, applied to the lvs-next-2.6 branch of lvs-2.6.

-- 
Simon Horman
  VA Linux Systems Japan K.K., Sydney, Australia Satellite Office
  H: www.vergenet.net/~horms/             W: www.valinux.co.jp/en


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-09-17  0:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-16 15:11 [PATCH] ipvs: change some __constant_htons() to htons() Brian Haley
2008-09-16 15:31 ` Julius Volz
2008-09-17  0:14   ` Simon Horman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).