]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
netmap: fix two panics with emulated adapter
authorvmaffione <vmaffione@FreeBSD.org>
Mon, 1 Jul 2019 20:37:35 +0000 (20:37 +0000)
committervmaffione <vmaffione@FreeBSD.org>
Mon, 1 Jul 2019 20:37:35 +0000 (20:37 +0000)
commita75b0301abf7bc1530ce125ff33ae76a95c21d1b
tree5651c0c209c820745fc51df68fcbca73c18ac130
parent193c81a5d1858a5991afe03fc6978e673eb11455
netmap: fix two panics with emulated adapter

This patch fixes 2 panics. The first one is due to the current VNET not
being set in the emulated adapter transmission path. The second one
is caused by the M_PKTHDR flag not being set when preallocated mbufs
are recycled in the transmit path.

Submitted by: aleksandr.fedorov@itglobal.com
Reviewed by: vmaffione
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D20824
sys/dev/netmap/netmap_freebsd.c