From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43065) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aY8eA-0001c0-1d for qemu-devel@nongnu.org; Tue, 23 Feb 2016 03:48:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aY8e4-0000CE-OQ for qemu-devel@nongnu.org; Tue, 23 Feb 2016 03:48:41 -0500 Received: from mail-wm0-x232.google.com ([2a00:1450:400c:c09::232]:36933) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aY8e4-0000CA-G0 for qemu-devel@nongnu.org; Tue, 23 Feb 2016 03:48:36 -0500 Received: by mail-wm0-x232.google.com with SMTP id g62so199279697wme.0 for ; Tue, 23 Feb 2016 00:48:36 -0800 (PST) From: Vincenzo Maffione Date: Tue, 23 Feb 2016 09:46:58 +0100 Message-Id: Subject: [Qemu-devel] [PATCH v2] net: netmap: implement virtio-net header probe List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: jasowang@redhat.com, rizzo@iet.unipi.it, g.lettieri@iet.unipi.it, Vincenzo Maffione Current implementation for netmap backend does not really probe the netmap kernel module to know whether virtio-net header is supported for a specific netmap port. This is only correct for VALE ports, but it is not correct for hardware ports, pipes, etc. This patch properly implements the missing probe mechanism, fixing the implementation of the involved hooks (has_vnet_hdr, has_vnet_hdr_len, has_ufo, ...). CHANGELOG: - Removed err_report argument from netmap_do_set_vnet_hdr_len(), so that the caller decides when to report the error. - Error reporting on failure happens in netmap_set_vnet_hdr_len(). Vincenzo Maffione (1): net: netmap: probe netmap interface for virtio-net header net/netmap.c | 62 +++++++++++++++++++++++++++++++++++++++--------------------- 1 file changed, 40 insertions(+), 22 deletions(-) -- 2.7.1