Bug 222979

Summary: [ixgbe] mac_stats.checksum_errs falsely incrementing?
Product: Base System Reporter: Anton <pnz.stalker>
Component: kernAssignee: Kevin Bowling <kbowling>
Status: Closed FIXED    
Severity: Affects Only Me CC: kbowling, piotr.pietruszewski
Priority: --- Keywords: IntelNetworking
Version: 11.1-RELEASE   
Hardware: amd64   
OS: Any   
Attachments:
Description Flags
sysctl statistic
none
netstat info none

Description Anton 2017-10-13 14:00:38 UTC
On server installed X520-DA2 adapter

Every time mac_stats.checksum_errs is increased.
But netstat -nI ix0 no show error's 

netstat -nI ix0
Name    Mtu Network       Address              Ipkts Ierrs Idrop    Opkts Oerrs  Coll
ix0    1500 <Link#5>      90:e2:ba:14:4d:04 17171149630   195     0 10214496959     0     0


flood ping from neighbor linux server not lost packet's
ping -c 10000 -i 0.0001  192.168.8.2
PING 192.168.8.2 (192.168.8.2) 56(84) bytes of data.
64 bytes from 192.168.8.2: icmp_seq=1 ttl=64 time=0.076 ms
64 bytes from 192.168.8.2: icmp_seq=2 ttl=64 time=0.067 ms
64 bytes from 192.168.8.2: icmp_seq=3 ttl=64 time=0.075 ms
64 bytes from 192.168.8.2: icmp_seq=4 ttl=64 time=0.105 ms
64 bytes from 192.168.8.2: icmp_seq=5 ttl=64 time=0.121 ms
64 bytes from 192.168.8.2: icmp_seq=6 ttl=64 time=0.084 ms
.....
 --- 192.168.8.2 ping statistics ---
10000 packets transmitted, 10000 received, 0% packet loss, time 1027ms
rtt min/avg/max/mdev = 0.034/0.070/0.282/0.021 ms, ipg/ewma 0.102/0.072 ms

AND

ping -c 10000 -i 0.0001  192.168.8.2 -s 1472
PING 192.168.8.2 (192.168.8.2) 1472(1500) bytes of data.
1480 bytes from 192.168.8.2: icmp_seq=1 ttl=64 time=0.113 ms
1480 bytes from 192.168.8.2: icmp_seq=2 ttl=64 time=0.189 ms
1480 bytes from 192.168.8.2: icmp_seq=3 ttl=64 time=0.119 ms
1480 bytes from 192.168.8.2: icmp_seq=4 ttl=64 time=0.317 ms

....

--- 192.168.8.2 ping statistics ---
10000 packets transmitted, 10000 received, 0% packet loss, time 2119ms
rtt min/avg/max/mdev = 0.071/0.181/0.567/0.057 ms, ipg/ewma 0.212/0.183 ms


# ifconfig -vvvvv ix0
ix0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=e000bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
        ether 90:e2:ba:14:4d:04
        hwaddr 90:e2:ba:14:4d:04
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: Ethernet autoselect (10Gbase-SR <full-duplex>)
        status: active
        plugged: SFP/SFP+/SFP28 10G Base-SR (LC)
        vendor: Intel Corp PN: FTLX8571D3BCV-IT SN: SC12690003 DATE: 2011-03-02
        module temperature: 34.69 C Voltage: 3.28 Volts
        RX: 0.58 mW (-2.36 dBm) TX: 0.63 mW (-2.00 dBm)

        SFF8472 DUMP (0xA0 0..127 range):
        03 04 07 10 00 00 01 00 00 00 00 06 67 02 14 C8 
        08 03 00 1E 49 6E 74 65 6C 20 43 6F 72 70 20 20 
        20 20 20 20 00 00 1B 21 46 54 4C 58 38 35 37 31 
        44 33 42 43 56 2D 49 54 41 20 20 20 05 1E 00 32 
        00 3A 00 00 53 43 31 32 36 39 30 30 30 33 20 20 
        20 20 20 20 31 31 30 33 30 32 20 20 68 FA 03 F1 
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
        00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Comment 1 Anton 2017-10-13 14:01:39 UTC
Created attachment 187132 [details]
sysctl statistic
Comment 2 Anton 2017-10-13 14:02:45 UTC
Created attachment 187133 [details]
netstat info
Comment 3 Anton 2017-10-14 10:26:39 UTC
yes
Comment 4 Piotr Pietruszewski 2017-12-21 11:32:19 UTC
(In reply to Anton from comment #0)
Is mac_stats.checksum_errs counter increasing while receiving ICMP packets or with other specific type of traffic?
Comment 5 Anton 2017-12-21 11:41:57 UTC
it increasing  on any traffic at random time.
Comment 6 Kevin Bowling freebsd_committer freebsd_triage 2023-08-13 16:07:09 UTC
Fixed in 8de48df35c3bf4800176b7aa54c75a01864d458b