problem with sparc64 networking/qfe port config.
Pyun YongHyeon
yongari at rndsoft.co.kr
Wed Mar 30 02:01:01 PST 2005
On Tue, Mar 29, 2005 at 01:05:20PM -0500, jacques brierre wrote:
> Hi all,
>
> I am having some problems and am not sure if I understand what's going on.
> Had network configuration problem with 5.3 release on Sparc Ultra 2. It has
> on-board hme, and qfe card. Was not able to use qfe ports... kept getting
> ipv6 duplicate address errors (i only use ipv4, mind you).
>
> I just installed (from scratch) 5.4 release. and i seem to have the same
> problem, only this time it starts when i config the first hme network port.
>
> Any ideas?
> I'd really like to be able to use the other (qfe) network ports.
>
> Any ideas appreciated.
>
> thanks.
> -jacques brierre.
>
>
> sphynx# uname -a
> FreeBSD sphynx.homeunix.net 5.4-BETA1 FreeBSD 5.4-BETA1 #0: Fri Mar 18
> 20:22:13
> UTC 2005 root at binkley.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC
> sparc64
> sphynx#
>
>
> I am NOT using ipv6 and there is my problem again!
>
> # ifconfig hme0 inet 172.16.1.110 netmask 255.255.255.0 up
> # ifMar 28 23:37:56 kernel: hme0: DAD detected duplicate IPv6 address
> fe80:0001::0a00:20ff:fe85:7364: NS in/out=1/1, NA in=0
> Mar 28 23:37:56 kernel: hme0: DAD complete for
> fe80:0001::0a00:20ff:fe85:7364 -
> duplicate found
> Mar 28 23:37:56 kernel: hme0: manual intervention required
>
> # ifconfig -a
> hme0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
> options=b<RXCSUM,TXCSUM,VLAN_MTU>
> inet6 fe80::a00:20ff:fe85:7364%hme0 prefixlen 64 duplicated
> scopeid 0x1
> inet 172.16.1.110 netmask 0xffffff00 broadcast 172.16.1.255
> ether 08:00:20:85:73:64
> media: Ethernet autoselect (10baseT/UTP)
^^^^^^^^^^^^^
According to NetBSD's source, it seems HME is "SIMPLEX" if used
in full-duplex mode. But I can't sure it affects both 10Mbps and
100Mbps mode.
How about attached patch(not tested, borrowed from NetBSD)?
> status: active
PS: Due to real life thing I have little time to test/experiment
/commit this one. It would be great if any committers can hanle
this.
--
Regards,
Pyun YongHyeon
http://www.kr.freebsd.org/~yongari | yongari at freebsd.org
-------------- next part --------------
--- if_hme.c.orig Wed Mar 23 06:51:58 2005
+++ if_hme.c Wed Mar 30 14:47:46 2005
@@ -1496,10 +1496,13 @@
HME_UNLOCK(sc);
return;
}
- if ((IFM_OPTIONS(sc->sc_mii->mii_media_active) & IFM_FDX) != 0)
+ if ((IFM_OPTIONS(sc->sc_mii->mii_media_active) & IFM_FDX) != 0) {
v |= HME_MAC_TXCFG_FULLDPLX;
- else
+ sc->sc_arpcom.ac_if.if_flags |= IFF_SIMPLEX;
+ } else {
v &= ~HME_MAC_TXCFG_FULLDPLX;
+ sc->sc_arpcom.ac_if.if_flags &= ~IFF_SIMPLEX;
+ }
HME_MAC_WRITE_4(sc, HME_MACI_TXCFG, v);
if (!hme_mac_bitflip(sc, HME_MACI_TXCFG, v, 0, HME_MAC_TXCFG_ENABLE)) {
HME_UNLOCK(sc);
More information about the freebsd-sparc64
mailing list