summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorVincenzo Maffione2016-01-25 19:24:35 +0100
committerJason Wang2016-02-04 07:13:11 +0100
commitab685220f64d170522c6647c71509fdb03920bd9 (patch)
tree063bd0c63ec5bfed085a6604a8d2cc15cb91e6be /include
parente1000: eliminate infinite loops on out-of-bounds transfer start (diff)
downloadqemu-ab685220f64d170522c6647c71509fdb03920bd9.tar.gz
qemu-ab685220f64d170522c6647c71509fdb03920bd9.tar.xz
qemu-ab685220f64d170522c6647c71509fdb03920bd9.zip
net: netmap: use nm_open() to open netmap ports
This patch simplifies the netmap backend code by means of the nm_open() helper function provided by netmap_user.h, which hides the details of open(), iotcl() and mmap() carried out on the netmap device. Moreover, the semantic of nm_open() makes it possible to open special netmap ports (e.g. pipes, monitors) and use special modes (e.g. host rings only, single queue mode, exclusive access). Signed-off-by: Vincenzo Maffione <v.maffione@gmail.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions