]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[IPV6]: Reverse sense of promisc tests in ip6_mc_input
authorCorey Mutter <crm-netdev@mutternet.com>
Tue, 22 May 2007 23:01:53 +0000 (01:01 +0200)
committerAdrian Bunk <bunk@stusta.de>
Tue, 22 May 2007 23:01:53 +0000 (01:01 +0200)
Reverse the sense of the promiscuous-mode tests in ip6_mc_input().

Signed-off-by: Corey Mutter <crm-netdev@mutternet.com>
Signed-off-by: David L Stevens <dlstevens@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
net/ipv6/ip6_input.c

index 29f73592e68e51304c7c6859c82eb44248e3a3ae..6a03ed723d07010dedb5158686bdbb54bf86f799 100644 (file)
@@ -226,7 +226,7 @@ int ip6_mc_input(struct sk_buff *skb)
        IP6_INC_STATS_BH(IPSTATS_MIB_INMCASTPKTS);
 
        hdr = skb->nh.ipv6h;
-       deliver = likely(!(skb->dev->flags & (IFF_PROMISC|IFF_ALLMULTI))) ||
+       deliver = unlikely(skb->dev->flags & (IFF_PROMISC|IFF_ALLMULTI)) ||
            ipv6_chk_mcast_addr(skb->dev, &hdr->daddr, NULL);
 
        /*