qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2] net: netmap: implement virtio-net header probe
@ 2016-02-23  8:46 Vincenzo Maffione
  2016-02-23  8:46 ` [Qemu-devel] [PATCH v2] net: netmap: probe netmap interface for virtio-net header Vincenzo Maffione
  0 siblings, 1 reply; 4+ messages in thread
From: Vincenzo Maffione @ 2016-02-23  8:46 UTC (permalink / raw)
  To: qemu-devel; +Cc: jasowang, rizzo, g.lettieri, 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-02-24  9:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-23  8:46 [Qemu-devel] [PATCH v2] net: netmap: implement virtio-net header probe Vincenzo Maffione
2016-02-23  8:46 ` [Qemu-devel] [PATCH v2] net: netmap: probe netmap interface for virtio-net header Vincenzo Maffione
2016-02-24  8:21   ` Jason Wang
2016-02-24  9:58     ` Vincenzo Maffione

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).