From: Vincenzo Maffione <v.maffione@gmail.com>
To: qemu-devel@nongnu.org
Cc: jasowang@redhat.com, rizzo@iet.unipi.it, g.lettieri@iet.unipi.it,
Vincenzo Maffione <v.maffione@gmail.com>
Subject: [Qemu-devel] [PATCH v2] net: netmap: implement virtio-net header probe
Date: Tue, 23 Feb 2016 09:46:58 +0100 [thread overview]
Message-ID: <cover.1456216469.git.v.maffione@gmail.com> (raw)
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
next reply other threads:[~2016-02-23 8:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-23 8:46 Vincenzo Maffione [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1456216469.git.v.maffione@gmail.com \
--to=v.maffione@gmail.com \
--cc=g.lettieri@iet.unipi.it \
--cc=jasowang@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=rizzo@iet.unipi.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.