bonding: bond_xmit_roundrobin() fix
authorEric Dumazet <eric.dumazet@gmail.com>
Tue, 30 Mar 2010 23:08:37 +0000 (23:08 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 Mar 2010 10:23:56 +0000 (03:23 -0700)
Commit a2fd940f (bonding: fix broken multicast with round-robin mode)
added a problem on litle endian machines.

drivers/net/bonding/bond_main.c:4159: warning: comparison is always
false due to limited range of data type

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c

index 5b92fbff431da316f442386564c52c8ae390e927..5972a52a330c3335f97976e4745d9061b04e992f 100644 (file)
@@ -4156,7 +4156,7 @@ static int bond_xmit_roundrobin(struct sk_buff *skb, struct net_device *bond_dev
         * send the join/membership reports.  The curr_active_slave found
         * will send all of this type of traffic.
         */
-       if ((iph->protocol == htons(IPPROTO_IGMP)) &&
+       if ((iph->protocol == IPPROTO_IGMP) &&
            (skb->protocol == htons(ETH_P_IP))) {
 
                read_lock(&bond->curr_slave_lock);