| To: | "Jeff Garzik" <jgarzik@xxxxxxxxx> |
|---|---|
| Subject: | [PATCH] [bonding 2.4] Fix compilation warning in bond_alb.c |
| From: | Amir Noam <amir.noam@xxxxxxxxx> |
| Date: | Wed, 31 Dec 2003 11:21:46 +0200 |
| Cc: | bonding-devel@xxxxxxxxxxxxxxxxxxxxx, netdev@xxxxxxxxxxx |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | KMail/1.5.3 |
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:24:00 2003
+++ b/drivers/net/bonding/bond_alb.c Tue Dec 30 19:24:02 2003
@@ -1229,8 +1229,7 @@ int bond_alb_xmit(struct sk_buff *skb, s
break;
}
- if (skb->nh.ipxh->ipx_type !=
- __constant_htons(IPX_TYPE_NCP)) {
+ if (skb->nh.ipxh->ipx_type != IPX_TYPE_NCP) {
/* The only protocol worth balancing in
* this family since it has an "ARP" like
* mechanism
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH]sk98lin ethtool support, Mirko Lindner |
|---|---|
| Next by Date: | [PATCH] [bonding 2.6] Fix compilation warning in bond_alb.c, Amir Noam |
| Previous by Thread: | [patch] clean up tcp_sk(), 2.6.0, Ingo Molnar |
| Next by Thread: | Re: [PATCH] [bonding 2.4] Fix compilation warning in bond_alb.c, Jeff Garzik |
| Indexes: | [Date] [Thread] [Top] [All Lists] |