]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
netmap: align if_ptnet guest driver to the upstream code (commit 0e15788)
authorvmaffione <vmaffione@FreeBSD.org>
Wed, 4 Apr 2018 21:31:12 +0000 (21:31 +0000)
committervmaffione <vmaffione@FreeBSD.org>
Wed, 4 Apr 2018 21:31:12 +0000 (21:31 +0000)
commit6dfc9aee0f1ed604b37027249cfcc36eefd58fe2
tree700f09ec117a37174173ded14796c503cc30a0ea
parentcf4f9e918175ccb28372f53a15cd5d725b7af788
netmap: align if_ptnet guest driver to the upstream code (commit 0e15788)

The change upgrades the driver to use the split Communication Status
Block (CSB) format. In this way the variables written by the guest
and read by the host are allocated in a different cacheline than
the variables written by the host and read by the guest; this is
needed to avoid cache thrashing.

Approved by: hrs (mentor)
sys/dev/netmap/if_ptnet.c
sys/dev/netmap/netmap_kern.h
sys/dev/netmap/netmap_pt.c
sys/net/netmap_virt.h