]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commitf81edc6ac1e1e2e2cbe98bcd6ef5ebb7afb00807
tree064426f731f97f44fb09bd6d17dcf237054b7111
parent7b4577a9da3702049650f7095506e9afd9f68849
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