Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 08 Dec 2025 10:33:47 +0000
From:      bugzilla-noreply@freebsd.org
To:        net@FreeBSD.org
Subject:   [Bug 291420] [epair] Bad UDP packet checksum with epair(4) and txcsum enabled
Message-ID:  <bug-291420-7501-3xQmqg84Md@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-291420-7501@https.bugs.freebsd.org/bugzilla/>
References:  <bug-291420-7501@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=291420

--- Comment #6 from Dmitry Lukhtionov <dmitryluhtionov@gmail.com> ---
(In reply to Michael Tuexen from comment #4)

On host machine
```
root@DL360_Gen9_m19:/home/mitya # sysctl sysctl dev.bge.1.forced_udpcsum=1
dev.bge.1.forced_udpcsum: 0 -> 1
root@DL360_Gen9_m19:/home/mitya # ifconfig bge1 down
root@DL360_Gen9_m19:/home/mitya # ifconfig bge1 up
root@DL360_Gen9_m19:/home/mitya # ifconfig bge1
bge1: flags=1008943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST,LOWER_UP>
metric 0 mtu 1500
       
options=c009b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,VLAN_HWTSO,LINKSTATE>
        ether c4:34:6b:b8:e4:39
        inet 193.34.20.5 netmask 0xfffffff0 broadcast 193.34.20.15
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
root@DL360_Gen9_m19:/home/mitya # ifconfig epair1a
epair1a: flags=1008943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST,LOWER_UP>
metric 0 mtu 1500
        options=20000b<RXCSUM,TXCSUM,VLAN_MTU,RXCSUM_IPV6>
        ether 02:ef:5d:1e:0d:0a
        groups: epair
        media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
        status: active
        nd6 options=9<PERFORMNUD,IFDISABLED>
```
Inside jail
```
root@mail:/ # ifconfig epair1b
epair1b: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric
0 mtu 1500
        options=20000b<RXCSUM,TXCSUM,VLAN_MTU,RXCSUM_IPV6>
        ether 02:ef:5d:1e:0d:0b
        inet 193.34.20.8 netmask 0xfffffff0 broadcast 193.34.20.15
        groups: epair
        media: Ethernet 10Gbase-T (10Gbase-T <full-duplex>)
        status: active
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
root@mail:/ # drill i.ua @193.34.20.4
;; ->>HEADER<<- opcode: QUERY, rcode: NOERROR, id: 12682
;; flags: qr rd ra ; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0 
;; QUESTION SECTION:
;; i.ua.        IN      A

;; ANSWER SECTION:
i.ua.   21      IN      A       104.18.2.81
i.ua.   21      IN      A       104.18.3.81

;; AUTHORITY SECTION:

;; ADDITIONAL SECTION:

;; Query time: 0 msec
;; SERVER: 193.34.20.4
;; WHEN: Mon Dec  8 12:32:25 2025
;; MSG SIZE  rcvd: 54
```

BUT
```
root@mail:/ # ping 193.34.20.5
PING 193.34.20.5 (193.34.20.5): 56 data bytes
^C
--- 193.34.20.5 ping statistics ---
4 packets transmitted, 0 packets received, 100.0% packet loss
root@mail:/ # ping 193.34.20.4
PING 193.34.20.4 (193.34.20.4): 56 data bytes
64 bytes from 193.34.20.4: icmp_seq=0 ttl=64 time=0.482 ms
64 bytes from 193.34.20.4: icmp_seq=1 ttl=64 time=0.283 ms
64 bytes from 193.34.20.4: icmp_seq=2 ttl=64 time=0.479 ms
64 bytes from 193.34.20.4: icmp_seq=3 ttl=64 time=0.323 ms
^C
--- 193.34.20.4 ping statistics ---
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.283/0.392/0.482/0.090 ms
```

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

help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-291420-7501-3xQmqg84Md>