From owner-freebsd-hackers@freebsd.org Mon Apr 16 21:23:07 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 770ACFA6AA9 for ; Mon, 16 Apr 2018 21:23:07 +0000 (UTC) (envelope-from dieterbsd@gmail.com) Received: from mail-it0-x236.google.com (mail-it0-x236.google.com [IPv6:2607:f8b0:4001:c0b::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1913F866C6 for ; Mon, 16 Apr 2018 21:23:07 +0000 (UTC) (envelope-from dieterbsd@gmail.com) Received: by mail-it0-x236.google.com with SMTP id m134-v6so13304769itb.3 for ; Mon, 16 Apr 2018 14:23:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=l0v3YHIZp+rNakg6pKsDMcLEaCxnhoTYlHbLwlr1CSE=; b=uhLAUodKQAbaVaSM5IJXg5IB/NLlA/G2Pht0GqRI8lNTXrj9TqcEJ2Y6+WCiJLdo2K C1f5DrsvIEhkO1Hf8Cgy1k7m2FKMqn3WKECEE68iYcjVfeBXpp0mb221TI8NvPN6IkfY czo3iUtuvr9tgJjJTEwd05ihrZ/EDacMT4r+kvDCIdHfCnz6tuNz7Pj5xK8FnfzV4FbX R/zdo+rqquOYPor+NMN7aqZqpoKz2wUYd+NlzJSlC3lAaY2ZBWTiJKwwL4/c5H7CH/SU +bHz7uv6awa0De7sBt7XtUfpPdP7dn5IysoLb6Mbixogq9BanQw0ciXjavkJ0sIrxq1j 6HcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=l0v3YHIZp+rNakg6pKsDMcLEaCxnhoTYlHbLwlr1CSE=; b=detkZj405kwZ2vef98cwMLgFqrRCWvyjrlCK3BbpbAK19H7+1sI6MvOyZrohG7LYYF QFn7SIHIHIM3pHfKK3TpjeWoPJ1gCirNGp8OXPlqLdCdbSqAnC2VPK+oCBv++54iW0yv gYzF7XlvUqzFq+ETD6NtQcFC97Y4Tb+2GGoYRT1tynGvXGY2EE2Rm1UeaWGMqgHkhsjb b3SnO4ci5pvey7JGuHe2CoOnkm8Tb8K7tjErWYozV+c53dokw0toW8EsK0JmZSpOgjLk yTIYx63BGkXeg0WU5jGGaFg++pdwf9BTvY/wNNFTRKeCo+sl4bc4WsIDLGKLjEOcnv6f wR4w== X-Gm-Message-State: ALQs6tB1tpxSueSjy/ygngZ8zR21TllcEqY1XMDWKNYKt3e909ywqzxY HbtDg2Un8P9yg7E0cF2i1MdTm3kgPp70nuqO2HA= X-Google-Smtp-Source: AIpwx48cfIWT9T8vNn1CbVAXe6QGwG2ymrmk2vzWCNC+HGgjCMiINui+7xcQO7MmpS8TQ7MON1TkjCPF5fYzDV8hOEc= X-Received: by 2002:a24:19c9:: with SMTP id b192-v6mr16861067itb.1.1523913786343; Mon, 16 Apr 2018 14:23:06 -0700 (PDT) MIME-Version: 1.0 Received: by 10.192.242.173 with HTTP; Mon, 16 Apr 2018 14:23:05 -0700 (PDT) From: Dieter BSD Date: Mon, 16 Apr 2018 14:23:05 -0700 Message-ID: Subject: Re: Realtek re(4) driver To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset="UTF-8" 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: Mon, 16 Apr 2018 21:23:07 -0000 Built a kernel with Realtek's Ethernet driver. The 8111E & 8111F work, although initial testing using nc(1) is being a bit strange. 1st testing window: re0 I tried the same copy a 28 GB file using nc(1) and udp. The 1st & 3rd try gave the correct number of bytes, but the 2nd try was short. The other 2 ports (re1 re2) worked less well. 2nd testing window: re0 (8111F on Syba 2 port PCIe card [1]) 6 times 28 GB file using nc and udp 3 "plain" and 3 with -T reliability 1 "plain" copy worked correctly, the other 5 were short re1 (2nd 8111F port on PCIe card) all 5 attempts were short, 3 of 5 were very short: 28132560000 goal 27982918784 big_file_copied_via_udp_re1_0 27981835392 big_file_copied_via_udp_re1_1 587776 big_file_copied_via_udp_re1_2 608256 big_file_copied_via_udp_re1_3 606208 big_file_copied_via_udp_re1_Trel_0 re2 (8111E on UD5 mainboard) all 6 attempts were short 32452608 big_file_copied_via_udp_re2rt_0 3932160 big_file_copied_via_udp_re2rt_1 399364096 big_file_copied_via_udp_re2_Trel_0 5963776 big_file_copied_via_udp_re2_Trel_1 4159488 big_file_copied_via_udp_re2_Trel_2 4827136 big_file_copied_via_udp_re2_2 28132560000 goal One burst and then it fails: input re2 output packets errs idrops bytes packets errs bytes colls 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3840 0 0 4078080 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 For real world use, so far the Realtek driver is working at least as well as the stock FreeBSD 10.3 driver, probably better. But it does lose data with real world applications, (2 separate incidents so far) so it needs improvement. Some of the test results with nc(1) are kinda screwy. Maybe nc is the wrong tool, maybe I'm using it wrong, I don't know. Has anyone tried similar testing? Suggestions of knobs to turn, or other things to try? I need to receive data via UDP without dropping packets. Closed source sucks, but I'm stuck with it, and thus with UDP. [1] http://www.sybausa.com/index.php?route=product/product&manufacturer_id=11&product_id=130&page=25 $21.22