View | Details | Raw Unified | Return to bug 242023 | Differences between
and this patch

Collapse All | Expand All

(-)b/usr.sbin/bhyve/pci_virtio_net.c (+7 lines)
Lines 268-274 pci_vtnet_rx(struct pci_vtnet_softc *sc) Link Here
268
			struct virtio_net_rxhdr *hdr = iov[0].iov_base;
268
			struct virtio_net_rxhdr *hdr = iov[0].iov_base;
269
			uint32_t iolen;
269
			uint32_t iolen;
270
			int i = 0;
270
			int i = 0;
271
			int j;
271
272
273
			if (iov[0].iov_len < sizeof(*hdr)) {
274
				for (j = 0; j < n_chains; j++) {
275
					printf("frag #%d: len %lu\n\r",
276
					    j, (long unsigned int)iov[j].iov_len);
277
				}
278
			}
272
			assert(iov[0].iov_len >= sizeof(*hdr));
279
			assert(iov[0].iov_len >= sizeof(*hdr));
273
280
274
			do {
281
			do {

Return to bug 242023