From owner-freebsd-net@FreeBSD.ORG Wed Aug 19 21:45:10 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 26198106568C for ; Wed, 19 Aug 2009 21:45:10 +0000 (UTC) (envelope-from alexpalias-bsdnet@yahoo.com) Received: from web56407.mail.re3.yahoo.com (web56407.mail.re3.yahoo.com [216.252.111.86]) by mx1.freebsd.org (Postfix) with SMTP id C898C8FC59 for ; Wed, 19 Aug 2009 21:45:09 +0000 (UTC) Received: (qmail 51704 invoked by uid 60001); 19 Aug 2009 21:45:09 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1250718308; bh=Nua4R20q0UxEM3PDI0NISXkM+5CDa6xlIoFP/sRTSfs=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=bXSGkahmqIG7wMO2uykSiSJwJafXDyc4QP4RYK7KYzVlkQd33q6/h87VTu4OuuglSV1H13b4Mgv3MDajEL2kwi57T67u2rgyktSIovYn7PVDUYWEZ1g7Rm3UDcZSVe58rbzvkWhgPh9qEFN/8ErPXB90/59a/53FquYrahcbS44= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=lbu9jQdT8SIvik078pJBuPkRW0ojLLcPe3lsJPcmS8NKNFh8S+XIk3bjyCvcctt0HzdHBnk8QRd5kgphW4BVTQrQoM1IAme/AuDMN5SLmo+gtEQZgPv5Da67sI6xRTi+0xkaZZhHd2sDWDE19MZ6VghoYVgg2c2uoAvsSvQnCU8=; Message-ID: <959379.51225.qm@web56407.mail.re3.yahoo.com> X-YMail-OSG: FY.gOZ4VM1nzxceTHyxPL1dxH1xcb_fDaaSI0ONWF4FYYC6tWFieSiQZTuYCFRiogY3Gg1Rvi_KbpZqqv6Sy66uoNPuUFyZ_qDa7.ESQn2yWVDNuKtmGufzEqvBlkVwAMY3KbXHXjUQwdcuwhCpMeHRoCnFe.Zsbq20Uh35DQP5L9jdpA1aw8f1zmC0Od2UGhh7.flFUv0rbxS8lz1RIa6Bu0Sr23GM0ugXmYT83LkwgxzQzn0FimjaDmEW.yfw3m4rYo_uSjahqYHMUJ_y8XLXserL31LmIjyklraf8ESe_CeiLxMLaiLEu8lgVWD15SfrkG9z21A-- Received: from [89.122.155.5] by web56407.mail.re3.yahoo.com via HTTP; Wed, 19 Aug 2009 14:45:08 PDT X-Mailer: YahooMailClassic/6.1.2 YahooMailWebService/0.7.338.1 Date: Wed, 19 Aug 2009 14:45:08 -0700 (PDT) From: alexpalias-bsdnet@yahoo.com To: "H.Fazaeli" In-Reply-To: <4A8C15B7.5090404@sepehrs.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-net@freebsd.org Subject: Re: em driver input errors X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: alexpalias-bsdnet@yahoo.com List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Aug 2009 21:45:10 -0000 --- On Wed, 8/19/09, H.Fazaeli wrote: > From: H.Fazaeli > Subject: Re: em driver input errors > To: alexpalias-bsdnet@yahoo.com > Cc: freebsd-net@freebsd.org > Date: Wednesday, August 19, 2009, 6:09 PM > Have you tries fixed speed/duplex? Hello. Flow control is already disabled in the switch, and now I have configured fixed speed and duplex both on the switch and the network card. # ifconfig em0 em0: flags=8843 metric 0 mtu 1500 options=9b ether 00:xx:xx:xx:xx:xx media: Ethernet 1000baseTX status: active I will let you know if this fixes the problem; however, I seem to remember that speed/duplex problems usually result in lots of collisions and CRC errors, but I get very little of those (no collisions in fact): # netstat -nI em0 Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll em0 1500 00:xx:xx:xx:xx:xx 10448059238 2746221 12382379424 0 0 Also: r# sysctl dev.em.0.stats=1 ; dmesg | tail -21 dev.em.0.stats: -1 -> -1 em0: Excessive collisions = 0 em0: Sequence errors = 0 em0: Defer count = 0 em0: Missed Packets = 2746217 em0: Receive No Buffers = 4996579 em0: Receive Length Errors = 0 em0: Receive errors = 2 em0: Crc errors = 2 em0: Alignment errors = 0 em0: Collision/Carrier extension errors = 0 em0: RX overruns = 1134 em0: watchdog timeouts = 0 em0: RX MSIX IRQ = 0 TX MSIX IRQ = 0 LINK MSIX IRQ = 0 em0: XON Rcvd = 0 em0: XON Xmtd = 0 em0: XOFF Rcvd = 0 em0: XOFF Xmtd = 0 em0: Good Packets Rcvd = 10443504721 em0: Good Packets Xmtd = 12377389802 em0: TSO Contexts Xmtd = 0 em0: TSO Contexts Failed = 0 This seems to suggest that the number of errors seen in ifconfig is linked to the "missed packets" statistic that's produced by the sysctl. Note that there are only 2 CRC errors and 2 other errors; I can't see anything that corresponds to the "Receive no buffers" figure; are those packets dropped by the NIC itself? Alex