Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/netmap/netmap.c
Show First 20 Lines • Show All 3,650 Lines • ▼ Show 20 Lines | if (!netmap_generic_hwcsum) { | ||||
} | } | ||||
} | } | ||||
if (nm_os_mbuf_has_seg_offld(m)) { | if (nm_os_mbuf_has_seg_offld(m)) { | ||||
RD(1, "%s drop mbuf that needs generic segmentation offload", na->name); | RD(1, "%s drop mbuf that needs generic segmentation offload", na->name); | ||||
goto done; | goto done; | ||||
} | } | ||||
#ifdef __FreeBSD__ | |||||
vmaffione: Please make this compile-time conditional
```
#ifdef __FreeBSD__
```
| |||||
ETHER_BPF_MTAP(ifp, m); | ETHER_BPF_MTAP(ifp, m); | ||||
#endif | |||||
/* protect against netmap_rxsync_from_host(), netmap_sw_to_nic() | /* protect against netmap_rxsync_from_host(), netmap_sw_to_nic() | ||||
* and maybe other instances of netmap_transmit (the latter | * and maybe other instances of netmap_transmit (the latter | ||||
* not possible on Linux). | * not possible on Linux). | ||||
* We enqueue the mbuf only if we are sure there is going to be | * We enqueue the mbuf only if we are sure there is going to be | ||||
* enough room in the host RX ring, otherwise we drop it. | * enough room in the host RX ring, otherwise we drop it. | ||||
*/ | */ | ||||
mbq_lock(q); | mbq_lock(q); | ||||
▲ Show 20 Lines • Show All 295 Lines • Show Last 20 Lines |
Please make this compile-time conditional