From owner-freebsd-hackers@freebsd.org Tue Apr 24 08:35:57 2018 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5ABA7FC0131 for ; Tue, 24 Apr 2018 08:35:57 +0000 (UTC) (envelope-from joerg@bec.de) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id EA4BB816EC for ; Tue, 24 Apr 2018 08:35:56 +0000 (UTC) (envelope-from joerg@bec.de) Received: by mailman.ysv.freebsd.org (Postfix) id A8D6EFC012F; Tue, 24 Apr 2018 08:35:56 +0000 (UTC) Delivered-To: hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 96A91FC012E; Tue, 24 Apr 2018 08:35:56 +0000 (UTC) (envelope-from joerg@bec.de) Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 107B3816C4; Tue, 24 Apr 2018 08:35:55 +0000 (UTC) (envelope-from joerg@bec.de) X-Originating-IP: 87.153.207.125 Received: from britannica.bec.de (p5799CF7D.dip0.t-ipconnect.de [87.153.207.125]) (Authenticated sender: joerg@bec.de) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id E348960020; Tue, 24 Apr 2018 10:35:47 +0200 (CEST) Date: Tue, 24 Apr 2018 10:34:49 +0200 From: Joerg Sonnenberger To: freebsd-hackers@freebsd.org, hackers@freebsd.org Subject: Re: Realtek re(4) driver Message-ID: <20180424083449.GB11959@britannica.bec.de> Mail-Followup-To: freebsd-hackers@freebsd.org, hackers@freebsd.org References: <20180411121404.71a07fef@ernst.home> <8919d821-2200-a2aa-87c3-bcad16bc75fb@systella.fr> <20180411104533.GC1134@albert.catwhisker.org> <17a3825a-03f4-0760-8d4f-1ce28a48cfdd@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <17a3825a-03f4-0760-8d4f-1ce28a48cfdd@FreeBSD.org> User-Agent: Mutt/1.9.0 (2017-09-02) X-Spam-Level: X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Apr 2018 08:35:57 -0000 On Wed, Apr 11, 2018 at 12:51:09PM +0200, Alex Dupre wrote: > David Wolfskill wrote: > >> I use a diskless workstation. With re driver provided by FreeBSD kernel > >> (9/10/11.x), system randomly crashed because ethernet driver stalls (and > >> datarate is always less than 300mbps). With official realtek driver > >> (v194.01), system now runs as expected (with datarate up to 1 Gbps). > > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=166724 > > Anyone interested in taking the bounty or contributing to it? Perhaps > the FreeBSD Foundation should jump in? A starting point would be: (1) what hardware offload features are enabled (2) whether a specific direction is the problem (3) correlate traffic on both ends, i.e. what packets are dropped "on the wire" The most likely cause of any problem here is a missing workaround for a hardware bug or Realtek deciding that some specific tuning is necessary for certain chips. It is nearly impossible to fix this kind of bugs without having access to the hardware and a way to reproduce it. Comparing with a working driver might be possible, but it is extremely tideous. Joerg