Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F81969663
D17896.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
688 B
Referenced Files
None
Subscribers
None
D17896.diff
View Options
Index: head/sys/dev/netmap/netmap.c
===================================================================
--- head/sys/dev/netmap/netmap.c
+++ head/sys/dev/netmap/netmap.c
@@ -449,6 +449,7 @@
#include <machine/bus.h> /* bus_dmamap_* */
#include <sys/endian.h>
#include <sys/refcount.h>
+#include <net/ethernet.h> /* ETHER_BPF_MTAP */
#elif defined(linux)
@@ -3859,6 +3860,10 @@
RD(1, "%s drop mbuf that needs generic segmentation offload", na->name);
goto done;
}
+
+#ifdef __FreeBSD__
+ ETHER_BPF_MTAP(ifp, m);
+#endif /* __FreeBSD__ */
/* protect against netmap_rxsync_from_host(), netmap_sw_to_nic()
* and maybe other instances of netmap_transmit (the latter
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Dec 15, 8:02 AM (18 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
9091577
Default Alt Text
D17896.diff (688 B)
Attached To
Mode
D17896: netmap: netmap_transmit should honor bpf packet tap hook.
Attached
Detach File
Event Timeline
Log In to Comment