From nobody@FreeBSD.org  Mon Nov  4 04:40:56 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTP id 854E113F
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  4 Nov 2013 04:40:56 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 5B1EB274F
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  4 Nov 2013 04:40:56 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id rA44euUc010191
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 4 Nov 2013 04:40:56 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id rA44eut5010187;
	Mon, 4 Nov 2013 04:40:56 GMT
	(envelope-from nobody)
Message-Id: <201311040440.rA44eut5010187@oldred.freebsd.org>
Date: Mon, 4 Nov 2013 04:40:56 GMT
From: Claus Endres <claus@endresconsulting.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: re ethernet driver broken 
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         183647
>Category:       kern
>Synopsis:       [re] re ethernet driver broken
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    yongari
>State:          feedback
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 04 04:50:00 UTC 2013
>Closed-Date:    
>Last-Modified:  Mon Nov 04 08:19:49 UTC 2013
>Originator:     Claus Endres
>Release:        9.2-RELEASE
>Organization:
Endres Consulting Pty Ltd
>Environment:
FreeBSD io 9.2-RELEASE FreeBSD 9.2-RELEASE #0: Mon Nov  4 14:34:42 EST 2013     root@io:/usr/src/sys/i386/compile/GENERIC  i386
>Description:
The re Realtek ethernet driver is returning packets on receive that have their content replaced by all zeroes. All uni-cast packets are affected, multi-cast
seems to be received intact as verified using tcpdump.

This occurs both under i386 and amd64.

The driver supplied by Realtek as rtl_bsd_drv_v183.tgz and compiled following
their instructions works correctly.

Hardware is:

re0@pci0:3:0:0:	class=0x020000 card=0x20d91b0a chip=0x816810ec rev=0x07 hdr=0x00
    vendor     = 'Realtek Semiconductor Co., Ltd.'
    device     = 'RTL8111/8168B PCI Express Gigabit Ethernet controller'
    class      = network
    subclass   = ethernet

Startup messages describing CPU etc:
Nov  1 18:31:14 io kernel: CPU: Intel(R) Core(TM) i3-3120M CPU @ 2.50GHz (2494.38-MHz 686-class CPU)
Nov  1 18:31:14 io kernel: Origin = "GenuineIntel"  Id = 0x306a9  Family = 0x6  Model = 0x3a  Stepping = 9
Nov  1 18:31:14 io kernel: Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
Nov  1 18:31:14 io kernel: Features2=0x35bae3bf<SSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,TSCDLT,XSAVE,AVX,F16C>
Nov  1 18:31:14 io kernel: AMD Features=0x28100000<NX,RDTSCP,LM>
Nov  1 18:31:14 io kernel: AMD Features2=0x1<LAHF>
Nov  1 18:31:14 io kernel: TSC: P-state invariant, performance statistics
Nov  1 18:31:14 io kernel: real memory  = 4294967296 (4096 MB)
Nov  1 18:31:14 io kernel: avail memory = 3552583680 (3388 MB)
Nov  1 18:31:14 io kernel: Event timer "LAPIC" quality 600
Nov  1 18:31:14 io kernel: ACPI APIC Table: <MEDION MEDIONAG>
Nov  1 18:31:14 io kernel: FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
Nov  1 18:31:14 io kernel: FreeBSD/SMP: 1 package(s) x 2 core(s) x 2 SMT threads
Nov  1 18:31:14 io kernel: cpu0 (BSP): APIC ID:  0
Nov  1 18:31:14 io kernel: cpu1 (AP): APIC ID:  1
Nov  1 18:31:14 io kernel: cpu2 (AP): APIC ID:  2
Nov  1 18:31:14 io kernel: cpu3 (AP): APIC ID:  3
Nov  1 18:31:14 io kernel: ACPI Warning: FADT (revision 5) is longer than ACPI 2.0 version, truncating length 268 to 244 (20110527/tbfadt-320)
Nov  1 18:31:14 io kernel: ioapic0 <Version 2.0> irqs 0-23 on motherboard
Nov  1 18:31:14 io kernel: kbd1 at kbdmux0
Nov  1 18:31:14 io kernel: acpi0: <MEDION MEDIONAG> on motherboard


>How-To-Repeat:
load 9.2-release (i386 or amd64) using live-fs from DVD on system with Realtek adapter, configure interface and use tcpdump to view packets.
>Fix:
Install driver supplied by Realtek rtl_bsd_drv_v183.tgz as per included instructions.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-net 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon Nov 4 05:26:40 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=183647 
State-Changed-From-To: open->feedback 
State-Changed-By: yongari 
State-Changed-When: Mon Nov 4 08:19:08 UTC 2013 
State-Changed-Why:  
Show me dmesg(re(4) and rgephy(4) only) and ifconfig re0 output. 
Since you've said received frame contents are all zeros, post 
captured traffic. 
It seems you've already installed vendor's driver so use stock 
9.2-RELEASE live-cd to reproduce it. 


Responsible-Changed-From-To: freebsd-net->yongari 
Responsible-Changed-By: yongari 
Responsible-Changed-When: Mon Nov 4 08:19:08 UTC 2013 
Responsible-Changed-Why:  
Grab. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=183647 
>Unformatted:
