All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takuya ASADA <syuu-RmZWMc9puTNJc61us3aD9laTQe2KTcn/@public.gmane.org>
To: dev-VfR2kkLFssw@public.gmane.org
Subject: [RFC PATCHv2 6/8] virtio: enable MSI-X on OSv
Date: Sat, 21 Mar 2015 12:23:03 +0900	[thread overview]
Message-ID: <1426908185-27940-7-git-send-email-syuu@cloudius-systems.com> (raw)
In-Reply-To: <1426908185-27940-1-git-send-email-syuu-RmZWMc9puTNJc61us3aD9laTQe2KTcn/@public.gmane.org>

Add support OSv EAL.

Signed-off-by: Takuya ASADA <syuu-RmZWMc9puTNJc61us3aD9laTQe2KTcn/@public.gmane.org>
---
 lib/librte_pmd_virtio/virtio_ethdev.c | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/lib/librte_pmd_virtio/virtio_ethdev.c b/lib/librte_pmd_virtio/virtio_ethdev.c
index 603be2d..fed65f3 100644
--- a/lib/librte_pmd_virtio/virtio_ethdev.c
+++ b/lib/librte_pmd_virtio/virtio_ethdev.c
@@ -1055,7 +1055,20 @@ static int virtio_resource_init(struct rte_pci_device *pci_dev)
 		return virtio_resource_init_by_ioports(pci_dev);
 }
 
-#else
+#elif defined(RTE_EXEC_ENV_OSVAPP)
+static int
+virtio_has_msix(const struct rte_pci_addr *loc __rte_unused)
+{
+	/* TODO: ask to OSv this NIC has MSI-X */
+	return 1;
+}
+
+static int virtio_resource_init(struct rte_pci_device *pci_dev __rte_unused)
+{
+	/* no setup required */
+	return 0;
+}
+#else /* BSD */
 static int
 virtio_has_msix(const struct rte_pci_addr *loc __rte_unused)
 {
-- 
2.1.0

  parent reply	other threads:[~2015-03-21  3:23 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-12 21:05 [RFC PATCH 0/7] add OSv support Takuya ASADA
     [not found] ` <1426194348-4406-1-git-send-email-syuu-RmZWMc9puTNJc61us3aD9laTQe2KTcn/@public.gmane.org>
2015-03-12 21:05   ` [RFC PATCH 1/7] mk: support compiling C++ code Takuya ASADA
2015-03-12 21:05   ` [RFC PATCH 2/7] eal: Add extern C on eal_hugepages.h Takuya ASADA
2015-03-12 21:05   ` [RFC PATCH 3/7] eal: Add extern C on eal_thread.h Takuya ASADA
2015-03-12 21:05   ` [RFC PATCH 4/7] eal: Add extern C on eal_private.h Takuya ASADA
2015-03-12 21:05   ` [RFC PATCH 5/7] add OSv support Takuya ASADA
     [not found]     ` <1426194348-4406-6-git-send-email-syuu-RmZWMc9puTNJc61us3aD9laTQe2KTcn/@public.gmane.org>
2015-03-15 12:01       ` Neil Horman
     [not found]         ` <20150315120122.GA6662-0o1r3XBGOEbbgkc5XkKeNuvMHUBZFtU3YPYVAmT7z5s@public.gmane.org>
2015-03-16 20:21           ` Stephen Hemminger
2015-03-16 22:42             ` Neil Horman
     [not found]               ` <20150316224259.GA28909-0o1r3XBGOEbbgkc5XkKeNuvMHUBZFtU3YPYVAmT7z5s@public.gmane.org>
2015-03-21  3:23                 ` Takuya ASADA
2015-03-12 21:05   ` [RFC PATCH 6/7] virtio: enable MSI-X on OSv Takuya ASADA
2015-03-12 21:05   ` [RFC PATCH 7/7] app/test: support OSv Takuya ASADA
2015-03-13 10:00   ` [RFC PATCH 0/7] add OSv support Bruce Richardson
2015-03-13 19:00     ` Takuya ASADA
2015-03-21  3:25     ` Takuya ASADA
2015-03-13 13:42   ` Neil Horman
     [not found]     ` <20150313134244.GB28191-B26myB8xz7F8NnZeBjwnZQMhkBWG/bsMQH7oEaQurus@public.gmane.org>
2015-03-13 19:39       ` Takuya ASADA
2015-03-21  3:22   ` [RFC PATCHv2 0/8] " Takuya ASADA
     [not found]     ` <1426908185-27940-1-git-send-email-syuu-RmZWMc9puTNJc61us3aD9laTQe2KTcn/@public.gmane.org>
2015-03-21  3:22       ` [RFC PATCHv2 1/8] mk: support compiling C++ code Takuya ASADA
2015-03-21  3:22       ` [RFC PATCHv2 2/8] eal: Add extern C on eal_hugepages.h Takuya ASADA
2015-03-21  3:23       ` [RFC PATCHv2 3/8] eal: Add extern C on eal_thread.h Takuya ASADA
2015-03-21  3:23       ` [RFC PATCHv2 4/8] eal: Add extern C on eal_private.h Takuya ASADA
2015-03-21  3:23       ` [RFC PATCHv2 5/8] add OSv support Takuya ASADA
     [not found]         ` <1426908185-27940-6-git-send-email-syuu-RmZWMc9puTNJc61us3aD9laTQe2KTcn/@public.gmane.org>
2015-03-24 13:52           ` Neil Horman
     [not found]             ` <20150324135252.GA11053-B26myB8xz7F8NnZeBjwnZQMhkBWG/bsMQH7oEaQurus@public.gmane.org>
2015-04-06 19:01               ` Takuya ASADA
2015-03-21  3:23       ` Takuya ASADA [this message]
2015-03-21  3:23       ` [RFC PATCHv2 7/8] app/test: support OSv Takuya ASADA
2015-03-21  3:23       ` [RFC PATCHv2 8/8] doc: Add Getting Started Guide for OSv Takuya ASADA

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=1426908185-27940-7-git-send-email-syuu@cloudius-systems.com \
    --to=syuu-rmzwmc9putnjc61us3ad9latqe2ktcn/@public.gmane.org \
    --cc=dev-VfR2kkLFssw@public.gmane.org \
    /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.