From: Sameeh Jubran <sameeh@daynix.com>
To: qemu-devel@nongnu.org, Jason Wang <jasowang@redhat.com>
Cc: Yan Vugenfirer <yan@daynix.com>
Subject: [Qemu-devel] [RFC 3/6] vhost-net: Expose vhost_net_get_fd
Date: Thu, 30 Aug 2018 17:27:05 +0300 [thread overview]
Message-ID: <20180830142708.14311-4-sameeh@daynix.com> (raw)
In-Reply-To: <20180830142708.14311-1-sameeh@daynix.com>
From: Sameeh Jubran <sjubran@redhat.com>
Signed-off-by: Sameeh Jubran <sjubran@redhat.com>
---
hw/net/vhost_net.c | 2 +-
include/hw/virtio/virtio-net.h | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/hw/net/vhost_net.c b/hw/net/vhost_net.c
index e037db63a3..c0bff725c9 100644
--- a/hw/net/vhost_net.c
+++ b/hw/net/vhost_net.c
@@ -129,7 +129,7 @@ uint64_t vhost_net_get_acked_features(VHostNetState *net)
return net->dev.acked_features;
}
-static int vhost_net_get_fd(NetClientState *backend)
+int vhost_net_get_fd(NetClientState *backend)
{
switch (backend->info->type) {
case NET_CLIENT_DRIVER_TAP:
diff --git a/include/hw/virtio/virtio-net.h b/include/hw/virtio/virtio-net.h
index 02484dc94c..a7b53edc96 100644
--- a/include/hw/virtio/virtio-net.h
+++ b/include/hw/virtio/virtio-net.h
@@ -107,4 +107,6 @@ typedef struct VirtIONet {
void virtio_net_set_netclient_name(VirtIONet *n, const char *name,
const char *type);
+int vhost_net_get_fd(NetClientState *backend);
+
#endif
--
2.13.6
next prev parent reply other threads:[~2018-08-30 14:43 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-30 14:27 [Qemu-devel] [RFC 0/6] Virtio-net: Support RSS Sameeh Jubran
2018-08-30 14:27 ` [Qemu-devel] [RFC 1/6] Add bpf support to qemu Sameeh Jubran
2018-09-03 11:59 ` Daniel P. Berrangé
2018-09-03 12:18 ` Sameeh Jubran
2018-09-03 12:24 ` Peter Maydell
2018-09-03 12:28 ` Sameeh Jubran
2018-09-03 12:29 ` Daniel P. Berrangé
2018-08-30 14:27 ` [Qemu-devel] [RFC 2/6] tap: Add support for bpf ioctls Sameeh Jubran
2018-08-30 15:21 ` Eric Blake
2018-09-03 11:34 ` Sameeh Jubran
2018-09-03 3:24 ` Jason Wang
2018-09-03 11:33 ` Sameeh Jubran
2018-08-30 14:27 ` Sameeh Jubran [this message]
2018-09-03 3:24 ` [Qemu-devel] [RFC 3/6] vhost-net: Expose vhost_net_get_fd Jason Wang
2018-09-03 11:56 ` Sameeh Jubran
2018-08-30 14:27 ` [Qemu-devel] [RFC 4/6] virtio-net: implement steering mode feature Sameeh Jubran
2018-09-03 3:34 ` Jason Wang
2018-09-03 12:51 ` Sameeh Jubran
2018-08-30 14:27 ` [Qemu-devel] [RFC 5/6] virtio-net: steering mode: Implement rss support Sameeh Jubran
2018-09-03 3:48 ` Jason Wang
2018-09-03 11:45 ` Sameeh Jubran
2018-08-30 14:27 ` [Qemu-devel] [RFC 6/6] virtio-net: rss: Add bpf filter Sameeh Jubran
2018-09-03 4:12 ` Jason Wang
2018-09-03 13:16 ` Sameeh Jubran
2018-09-04 3:03 ` Jason Wang
2018-09-03 11:54 ` Daniel P. Berrangé
2018-09-03 12:35 ` Sameeh Jubran
2018-09-03 12:49 ` Daniel P. Berrangé
2018-09-04 3:07 ` Jason Wang
2018-09-04 8:14 ` Daniel P. Berrangé
2018-09-06 5:26 ` Jason Wang
2018-10-04 13:30 ` Daniel P. Berrangé
2018-09-03 12:11 ` Daniel P. Berrangé
2018-09-04 20:11 ` Eric Blake
2018-09-03 4:15 ` [Qemu-devel] [RFC 0/6] Virtio-net: Support RSS Jason Wang
2018-09-03 9:52 ` Sameeh Jubran
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=20180830142708.14311-4-sameeh@daynix.com \
--to=sameeh@daynix.com \
--cc=jasowang@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=yan@daynix.com \
/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 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).