diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2010-03-30 19:08:37 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-03-31 06:23:56 -0400 |
commit | 00ae702847df5566ce9182e9c895185e2ad1c181 (patch) | |
tree | 6258957adb1fb1b6086363536607a1124824bf4c /drivers/net/bonding | |
parent | ce6fbdefb68d46db88170494b277551f955b48e2 (diff) |
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 <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bonding')
-rw-r--r-- | drivers/net/bonding/bond_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index 5b92fbff431d..5972a52a330c 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 | |||
4156 | * send the join/membership reports. The curr_active_slave found | 4156 | * send the join/membership reports. The curr_active_slave found |
4157 | * will send all of this type of traffic. | 4157 | * will send all of this type of traffic. |
4158 | */ | 4158 | */ |
4159 | if ((iph->protocol == htons(IPPROTO_IGMP)) && | 4159 | if ((iph->protocol == IPPROTO_IGMP) && |
4160 | (skb->protocol == htons(ETH_P_IP))) { | 4160 | (skb->protocol == htons(ETH_P_IP))) { |
4161 | 4161 | ||
4162 | read_lock(&bond->curr_slave_lock); | 4162 | read_lock(&bond->curr_slave_lock); |