From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39350) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRdgE-0003cD-I3 for qemu-devel@nongnu.org; Fri, 05 Feb 2016 05:31:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aRdg9-0005jT-V2 for qemu-devel@nongnu.org; Fri, 05 Feb 2016 05:31:57 -0500 Received: from mail-wm0-x232.google.com ([2a00:1450:400c:c09::232]:34650) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRdg9-0005il-Nu for qemu-devel@nongnu.org; Fri, 05 Feb 2016 05:31:53 -0500 Received: by mail-wm0-x232.google.com with SMTP id 128so64480665wmz.1 for ; Fri, 05 Feb 2016 02:31:51 -0800 (PST) From: Vincenzo Maffione Date: Fri, 5 Feb 2016 11:30:02 +0100 Message-Id: Subject: [Qemu-devel] [PATCH] 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, ...). Vincenzo Maffione (1): net: netmap: probe netmap interface for virtio-net header net/netmap.c | 70 ++++++++++++++++++++++++++++++++++++++---------------------- 1 file changed, 44 insertions(+), 26 deletions(-) -- 2.7.0