aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bfin_mac.c
diff options
context:
space:
mode:
authorSonic Zhang <sonic.zhang@analog.com>2010-05-10 05:39:12 +0000
committerDavid S. Miller <davem@davemloft.net>2010-05-17 17:21:00 -0700
commitc0da776bde79e5d5e2c955ff37a8a09fe05433b2 (patch)
tree3b586cd5c89a32575a9b8c3da282509469acfdb8 /drivers/net/bfin_mac.c
parent53fd3f2829268703729a2db0e24c0e36360b68a2 (diff)
downloadkernel_samsung_smdk4412-c0da776bde79e5d5e2c955ff37a8a09fe05433b2.zip
kernel_samsung_smdk4412-c0da776bde79e5d5e2c955ff37a8a09fe05433b2.tar.gz
kernel_samsung_smdk4412-c0da776bde79e5d5e2c955ff37a8a09fe05433b2.tar.bz2
netdev: bfin_mac: use promiscuous flag for promiscuous mode
Rather than using the Receive All Frames (RAF) bit to enable promiscuous mode, use the Promiscuous (PR) bit. This lowers overhead at runtime as we let the hardware process the packets that should actually be checked. Signed-off-by: Sonic Zhang <sonic.zhang@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bfin_mac.c')
-rw-r--r--drivers/net/bfin_mac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/bfin_mac.c b/drivers/net/bfin_mac.c
index 28f3507..8166611 100644
--- a/drivers/net/bfin_mac.c
+++ b/drivers/net/bfin_mac.c
@@ -1276,7 +1276,7 @@ static void bfin_mac_set_multicast_list(struct net_device *dev)
if (dev->flags & IFF_PROMISC) {
printk(KERN_INFO "%s: set to promisc mode\n", dev->name);
sysctl = bfin_read_EMAC_OPMODE();
- sysctl |= RAF;
+ sysctl |= PR;
bfin_write_EMAC_OPMODE(sysctl);
} else if (dev->flags & IFF_ALLMULTI) {
/* accept all multicast */