Date: Tue, 11 Oct 2011 10:31:27 -0700 From: Kevin Oberman <kob6558@gmail.com> To: pyunyh@gmail.com Cc: Karim <fodillemlinkarim@gmail.com>, freebsd-net@freebsd.org Subject: Re: if_msk.c link negotiation / packet drops Message-ID: <CAN6yY1tWQZwdqgYdN3uBBdXiGQ2OFDMYbSjhEUeTimHjBnR9iA@mail.gmail.com> In-Reply-To: <20111011171029.GA5661@michelle.cdnetworks.com> References: <4E94637A.5090607@gmail.com> <20111011171029.GA5661@michelle.cdnetworks.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Oct 11, 2011 at 10:10 AM, YongHyeon PYUN <pyunyh@gmail.com> wrote: > On Tue, Oct 11, 2011 at 11:40:42AM -0400, Karim wrote: >> Hi List, >> >> Using a Marvell NIC plugged into a CISCO switch I see the >> auto-negotiation failing and even when forcing the device to full-duplex >> we sometimes see packet drops. >> >> Here is the device description from dmesg: >> >> mskc0: <Marvell Yukon 88E8053 Gigabit Ethernet> port 0xbe00-0xbeff mem >> 0xfdefc000-0xfdefffff irq 16 at device 0.0 on pci1 >> msk0: <Marvell Technology Group Ltd. Yukon EC Id 0xb6 Rev 0x02> on mskc0 >> msk0: Ethernet address: 00:03:2d:09:94:52 >> miibus0: <MII bus> on msk0 >> e1000phy0: <Marvell 88E1111 Gigabit PHY> PHY 0 on miibus0 >> e1000phy0: =A010baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, >> 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow >> mskc0: [ITHREAD] >> >> The switch its plugged in (Cisco) is configured for 100baseTX full-duple= x. >> >> ifconfig reports: >> >> msk0: >> flags=3D608843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,SATELLITE,LAN_NET> >> metric 0 mtu 1500 >> =A0 =A0 =A0 =A0 options=3D40018<VLAN_MTU,VLAN_HWTAGGING> > > The flags and options show that you're using very customized > driver, right? > >> =A0 =A0 =A0 =A0 ether 00:03:2d:09:94:52 >> =A0 =A0 =A0 =A0 inet 192.168.122.7 netmask 0xffffff00 broadcast 192.168.= 122.255 >> =A0 =A0 =A0 =A0 media: Ethernet autoselect (100baseTX <half-duplex>) > =A0 =A0 =A0 =A0 =A0^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > Resolved duplex is half so I guess it would be normal to see > dropped frames which may be triggered by collision. You have a duplex mis-match. If you are hard setting the remote end to full, the local end must also be configured o full. Auto-configuration of duplex requires that both ends run auto-config. When one end is set to not do auto-config, the other end SHOULD always set to half-duplex. This is part of 802.3 that is a carry-over from the days when hubs and coax dominated, so the default was declared to be half. Since so much hardware now exists with that default, changing it ill never happen. Either set your computer to full duplex or turn on auto-configuration on the Cisco. Very little hardware now in service fails to auto-config correctly, but the practice of lacking down the duplex setting became common in the early days of full-duplex when it was not yet a standard and many Ethernet chip-sets didn't play nice with others. Things would be much better if people would just stop hard-setting the duplex, but old, old habits and memes die hard. Also, contrary to common belief, collisions are NOT errors. They are a normal part of half-dulpex Ethernet operation and do NOT result in packets being dropped. Only "excessive collisions do and they ARE a real error and a clear indication that something is wrong. --=20 R. Kevin Oberman, Network Engineer E-mail: kob6558@gmail.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAN6yY1tWQZwdqgYdN3uBBdXiGQ2OFDMYbSjhEUeTimHjBnR9iA>