From: Eric Dumazet Date: Tue, 30 Mar 2010 23:08:37 +0000 (+0000) Subject: bonding: bond_xmit_roundrobin() fix X-Git-Tag: v2.6.34-rc5~5^2~47 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=00ae702847df5566ce9182e9c895185e2ad1c181;p=profile%2Fcommon%2Fkernel-common.git bonding: bond_xmit_roundrobin() fix 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index 5b92fbf..5972a52 100644 --- a/drivers/net/bonding/bond_main.c +++ b/drivers/net/bonding/bond_main.c @@ -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);