Hi Atanas,
It looks like a link speed negotiation error.
can you set the link speed to 100MB/s and see what happens. I don't think it
is a driver or server hard ware issue but more and switch issue.
Have you tried another switch or hub
I use the same board in Servers and Gateways with FreeBSD and OpenBSD
without any issues.


> -----Original Message-----
> From: owner-m...@openbsd.org [mailto:owner-m...@openbsd.org] On Behalf Of
> Atanas Vladimirov
> Sent: 04 March 2016 17:04
> To: misc@openbsd.org
> Subject: Re: Supermicro AOC-SG-I2 (two ports Intel 82575EB) hwfeatures
> 
> On 27.02.2016 11:42, Atanas Vladimirov wrote:
> > Hi,
> > I'm running -current on Supermicro X9SCL-F with two on-board Gigabit
> > Intel (82579LM and 82574L) and one PCI-e 4x Supermicro AOC-SG-I2 [0]
> > (two ports Intel 82575EB).
> > The question is why 82575EB doesn't support hwfeatures
> > (CSUM_TCPv4,CSUM_UDPv4 and VLAN_HWTAGGING) as 82579LM and 82574L.
> > Thanks.
> > ......................................................................
> > [0] http://www.supermicro.com/products/accessories/addon/AOC-SG-I2.cfm
> 
> Hi,
> Before my previous email I had a strange issue but back then I didn't know
> that it was related to the NIC.
> I have a basic ifstated config [1] to monitor my WAN connection (first
port on
> AOC-SG-I2 was my uplink to my ISP).
> At some time ifstated sent me two emails - the link was DOWN and after 9
> (nine) seconds was back ON-Line.
> I had a few phone calls with my IPS and they checked the switch a few
times.
> I started to wonder if the problem was on my side. I plugged the second
port
> of AOC-SG-I2 to an tp-link wdr4900 which I use as 5 port gigabit switch
for my
> home LAN and began to observe two ports with a `while` loop:
> 
> [ns]~$ while true; do date; ifconfig emp[1-0] | grep -e "media:" -e
"status:";
> sleep 1; done > mon_if_em[1-0]
> 
> Both ports had 2-3 seconds disconnects at the same time (two different
> switches).
> Here's the question - Could this be a hardware related problem or it's a
> driver issue?
> Is anyone out there also using Intel 82575EB?
> 
> That's why I asked for hwfeatures in first email because that's the only
> difference I saw.
> Now I moved the NIC to another (test) server (dmesg and pcdump at the end
[2])
> to test the same way.
> 
> em(4) says:
> "The em driver supports IPv4 receive IP/TCP/UDP checksum offload and
>       transmit TCP/UDP checksum offload on all but 82542-based adapters,
VLAN
>       tag insertion and stripping, and jumbo frames on all but 82562V,
>       82566DC/82566DM and 82573E/82573L/82573V-based adapters."
> 
> ..................
> Tue Mar  1 15:52:43 EET 2016
>          media: Ethernet autoselect (1000baseT
> full-duplex,master,rxpause,txpause)
>          status: active
> Tue Mar  1 15:52:44 EET 2016
>          media: Ethernet autoselect (none)
>          status: no carrier
> Tue Mar  1 15:52:45 EET 2016
>          media: Ethernet autoselect (none)
>          status: no carrier
> Tue Mar  1 15:52:46 EET 2016
>          media: Ethernet autoselect (1000baseT
> full-duplex,master,rxpause,txpause)
>          status: active
> ..................
> Wed Mar  2 08:03:17 EET 2016
>          media: Ethernet autoselect (1000baseT
> full-duplex,master,rxpause,txpause)
>          status: active
> Wed Mar  2 08:03:18 EET 2016
>          media: Ethernet autoselect (none)
>          status: no carrier
> Wed Mar  2 08:03:19 EET 2016
>          media: Ethernet autoselect (none)
>          status: no carrier
> Wed Mar  2 08:03:21 EET 2016
>          media: Ethernet autoselect (1000baseT
> full-duplex,rxpause,txpause)
>          status: active
> ..................
> 
> [1] ================================================
> 
> [ns]~$ cat /etc/ifstated.conf
> # $OpenBSD: ifstated.conf,v 1.6 2005/02/07 06:08:10 david Exp $ # This is
a
> sample config for a pair of firewalls with two interfaces # init-state
auto
> peer_up = '( "ping -q -c 4 -i 3 -w 4 XX.87.YY.ZZ > /dev/null" every 20 )'
> em0_up = "em0.link.up"
> em0_down = "em0.link.down"
> 
> state auto {
>     if $em0_up {
>          set-state extif_up
>     }
>     if $em0_up && $peer_up {
>          set-state extif_online
>     }
>     if $em0_down {
>          set-state extif_down
>     }
> }
> 
> state extif_up {
>     init {
>          run "echo External interface UP @ `date +%H:%M:%S` | mail -s
> 'External Interface UP' vl...@bsdbg.net"
>     }
>     if $em0_down {
>          set-state extif_down
>     }
>     if $em0_up && $peer_up {
>          set-state extif_online
>     }
> }
> 
> state extif_online {
>     init {
>          run "echo External interface ON-line @ `date +%H:%M:%S` | mail -s
> 'External Interface ON-line' vl...@bsdbg.net"
>     }
>     if $em0_up && ! $peer_up {
>          set-state extif_up
>     }
>     if $em0_down {
>          set-state extif_down
>     }
> }
> 
> state extif_down {
>     init {
>          run "echo External interface DOWN @ `date +%H:%M:%S` | mail -s
> 'External Interface DOWN' vl...@bsdbg.net"
>     }
>     if $em0_up {
>          set-state extif_up
>     }
>     if $em0_up && $peer_up {
>          set-state extif_online
>     }
> }
> 
> [2] ================================================
> 
> # dmesg
> OpenBSD 5.9-current (GENERIC.MP) #1896: Fri Mar  4 00:36:21 MST 2016
>      dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> real mem = 4269342720 (4071MB)
> avail mem = 4135755776 (3944MB)
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 2.6 @ 0x9f000 (70 entries)
> bios0: vendor American Megatrends Inc. version "1.2a" date 06/27/2012
> bios0: Supermicro X8SIL
> acpi0 at bios0: rev 2
> acpi0: sleep states S0 S1 S4 S5
> acpi0: tables DSDT FACP APIC MCFG OEMB HPET GSCI SSDT EINJ BERT ERST HEST
> acpi0: wakeup devices P0P1(S4) P0P3(S4) P0P4(S4) P0P5(S4) P0P6(S4)
> BR1E(S4) PS2K(S4) PS2M(S4) USB0(S4) USB1(S4) USB2(S4) USB3
> (S4) USB4(S4) USB5(S4) USB6(S4) GBE_(S4) [...]
> acpitimer0 at acpi0: 3579545 Hz, 24 bits
> acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: Intel(R) Xeon(R) CPU X3430 @ 2.40GHz, 2400.31 MHz
> cpu0:
>
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLU
SH
> ,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,
> SSE3,DTES64,MWAIT,DS-
>
CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,LONG,LAHF,
PE
> RF,ITSC,SENSOR
> cpu0: 256KB 64b/line 8-way L2 cache
> cpu0: smt 0, core 0, package 0
> mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
> cpu0: apic clock running at 133MHz
> cpu0: mwait min=64, max=64, C-substates=0.2.1.1, IBE
> cpu1 at mainbus0: apid 2 (application processor)
> cpu1: Intel(R) Xeon(R) CPU X3430 @ 2.40GHz, 2399.99 MHz
> cpu1:
>
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLU
SH
> ,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,
> SSE3,DTES64,MWAIT,DS-
>
CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,LONG,LAHF,
PE
> RF,ITSC,SENSOR
> cpu1: 256KB 64b/line 8-way L2 cache
> cpu1: smt 0, core 1, package 0
> cpu2 at mainbus0: apid 4 (application processor)
> cpu2: Intel(R) Xeon(R) CPU X3430 @ 2.40GHz, 2399.99 MHz
> cpu2:
>
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLU
SH
> ,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,
> SSE3,DTES64,MWAIT,DS-
>
CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,LONG,LAHF,
PE
> RF,ITSC,SENSOR
> cpu2: 256KB 64b/line 8-way L2 cache
> cpu2: smt 0, core 2, package 0
> cpu3 at mainbus0: apid 6 (application processor)
> cpu3: Intel(R) Xeon(R) CPU X3430 @ 2.40GHz, 2399.99 MHz
> cpu3:
>
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLU
SH
> ,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,
> SSE3,DTES64,MWAIT,DS-
>
CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT,NXE,LONG,LAHF,
PE
> RF,ITSC,SENSOR
> cpu3: 256KB 64b/line 8-way L2 cache
> cpu3: smt 0, core 3, package 0
> ioapic0 at mainbus0: apid 7 pa 0xfec00000, version 20, 24 pins
> ioapic0: misconfigured as apic 1, remapped to apid 7
> acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255
> acpihpet0 at acpi0: 14318179 Hz
> acpiprt0 at acpi0: bus 0 (PCI0)
> acpiprt1 at acpi0: bus -1 (P0P1)
> acpiprt2 at acpi0: bus 1 (P0P3)
> acpiprt3 at acpi0: bus 2 (P0P5)
> acpiprt4 at acpi0: bus -1 (P0P6)
> acpiprt5 at acpi0: bus 6 (BR1E)
> acpiprt6 at acpi0: bus 3 (BR20)
> acpiprt7 at acpi0: bus 4 (BR24)
> acpiprt8 at acpi0: bus 5 (BR25)
> acpicpu0 at acpi0: !C3(350@17 mwait.1@0x20), !C2(500@17 mwait.1@0x10),
> C1(1000@1 mwait.1), PSS
> acpicpu1 at acpi0: !C3(350@17 mwait.1@0x20), !C2(500@17 mwait.1@0x10),
> C1(1000@1 mwait.1), PSS
> acpicpu2 at acpi0: !C3(350@17 mwait.1@0x20), !C2(500@17 mwait.1@0x10),
> C1(1000@1 mwait.1), PSS
> acpicpu3 at acpi0: !C3(350@17 mwait.1@0x20), !C2(500@17 mwait.1@0x10),
> C1(1000@1 mwait.1), PSS
> acpibtn0 at acpi0: SLPB
> acpibtn1 at acpi0: PWRB
> ipmi at mainbus0 not configured
> cpu0: Enhanced SpeedStep 2400 MHz: speeds: 2401, 2400, 2267, 2133, 2000,
1867,
> 1733, 1600, 1467, 1333, 1200 MHz
> pci0 at mainbus0 bus 0
> pchb0 at pci0 dev 0 function 0 "Intel Core DMI" rev 0x11
> ppb0 at pci0 dev 3 function 0 "Intel Core PCIE" rev 0x11: msi
> pci1 at ppb0 bus 1
> ppb1 at pci0 dev 5 function 0 "Intel Core PCIE" rev 0x11: msi
> pci2 at ppb1 bus 2
> em0 at pci2 dev 0 function 0 "Intel 82575EB" rev 0x02: msi, address
> 00:25:90:38:f4:a0
> em1 at pci2 dev 0 function 1 "Intel 82575EB" rev 0x02: msi, address
> 00:25:90:38:f4:a1
> "Intel Core Management" rev 0x11 at pci0 dev 8 function 0 not configured
> "Intel Core Scratch" rev 0x11 at pci0 dev 8 function 1 not configured
"Intel
> Core Control" rev 0x11 at pci0 dev 8 function 2 not configured "Intel Core
> Misc" rev 0x11 at pci0 dev 8 function 3 not configured "Intel Core QPI
Link"
> rev 0x11 at pci0 dev 16 function 0 not configured "Intel Core QPI Routing"
rev
> 0x11 at pci0 dev 16 function 1 not configured
> ehci0 at pci0 dev 26 function 0 "Intel 3400 USB" rev 0x05: apic 7 int 21
> usb0 at ehci0: USB revision 2.0
> uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
> ppb2 at pci0 dev 28 function 0 "Intel 3400 PCIE" rev 0x05: msi
> pci3 at ppb2 bus 3
> ppb3 at pci0 dev 28 function 4 "Intel 3400 PCIE" rev 0x05: msi
> pci4 at ppb3 bus 4
> em2 at pci4 dev 0 function 0 "Intel 82574L" rev 0x00: msi, address
> 00:25:90:60:ca:4e
> ppb4 at pci0 dev 28 function 5 "Intel 3400 PCIE" rev 0x05: msi
> pci5 at ppb4 bus 5
> em3 at pci5 dev 0 function 0 "Intel 82574L" rev 0x00: msi, address
> 00:25:90:60:ca:4f
> ehci1 at pci0 dev 29 function 0 "Intel 3400 USB" rev 0x05: apic 7 int 23
> usb1 at ehci1: USB revision 2.0
> uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1
> ppb5 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0xa5
> pci6 at ppb5 bus 6
> vga1 at pci6 dev 3 function 0 "Matrox MGA G200eW" rev 0x0a
> wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
> wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
> pcib0 at pci0 dev 31 function 0 "Intel 3420 LPC" rev 0x05
> pciide0 at pci0 dev 31 function 2 "Intel 3400 SATA" rev 0x05: DMA, channel
0
> configured to native-PCI, channel 1 configured to native-PCI
> pciide0: using apic 7 int 19 for native-PCI interrupt
> wd0 at pciide0 channel 0 drive 1: <SAMSUNG MZMPA016HMCD-000L1>
> wd0: 16-sector PIO, LBA48, 15272MB, 31277232 sectors
> wd0(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 6
> ichiic0 at pci0 dev 31 function 3 "Intel 3400 SMBus" rev 0x05: apic 7 int
18
> iic0 at ichiic0
> sdtemp0 at iic0 addr 0x18: cat34ts02
> sdtemp1 at iic0 addr 0x1a: cat34ts02
> spdmem0 at iic0 addr 0x50: 2GB DDR3 SDRAM ECC PC3-10600 with thermal
sensor
> spdmem1 at iic0 addr 0x52: 2GB DDR3 SDRAM ECC PC3-10600 with thermal
sensor
> pciide1 at pci0 dev 31 function 5 "Intel 3400 SATA" rev 0x05: DMA, channel
0
> wired to native-PCI, channel 1 wired to native-PCI
> pciide1: using apic 7 int 19 for native-PCI interrupt
> isa0 at pcib0
> isadma0 at isa0
> com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
> com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
> com2 at isa0 port 0x3e8/8 irq 5: ns16550a, 16 byte fifo
> pckbc0 at isa0 port 0x60/5 irq 1 irq 12
> pckbd0 at pckbc0 (kbd slot)
> wskbd0 at pckbd0: console keyboard, using wsdisplay0
> pcppi0 at isa0 port 0x61
> spkr0 at pcppi0
> wbsio0 at isa0 port 0x2e/2: W83627DHG rev 0x25
> wbsio0 port 0xa10/2 not configured
> uhub2 at uhub0 port 1 "Intel Rate Matching Hub" rev 2.00/0.00 addr 2
> uhidev0 at uhub2 port 2 configuration 1 interface 0 "Winbond Electronics
Corp
> Hermon USB hidmouse Device" rev 1.10/0.01 addr3
> uhidev0: iclass 3/1
> ums0 at uhidev0: 3 buttons, Z dir
> wsmouse0 at ums0 mux 0
> uhidev1 at uhub2 port 2 configuration 1 interface 1 "Winbond Electronics
Corp
> Hermon USB hidmouse Device" rev 1.10/0.01 addr3
> uhidev1: iclass 3/1
> ukbd0 at uhidev1: 8 variable keys, 6 key codes
> wskbd1 at ukbd0 mux 1
> wskbd1: connecting to wsdisplay0
> uhub3 at uhub1 port 1 "Intel Rate Matching Hub" rev 2.00/0.00 addr 2
> vscsi0 at root
> scsibus1 at vscsi0: 256 targets
> softraid0 at root
> scsibus2 at softraid0: 256 targets
> root on wd0a (fea442c7ee21fc1a.a) swap on wd0b dump on wd0b
> 
> # pcidump -v
> 
>   2:0:0: Intel 82575EB
>          0x0000: Vendor ID: 8086 Product ID: 10a7
>          0x0004: Command: 0007 Status: 0010
>          0x0008: Class: 02 Subclass: 00 Interface: 00 Revision: 02
>          0x000c: BIST: 00 Header Type: 80 Latency Timer: 00 Cache Line
> Size: 08
>          0x0010: BAR mem 32bit addr: 0xfb1e0000/0x00020000
>          0x0014: BAR mem 32bit addr: 0xfb200000/0x00200000
>          0x0018: BAR io addr: 0x0000cc00/0x0020
>          0x001c: BAR mem 32bit addr: 0xfb1dc000/0x00004000
>          0x0020: BAR empty (00000000)
>          0x0024: BAR empty (00000000)
>          0x0028: Cardbus CIS: 00000000
>          0x002c: Subsystem Vendor ID: 15d9 Product ID: 10a7
>          0x0030: Expansion ROM Base Address: 00000000
>          0x0038: 00000000
>          0x003c: Interrupt Pin: 01 Line: 0a Min Gnt: 00 Max Lat: 00
>          0x0040: Capability 0x01: Power Management
>                  State: D0
>          0x0050: Capability 0x05: Message Signaled Interrupts (MSI)
>          0x0060: Capability 0x11: Extended Message Signaled Interrupts
> (MSI-X)
>          0x00a0: Capability 0x10: PCI Express
>                  Link Speed: 2.5 / 2.5 GT/s Link Width: x4 / x4
>   2:0:1: Intel 82575EB
>          0x0000: Vendor ID: 8086 Product ID: 10a7
>          0x0004: Command: 0007 Status: 0010
>          0x0008: Class: 02 Subclass: 00 Interface: 00 Revision: 02
>          0x000c: BIST: 00 Header Type: 80 Latency Timer: 00 Cache Line
> Size: 08
>          0x0010: BAR mem 32bit addr: 0xfade0000/0x00020000
>          0x0014: BAR mem 32bit addr: 0xfae00000/0x00200000
>          0x0018: BAR io addr: 0x0000c880/0x0020
>          0x001c: BAR mem 32bit addr: 0xfaddc000/0x00004000
>          0x0020: BAR empty (00000000)
>          0x0024: BAR empty (00000000)
>          0x0028: Cardbus CIS: 00000000
>          0x002c: Subsystem Vendor ID: 15d9 Product ID: 10a7
>          0x0030: Expansion ROM Base Address: 00000000
>          0x0038: 00000000
>          0x003c: Interrupt Pin: 02 Line: 0b Min Gnt: 00 Max Lat: 00
>          0x0040: Capability 0x01: Power Management
>                  State: D0
>          0x0050: Capability 0x05: Message Signaled Interrupts (MSI)
>          0x0060: Capability 0x11: Extended Message Signaled Interrupts
> (MSI-X)
>          0x00a0: Capability 0x10: PCI Express
>                  Link Speed: 2.5 / 2.5 GT/s Link Width: x4 / x4

Reply via email to