diff options
| author | Kristof Provost <kp@FreeBSD.org> | 2026-07-06 09:16:41 +0000 |
|---|---|---|
| committer | Kristof Provost <kp@FreeBSD.org> | 2026-07-08 07:23:17 +0000 |
| commit | c38abd64dbc18ec10a4f80e74ae4a304c075aa5c (patch) | |
| tree | 3960681146e26dfa0c2d9fe2c01eb33f4211d0c6 /sys | |
| parent | 2039fe8ea421a93c466657485ba83b4b055f81dd (diff) | |
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/net/if_epair.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/net/if_epair.c b/sys/net/if_epair.c index 60849ca1d4f2..5addd43b6190 100644 --- a/sys/net/if_epair.c +++ b/sys/net/if_epair.c @@ -351,6 +351,10 @@ epair_transmit(struct ifnet *ifp, struct mbuf *m) return (E2BIG); } + if ((ifp->if_capenable & IFCAP_MEXTPG) == 0) { + M_ASSERTMAPPED(m); + } + /* * We are not going to use the interface en/dequeue mechanism * on the TX side. We are called from ether_output_frame() @@ -632,7 +636,8 @@ epair_setup_ifp(struct epair_softc *sc, char *name, int unit) ifp->if_capabilities = IFCAP_VLAN_MTU | IFCAP_VLAN_HWTAGGING | IFCAP_TXCSUM | IFCAP_RXCSUM | - IFCAP_TXCSUM_IPV6 | IFCAP_RXCSUM_IPV6; + IFCAP_TXCSUM_IPV6 | IFCAP_RXCSUM_IPV6 | + IFCAP_MEXTPG; ifp->if_capenable = ifp->if_capabilities; epair_caps_changed(ifp); ifp->if_transmit = epair_transmit; |
