svn commit: r328693 - user/markj/netdump/sys/dev/virtio/network
Mark Johnston
markj at FreeBSD.org
Thu Feb 1 17:16:17 UTC 2018
Author: markj
Date: Thu Feb 1 17:16:17 2018
New Revision: 328693
URL: https://svnweb.freebsd.org/changeset/base/328693
Log:
Fix vtnet tx header preallocation.
Modified:
user/markj/netdump/sys/dev/virtio/network/if_vtnet.c
Modified: user/markj/netdump/sys/dev/virtio/network/if_vtnet.c
==============================================================================
--- user/markj/netdump/sys/dev/virtio/network/if_vtnet.c Thu Feb 1 16:53:08 2018 (r328692)
+++ user/markj/netdump/sys/dev/virtio/network/if_vtnet.c Thu Feb 1 17:16:17 2018 (r328693)
@@ -4003,7 +4003,8 @@ vtnet_netdump_init(struct ifnet *ifp, int *nmbufp, int
* XXX add a separate zone like we do for mbufs? otherwise we may alloc
* buckets
*/
- uma_zone_reserve_kva(vtnet_tx_header_zone, NETDUMP_MAX_IN_FLIGHT * 2);
+ uma_zone_reserve(vtnet_tx_header_zone, NETDUMP_MAX_IN_FLIGHT * 2);
+ uma_prealloc(vtnet_tx_header_zone, NETDUMP_MAX_IN_FLIGHT * 2);
}
static void
More information about the svn-src-user
mailing list