diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-22 14:57:09 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-06-22 14:57:09 -0400 |
commit | 5165aece0efac6574fc3e32b6f1c2a964820d1c6 (patch) | |
tree | 73131c06a021578a47526a95bad391dbd9d3b932 /drivers/net/mv643xx_eth.c | |
parent | e38be994b9cad09b0d8d78a1875d7e8a2e115d29 (diff) | |
parent | f6b24caaf933a466397915a08e30e885a32f905a (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6: (43 commits)
via-velocity: Fix velocity driver unmapping incorrect size.
mlx4_en: Remove redundant refill code on RX
mlx4_en: Removed redundant check on lso header size
mlx4_en: Cancel port_up check in transmit function
mlx4_en: using stop/start_all_queues
mlx4_en: Removed redundant skb->len check
mlx4_en: Counting all the dropped packets on the TX side
usbnet cdc_subset: fix issues talking to PXA gadgets
Net: qla3xxx, remove sleeping in atomic
ipv4: fix NULL pointer + success return in route lookup path
isdn: clean up documentation index
cfg80211: validate station settings
cfg80211: allow setting station parameters in mesh
cfg80211: allow adding/deleting stations on mesh
ath5k: fix beacon_int handling
MAINTAINERS: Fix Atheros pattern paths
ath9k: restore PS mode, before we put the chip into FULL SLEEP state.
ath9k: wait for beacon frame along with CAB
acer-wmi: fix rfkill conversion
ath5k: avoid PCI FATAL interrupts by restoring RETRY_TIMEOUT disabling
...
Diffstat (limited to 'drivers/net/mv643xx_eth.c')
-rw-r--r-- | drivers/net/mv643xx_eth.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/mv643xx_eth.c b/drivers/net/mv643xx_eth.c index 745ae8b4a2e8..0f32db3e92ad 100644 --- a/drivers/net/mv643xx_eth.c +++ b/drivers/net/mv643xx_eth.c | |||
@@ -1750,12 +1750,12 @@ static void mv643xx_eth_program_unicast_filter(struct net_device *dev) | |||
1750 | 1750 | ||
1751 | uc_addr_set(mp, dev->dev_addr); | 1751 | uc_addr_set(mp, dev->dev_addr); |
1752 | 1752 | ||
1753 | port_config = rdlp(mp, PORT_CONFIG); | 1753 | port_config = rdlp(mp, PORT_CONFIG) & ~UNICAST_PROMISCUOUS_MODE; |
1754 | |||
1754 | nibbles = uc_addr_filter_mask(dev); | 1755 | nibbles = uc_addr_filter_mask(dev); |
1755 | if (!nibbles) { | 1756 | if (!nibbles) { |
1756 | port_config |= UNICAST_PROMISCUOUS_MODE; | 1757 | port_config |= UNICAST_PROMISCUOUS_MODE; |
1757 | wrlp(mp, PORT_CONFIG, port_config); | 1758 | nibbles = 0xffff; |
1758 | return; | ||
1759 | } | 1759 | } |
1760 | 1760 | ||
1761 | for (i = 0; i < 16; i += 4) { | 1761 | for (i = 0; i < 16; i += 4) { |
@@ -1776,7 +1776,6 @@ static void mv643xx_eth_program_unicast_filter(struct net_device *dev) | |||
1776 | wrl(mp, off, v); | 1776 | wrl(mp, off, v); |
1777 | } | 1777 | } |
1778 | 1778 | ||
1779 | port_config &= ~UNICAST_PROMISCUOUS_MODE; | ||
1780 | wrlp(mp, PORT_CONFIG, port_config); | 1779 | wrlp(mp, PORT_CONFIG, port_config); |
1781 | } | 1780 | } |
1782 | 1781 | ||