Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F163378218
D20824.id59258.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
661 B
Referenced Files
None
Subscribers
None
D20824.id59258.diff
View Options
Index: sys/dev/netmap/netmap_freebsd.c
===================================================================
--- sys/dev/netmap/netmap_freebsd.c
+++ sys/dev/netmap/netmap_freebsd.c
@@ -444,6 +444,7 @@
m->m_ext.ext_size = len;
#endif /* __FreeBSD_version >= 1100000 */
+ m->m_flags |= M_PKTHDR;
m->m_len = m->m_pkthdr.len = len;
/* mbuf refcnt is not contended, no need to use atomic
@@ -452,7 +453,9 @@
M_HASHTYPE_SET(m, M_HASHTYPE_OPAQUE);
m->m_pkthdr.flowid = a->ring_nr;
m->m_pkthdr.rcvif = ifp; /* used for tx notification */
+ CURVNET_SET(ifp->if_vnet);
ret = NA(ifp)->if_transmit(ifp, m);
+ CURVNET_RESTORE();
return ret ? -1 : 0;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jul 23, 4:20 PM (6 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35407817
Default Alt Text
D20824.id59258.diff (661 B)
Attached To
Mode
D20824: Fix netmap + vlan panics
Attached
Detach File
Event Timeline
Log In to Comment