Skip to contentSkip to conversation

New: natsemi: incorrect initialization of IPv6 Neighbor-discovery multicast

Bugme-new Applied Andrew Morton 3 participants 3 messages Apr 13, 2005 – May 15, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Begin forwarded message:

Date: Wed, 13 Apr 2005 07:19:38 -0700
From: [email protected]
To: [email protected]
Subject: [Bugme-new] [Bug 4482] New: natsemi: incorrect initialization of IPv6 Neighbor-discovery multicast

http://bugme.osdl.org/show_bug.cgi?id=4482

Summary: natsemi: incorrect initialization of IPv6 Neighbor-
discovery multicast
Kernel Version: 2.6.11.7
Status: NEW
Severity: normal
Owner: [email protected]
Submitter: [email protected]

Distribution: Debian Sarge (testing)

Hardware Environment:
Arch is PowerPC/BeigeG3
Problematic NIC has a DP83815 chipset (Netgear FA311)

Software Environment:
iproute2/ifconfig

Problem Description:
"ifconfig eth0 up" *apparently* allows multicast on the device :

# ifconfig eth0
...
UP BROADCAST RUNNING MULTICAST
...
# ip maddr show
...
1:   eth0
     link   33:33:ff:be:0a:ed
     link   33:33:00:00:00:01
     ...
     inet6  ff02::1:ffbe:aed
     inet6  ff02::1

However, the NIC does *not* reply to neighbor-sollicitation multicasts, neither on 33:33:00:00:00:01 (ping6 ff02::1) or on the sollicited-node multicast.

It *is* however responding *after* being brought in promiscuous mode (using tcpdump) or an "ifconfig eth0 multicast" has been issued. Shuting down and up brings the problem back again

Steps to reproduce:

# ifconfig eth0 down
# ifconfig eth0 up

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

#1 lore raw
Quoted 3 lines · Andrew Morton

Summary: natsemi: incorrect initialization of IPv6 Neighbor-
discovery multicast

I've got a pair of FA312 cards and this problem has bothered me for ages. This has finally prompted me to do something about it :)

Turns out that somebody wasn't following the documentation. We were doing 16-bit writes to 32-bit registers which led to some addresses working and others not so lucky.

This patch should fix the problem.

Cheers,

Signature · 4 lines
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

===== drivers/net/natsemi.c 1.74 vs edited =====

drivers/net/natsemi.c +3 -3
@@ -2433,9 +2433,9 @@
 		rx_mode = RxFilterEnable | AcceptBroadcast
 			| AcceptMulticast | AcceptMyPhys;
 		for (i = 0; i < 64; i += 2) {
-			writew(HASH_TABLE + i, ioaddr + RxFilterAddr);
-			writew((mc_filter[i+1]<<8) + mc_filter[i],
-				ioaddr + RxFilterData);
+			writel(HASH_TABLE + i, ioaddr + RxFilterAddr);
+			writel((mc_filter[i + 1] << 8) + mc_filter[i],
+			       ioaddr + RxFilterData);
 		}
 	}
 	writel(rx_mode, ioaddr + RxFilterAddr);