DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] net/virtio: add driver to meson build
@ 2018-02-16 17:21 Bruce Richardson
  2018-02-21 12:56 ` Maxime Coquelin
  0 siblings, 1 reply; 3+ messages in thread
From: Bruce Richardson @ 2018-02-16 17:21 UTC (permalink / raw)
  To: dev; +Cc: Bruce Richardson

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
---
 drivers/net/meson.build        |  2 +-
 drivers/net/virtio/meson.build | 27 +++++++++++++++++++++++++++
 2 files changed, 28 insertions(+), 1 deletion(-)
 create mode 100644 drivers/net/virtio/meson.build

diff --git a/drivers/net/meson.build b/drivers/net/meson.build
index 704cbe3c8..10a361763 100644
--- a/drivers/net/meson.build
+++ b/drivers/net/meson.build
@@ -4,7 +4,7 @@
 drivers = ['af_packet', 'bonding',
 	'e1000', 'fm10k', 'i40e', 'ixgbe',
 	'null', 'octeontx', 'pcap', 'ring',
-	'sfc', 'thunderx']
+	'sfc', 'thunderx', 'virtio']
 std_deps = ['ethdev', 'kvargs'] # 'ethdev' also pulls in mbuf, net, eal etc
 std_deps += ['bus_pci']         # very many PMDs depend on PCI, so make std
 std_deps += ['bus_vdev']        # same with vdev bus
diff --git a/drivers/net/virtio/meson.build b/drivers/net/virtio/meson.build
new file mode 100644
index 000000000..e43ce6bbc
--- /dev/null
+++ b/drivers/net/virtio/meson.build
@@ -0,0 +1,27 @@
+# SPDX-License-Identifier: BSD-3-Clause
+# Copyright(c) 2018 Intel Corporation
+
+allow_experimental_apis = true
+sources += files('virtio_ethdev.c',
+	'virtio_pci.c',
+	'virtio_rxtx.c',
+	'virtio_rxtx_simple.c',
+	'virtqueue.c')
+deps += ['kvargs', 'bus_pci']
+
+if arch_subdir == 'x86'
+	sources += files('virtio_rxtx_simple_sse.c')
+elif arch_subdir == 'arm' and host_machine.cpu_family().startswith('aarch64')
+	sources += files('virtio_rxtx_simple_neon.c')
+endif
+
+if host_machine.system() == 'linux'
+	dpdk_conf.set('RTE_VIRTIO_USER', 1)
+
+	sources += files('virtio_user_ethdev.c',
+		'virtio_user/vhost_kernel.c',
+		'virtio_user/vhost_kernel_tap.c',
+		'virtio_user/vhost_user.c',
+		'virtio_user/virtio_user_dev.c')
+	deps += ['bus_vdev']
+endif
-- 
2.14.3

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

* Re: [dpdk-dev] [PATCH] net/virtio: add driver to meson build
  2018-02-16 17:21 [dpdk-dev] [PATCH] net/virtio: add driver to meson build Bruce Richardson
@ 2018-02-21 12:56 ` Maxime Coquelin
  2018-03-12 15:07   ` Bruce Richardson
  0 siblings, 1 reply; 3+ messages in thread
From: Maxime Coquelin @ 2018-02-21 12:56 UTC (permalink / raw)
  To: Bruce Richardson, dev



On 02/16/2018 06:21 PM, Bruce Richardson wrote:
> Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
> ---
>   drivers/net/meson.build        |  2 +-
>   drivers/net/virtio/meson.build | 27 +++++++++++++++++++++++++++
>   2 files changed, 28 insertions(+), 1 deletion(-)
>   create mode 100644 drivers/net/virtio/meson.build

Acked-by: Maxime Coquelin <maxime.coquelin@redhat.com>

Thanks,
Maxime

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

* Re: [dpdk-dev] [PATCH] net/virtio: add driver to meson build
  2018-02-21 12:56 ` Maxime Coquelin
@ 2018-03-12 15:07   ` Bruce Richardson
  0 siblings, 0 replies; 3+ messages in thread
From: Bruce Richardson @ 2018-03-12 15:07 UTC (permalink / raw)
  To: Maxime Coquelin; +Cc: dev

On Wed, Feb 21, 2018 at 01:56:10PM +0100, Maxime Coquelin wrote:
> 
> 
> On 02/16/2018 06:21 PM, Bruce Richardson wrote:
> > Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
> > ---
> >   drivers/net/meson.build        |  2 +-
> >   drivers/net/virtio/meson.build | 27 +++++++++++++++++++++++++++
> >   2 files changed, 28 insertions(+), 1 deletion(-)
> >   create mode 100644 drivers/net/virtio/meson.build
> 
> Acked-by: Maxime Coquelin <maxime.coquelin@redhat.com>
> 
Applied to dpdk-next-build

/Bruce

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

end of thread, other threads:[~2018-03-12 15:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-16 17:21 [dpdk-dev] [PATCH] net/virtio: add driver to meson build Bruce Richardson
2018-02-21 12:56 ` Maxime Coquelin
2018-03-12 15:07   ` Bruce Richardson

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).