[Bug 258757] [ix] network driver is loosing packets

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 28 Sep 2021 09:17:36 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258757

            Bug ID: 258757
           Summary: [ix] network driver is loosing packets
           Product: Base System
           Version: 12.2-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: vdruginin@gmail.com

The ix network driver is loosing packets.

I ping from host 192.168.205.98 to host 10.0.2.92 trhough freebsd gateway.

This is destination host interface:

dvg@gw:/usr/local/etc# tcpdump -ni vlan7 host 10.0.2.92
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on vlan7, link-type EN10MB (Ethernet), capture size 262144 bytes
10:33:20.881990 IP 192.168.205.98 > 10.0.2.92: ICMP echo request, id 10, seq 1,
length 64
10:33:20.882201 IP 10.0.2.92 > 192.168.205.98: ICMP echo reply, id 10, seq 1,
length 64
10:33:21.890452 IP 192.168.205.98 > 10.0.2.92: ICMP echo request, id 10, seq 2,
length 64
10:33:21.890656 IP 10.0.2.92 > 192.168.205.98: ICMP echo reply, id 10, seq 2,
length 64
10:33:22.914468 IP 192.168.205.98 > 10.0.2.92: ICMP echo request, id 10, seq 3,
length 64
10:33:22.914684 IP 10.0.2.92 > 192.168.205.98: ICMP echo reply, id 10, seq 3,
length 64
10:33:23.938468 IP 192.168.205.98 > 10.0.2.92: ICMP echo request, id 10, seq 4,
length 64
10:33:23.938688 IP 10.0.2.92 > 192.168.205.98: ICMP echo reply, id 10, seq 4,
length 64

As we can see the replies are in the place.

The source interface:
dvg@gw:/usr/local/etc# tcpdump -ni vlan205 host 10.0.2.92
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on vlan205, link-type EN10MB (Ethernet), capture size 262144 bytes
10:34:33.570316 IP 192.168.205.98 > 10.0.2.92: ICMP echo request, id 10, seq
72, length 64
10:34:34.594365 IP 192.168.205.98 > 10.0.2.92: ICMP echo request, id 10, seq
73, length 64
10:34:35.618334 IP 192.168.205.98 > 10.0.2.92: ICMP echo request, id 10, seq
74, length 64
10:34:36.642349 IP 192.168.205.98 > 10.0.2.92: ICMP echo request, id 10, seq
75, length 64
^C

As we can see the replies are lost. All firewalls are disabled.

The problem has gone when I swithed to 1G igb interfaces on the gateway.

Some additional info:

# uname -a
FreeBSD gw.tjc.ru 12.2-RELEASE-p7 FreeBSD 12.2-RELEASE-p7 GENERIC  amd64

All vlans on top of lagg0 LACP interface which consists from two ix interfaces.

# ifconfig ix0
ix0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
       
options=e53fbb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,WOL_UCAST,WOL_MCAST,WOL_MAGIC,VLAN_HWFILTER,VLAN_HWTSO,RXCSUM_IPV6,TXCSUM_IPV6>
        ether f8:f2:1e:b1:2d:84
        media: Ethernet autoselect
        status: no carrier
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>

# ifconfig ix1
ix1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
       
options=e53fbb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,WOL_UCAST,WOL_MCAST,WOL_MAGIC,VLAN_HWFILTER,VLAN_HWTSO,RXCSUM_IPV6,TXCSUM_IPV6>
        ether f8:f2:1e:b1:2d:85
        media: Ethernet autoselect
        status: no carrier
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>


ix0@pci0:3:0:0: class=0x020000 card=0x00038086 chip=0x10fb8086 rev=0x01
hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82599ES 10-Gigabit SFI/SFP+ Network Connection'
    class      = network
    subclass   = ethernet
ix1@pci0:3:0:1: class=0x020000 card=0x00038086 chip=0x10fb8086 rev=0x01
hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82599ES 10-Gigabit SFI/SFP+ Network Connection'
    class      = network
    subclass   = ethernet

-- 
You are receiving this mail because:
You are the assignee for the bug.