* [PATCH] [bonding 2.6] Fix compilation warning in bond_alb.c
@ 2003-12-31 9:21 Amir Noam
0 siblings, 0 replies; only message in thread
From: Amir Noam @ 2003-12-31 9:21 UTC (permalink / raw)
To: Jeff Garzik; +Cc: bonding-devel, netdev
The IPX_TYPE_* constants and ipxhdr.ipx_type are u8 values, so we
shouldn't use __constant_htons().
diff -Nuarp a/drivers/net/bonding/bond_alb.c b/drivers/net/bonding/bond_alb.c
--- a/drivers/net/bonding/bond_alb.c Tue Dec 30 19:25:43 2003
+++ b/drivers/net/bonding/bond_alb.c Tue Dec 30 19:25:44 2003
@@ -1228,8 +1228,7 @@ int bond_alb_xmit(struct sk_buff *skb, s
break;
}
- if (ipx_hdr(skb)->ipx_type !=
- __constant_htons(IPX_TYPE_NCP)) {
+ if (ipx_hdr(skb)->ipx_type != IPX_TYPE_NCP) {
/* The only protocol worth balancing in
* this family since it has an "ARP" like
* mechanism
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-12-31 9:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-31 9:21 [PATCH] [bonding 2.6] Fix compilation warning in bond_alb.c Amir Noam
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).