Exactly! This is a really really nice card and I don’t get why OpenBSD doesn’t support the offloading features just as you’ve shown for bge and re0. Definitely awaiting a response from the devs on this.

--
Adonis

On Jul 18, 2018, at 4:34 AM, LÉVAI Dániel <[email protected]> wrote:

LÉVAI Dániel @ 2018-07-18T09:20:15 +0200:
Adonis Peralta @ 2018-07-18T03:47:43 +0200:
Hi,

[...]
ifconfig on my lan port shows:

```
em2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        hwfeatures=10<VLAN_MTU> hardmtu 9216
        lladdr 00:19:99:d7:88:a3
        index 3 priority 0 llprio 3
media: Ethernet autoselect (1000baseT full-duplex,rxpause,txpause)
        status: active
        inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255
```
[...]
# ifconfig em0 hwfeatures
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        hwfeatures=10<VLAN_MTU> hardmtu 9216
[...]

Maybe this is the culprit?

/usr/src/sys/dev/pci/if_em.c:
1893 if (sc->hw.mac_type >= em_82543 && sc->hw.mac_type != em_82575 && 1894 sc->hw.mac_type != em_82580 && sc->hw.mac_type != em_i210 &&
1895             sc->hw.mac_type != em_i350)
1896 ifp->if_capabilities |= IFCAP_CSUM_TCPv4 | IFCAP_CSUM_UDPv4;

It seems as if I350 (among a few other) has an exception for these
features. Maybe it was not tested well enough, or actually it was, and
was failing in this department.
Maybe a developer can add some insight, if this catches their eyes :)


Daniel

--
LÉVAI Dániel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F

Reply via email to