aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bfin_mac.c
diff options
context:
space:
mode:
authorSonic Zhang <sonic.zhang@analog.com>2010-05-10 01:39:12 -0400
committerDavid S. Miller <davem@davemloft.net>2010-05-17 20:21:00 -0400
commitc0da776bde79e5d5e2c955ff37a8a09fe05433b2 (patch)
tree3b586cd5c89a32575a9b8c3da282509469acfdb8 /drivers/net/bfin_mac.c
parent53fd3f2829268703729a2db0e24c0e36360b68a2 (diff)
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 28f350711267..8166611f3cc7 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)
1276 if (dev->flags & IFF_PROMISC) { 1276 if (dev->flags & IFF_PROMISC) {
1277 printk(KERN_INFO "%s: set to promisc mode\n", dev->name); 1277 printk(KERN_INFO "%s: set to promisc mode\n", dev->name);
1278 sysctl = bfin_read_EMAC_OPMODE(); 1278 sysctl = bfin_read_EMAC_OPMODE();
1279 sysctl |= RAF; 1279 sysctl |= PR;
1280 bfin_write_EMAC_OPMODE(sysctl); 1280 bfin_write_EMAC_OPMODE(sysctl);
1281 } else if (dev->flags & IFF_ALLMULTI) { 1281 } else if (dev->flags & IFF_ALLMULTI) {
1282 /* accept all multicast */ 1282 /* accept all multicast */