qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v2] net: netmap: implement virtio-net header probe


From: Vincenzo Maffione
Subject: [Qemu-devel] [PATCH v2] net: netmap: implement virtio-net header probe
Date: Tue, 23 Feb 2016 09:46:58 +0100

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]