Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142068010
D34787.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
894 B
Referenced Files
None
Subscribers
None
D34787.diff
View Options
diff --git a/sys/dev/virtio/network/if_vtnet.c b/sys/dev/virtio/network/if_vtnet.c
--- a/sys/dev/virtio/network/if_vtnet.c
+++ b/sys/dev/virtio/network/if_vtnet.c
@@ -4404,8 +4404,27 @@
}
static void
-vtnet_debugnet_event(struct ifnet *ifp __unused, enum debugnet_ev event __unused)
+vtnet_debugnet_event(struct ifnet *ifp, enum debugnet_ev event)
{
+ struct vtnet_softc *sc;
+ static bool sw_lro_enabled = false;
+
+ /*
+ * Disable software LRO, since it would require entering the network
+ * epoch when calling vtnet_txq_eof() in vtnet_debugnet_poll().
+ */
+ sc = if_getsoftc(ifp);
+ switch (event) {
+ case DEBUGNET_START:
+ sw_lro_enabled = (sc->vtnet_flags & VTNET_FLAG_SW_LRO) != 0;
+ if (sw_lro_enabled)
+ sc->vtnet_flags &= ~VTNET_FLAG_SW_LRO;
+ break;
+ case DEBUGNET_END:
+ if (sw_lro_enabled)
+ sc->vtnet_flags |= VTNET_FLAG_SW_LRO;
+ break;
+ }
}
static int
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 16, 5:32 PM (2 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27664027
Default Alt Text
D34787.diff (894 B)
Attached To
Mode
D34787: Improve dumping a kernel using the vtnet interface
Attached
Detach File
Event Timeline
Log In to Comment