]> git.baikalelectronics.ru Git - kernel.git/commit
ethernet/ixp4xx: prevent allmulti from clobbering promisc
authorDerrick Pallas <pallas@meraki.com>
Wed, 18 Feb 2015 08:50:25 +0000 (00:50 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Feb 2015 20:49:07 +0000 (15:49 -0500)
commit69f2abba061c6790d6fca66fa4faeaebc0bcc52c
tree064426f731f97f44fb09bd6d17dcf237054b7111
parent4a8315554ccf72ce35bc5b360a87683e8449dd1e
ethernet/ixp4xx: prevent allmulti from clobbering promisc

If both promisc and allmulti are set, promisc should trump allmulti and
disable the MAC filter; otherwise, the interface is not really promisc.

Previously, this code checked IFF_ALLMULTI prior to and without regard for
IFF_PROMISC; if both were set, only multicast and direct unicast traffic
would make it through the filter.

Signed-off-by: Derrick Pallas <pallas@meraki.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/xscale/ixp4xx_eth.c