From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:32887) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHWuc-0001Lt-AC for qemu-devel@nongnu.org; Fri, 08 Jan 2016 08:17:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aHWuZ-0006MH-0p for qemu-devel@nongnu.org; Fri, 08 Jan 2016 08:17:02 -0500 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]:36686) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHWuY-0006M8-PK for qemu-devel@nongnu.org; Fri, 08 Jan 2016 08:16:58 -0500 Received: by mail-wm0-x244.google.com with SMTP id l65so16062420wmf.3 for ; Fri, 08 Jan 2016 05:16:58 -0800 (PST) From: Vincenzo Maffione Date: Fri, 8 Jan 2016 14:15:15 +0100 Message-Id: Subject: [Qemu-devel] [PATCH 0/2] net: netmap: use nm_open() to open netmap port List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: g.lettieri@iet.unipi.it, rizzo@iet.unipi.it, jasowang@redhat.com, Vincenzo Maffione Current implementation of netmap backend still uses the low level netmap API to open, register and close netmap ports. However, the netmap_user.h header provides some helper functions that make these tasks easier, with the additional advantage of extended interface name semantic. As an example, the extended semantic allows to open a netmap pipe over a VALE port by specifying an interface name in the form "valeXX:YY{ZZ". Other suffixes are used for netmap monitors, exclusive access, and to specify special binding mode (e.g. single queue, RX-only, TX-only, etc.). Details can be found in the netmap man page and in the netmap API headers. Vincenzo Maffione (2): net: netmap: use nm_open() to open netmap ports net: netmap: avoid mmap() when ports use the same shared memory area net/netmap.c | 129 ++++++++++++++++++++++++++++++----------------------------- 1 file changed, 66 insertions(+), 63 deletions(-) -- 2.7.0