Date: Wed, 30 Mar 2005 19:00:42 +0900 From: Pyun YongHyeon <yongari@rndsoft.co.kr> To: jacques brierre <jbrierre@bellsouth.net> Cc: freebsd-sparc64@freebsd.org Subject: Re: problem with sparc64 networking/qfe port config. Message-ID: <20050330100042.GF1771@michelle.rndsoft.co.kr> In-Reply-To: <424998E0.5030605@bellsouth.net> References: <424998E0.5030605@bellsouth.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--gBBFr7Ir9EOA20Yy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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@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@freebsd.org --gBBFr7Ir9EOA20Yy Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="if_hme.simplex.patch" --- 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); --gBBFr7Ir9EOA20Yy--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050330100042.GF1771>