Re: [Qemu-devel] [PATCH v2] net: netmap: use nm_open() to open netmap ports

2016-01-26 Thread Jason Wang
On 01/26/2016 02:24 AM, Vincenzo Maffione wrote: > 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()

[Qemu-devel] [PATCH v2] net: netmap: use nm_open() to open netmap ports

2016-01-25 Thread Vincenzo Maffione
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,