Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144971557
D20824/new/.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
676 B
Referenced Files
None
Subscribers
None
D20824/new/.diff
View Options
Index: head/sys/dev/netmap/netmap_freebsd.c
===================================================================
--- head/sys/dev/netmap/netmap_freebsd.c
+++ head/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
Sun, Feb 15, 3:17 PM (7 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28745917
Default Alt Text
D20824/new/.diff (676 B)
Attached To
Mode
D20824: Fix netmap + vlan panics
Attached
Detach File
Event Timeline
Log In to Comment