Bug 242159

Summary: [em] I219-V connection lost under load
Product: Base System Reporter: Julien Cigar <julien>
Component: kernAssignee: freebsd-net (Nobody) <net>
Status: Closed FIXED    
Severity: Affects Many People Keywords: IntelNetworking, iflib, regression
Priority: ---    
Version: 12.1-RELEASE   
Hardware: amd64   
OS: Any   
Attachments:
Description Flags
sysctl dev.em none

Description Julien Cigar 2019-11-22 19:53:48 UTC
Created attachment 209347 [details]
sysctl dev.em

Hello,

On my Lenovo X1 Carbon 6th Gen the network interface jumps constantly from DOWN to UP when there is some traffic. Sometimes it completely freeze and only a reboot solves the problem:

Nov 22 20:46:40 x1 kernel: em0: link state changed to DOWN
Nov 22 20:46:43 x1 kernel: em0: link state changed to UP
Nov 22 20:46:48 x1 dhclient[2805]: New IP Address (em0): 192.168.0.88
Nov 22 20:46:48 x1 dhclient[2806]: New Subnet Mask (em0): 255.255.255.0
Nov 22 20:46:48 x1 dhclient[2807]: New Broadcast Address (em0): 192.168.0.255
Nov 22 20:46:48 x1 dhclient[2808]: New Routers (em0): 192.168.0.254
Nov 22 20:46:49 x1 kernel: em0: link state changed to DOWN
Nov 22 20:46:52 x1 kernel: em0: link state changed to UP
Nov 22 20:47:00 x1 dhclient[2829]: New IP Address (em0): 192.168.0.88
Nov 22 20:47:00 x1 dhclient[2830]: New Subnet Mask (em0): 255.255.255.0
Nov 22 20:47:00 x1 dhclient[2831]: New Broadcast Address (em0): 192.168.0.255
Nov 22 20:47:00 x1 dhclient[2832]: New Routers (em0): 192.168.0.254
Nov 22 20:47:10 x1 kernel: em0: link state changed to DOWN
Nov 22 20:47:12 x1 kernel: em0: link state changed to UP
Nov 22 20:47:21 x1 dhclient[2856]: New IP Address (em0): 192.168.0.88
Nov 22 20:47:21 x1 dhclient[2857]: New Subnet Mask (em0): 255.255.255.0
Nov 22 20:47:21 x1 dhclient[2858]: New Broadcast Address (em0): 192.168.0.255
Nov 22 20:47:21 x1 dhclient[2859]: New Routers (em0): 192.168.0.254
(...)

This is with:

em0@pci0:0:31:6:        class=0x020000 card=0x225c17aa chip=0x15d88086 rev=0x21 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Ethernet Connection (4) I219-V'
    class      = network
    subclass   = ethernet

Nothing special in the config:

em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=81249b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LRO,WOL_MAGIC,VLAN_HWFILTER>
        ether 8c:16:45:ad:ef:df
        inet 192.168.0.88 netmask 0xffffff00 broadcast 192.168.0.255
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>

I tried with intel-em-kmod-7.7.5 and it works as expected, so I guess some IFLIB problem ..
Comment 1 Julien Cigar 2019-11-27 13:28:26 UTC
Strangely enough I would add that the problem doesn't occur on my work machine (Thinkpad P52s) with (almost) the same card:

em0@pci0:0:31:6:        class=0x020000 card=0x225a17aa chip=0x15d88086 rev=0x21 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Ethernet Connection (4) I219-V'
    class      = network
    subclass   = ethernet


(only difference is "card=0x225c17aa" vs "card=0x225a17aa")
Comment 2 Julien Cigar 2020-11-20 12:17:34 UTC
This problem doesn't occur anymore on 12.2 (and latest -pxx 12.1)