Enabled VMXNET3 compilation for FreeBSD in the makefiles. Fixed some minor issues to make it run. v2: Removed patch with comments update. Maciej Gajdzica (3): vmxnet3: Removed unused include that broke VMXNET3 driver compilation under FreeBSD. vmxnet3: Added makefile entries to compile VMXNET3 driver under FreeBSD. vmxnet3: Added macro adding VMXNET3 to the list of recognized PCI devices. config/common_bsdapp | 10 ++++++++++ lib/librte_eal/bsdapp/nic_uio/nic_uio.c | 1 + lib/librte_pmd_vmxnet3/vmxnet3_rxtx.c | 1 - 3 files changed, 11 insertions(+), 1 deletion(-) -- 2.0.0
Signed-off-by: Maciej Gajdzica <maciejx.t.gajdzica@intel.com> --- lib/librte_pmd_vmxnet3/vmxnet3_rxtx.c | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/librte_pmd_vmxnet3/vmxnet3_rxtx.c b/lib/librte_pmd_vmxnet3/vmxnet3_rxtx.c index cb711dc..69e01c1 100644 --- a/lib/librte_pmd_vmxnet3/vmxnet3_rxtx.c +++ b/lib/librte_pmd_vmxnet3/vmxnet3_rxtx.c @@ -33,7 +33,6 @@ #include <sys/queue.h> -#include <endian.h> #include <stdio.h> #include <stdlib.h> #include <string.h> -- 2.0.0
Signed-off-by: Maciej Gajdzica <maciejx.t.gajdzica@intel.com> --- config/common_bsdapp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/config/common_bsdapp b/config/common_bsdapp index 578d510..87edada 100644 --- a/config/common_bsdapp +++ b/config/common_bsdapp @@ -177,6 +177,16 @@ CONFIG_RTE_LIBRTE_VIRTIO_DEBUG_DRIVER=n CONFIG_RTE_LIBRTE_VIRTIO_DEBUG_DUMP=n # +# Compile burst-oriented VMXNET3 PMD driver +# +CONFIG_RTE_LIBRTE_VMXNET3_PMD=y +CONFIG_RTE_LIBRTE_VMXNET3_DEBUG_INIT=n +CONFIG_RTE_LIBRTE_VMXNET3_DEBUG_RX=n +CONFIG_RTE_LIBRTE_VMXNET3_DEBUG_TX=n +CONFIG_RTE_LIBRTE_VMXNET3_DEBUG_TX_FREE=n +CONFIG_RTE_LIBRTE_VMXNET3_DEBUG_DRIVER=n + +# # Compile example software rings based PMD # CONFIG_RTE_LIBRTE_PMD_RING=y -- 2.0.0
Signed-off-by: Maciej Gajdzica <maciejx.t.gajdzica@intel.com> --- lib/librte_eal/bsdapp/nic_uio/nic_uio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_eal/bsdapp/nic_uio/nic_uio.c b/lib/librte_eal/bsdapp/nic_uio/nic_uio.c index 3fe6f1c..00c9a8d 100644 --- a/lib/librte_eal/bsdapp/nic_uio/nic_uio.c +++ b/lib/librte_eal/bsdapp/nic_uio/nic_uio.c @@ -110,6 +110,7 @@ struct pci_bdf { #define RTE_PCI_DEV_ID_DECL_IXGBE(vend, dev) {vend, dev}, #define RTE_PCI_DEV_ID_DECL_IXGBEVF(vend, dev) {vend, dev}, #define RTE_PCI_DEV_ID_DECL_VIRTIO(vend, dev) {vend, dev}, +#define RTE_PCI_DEV_ID_DECL_VMXNET3(vend, dev) {vend, dev}, const struct device devices[] = { #include <rte_pci_dev_ids.h> -- 2.0.0
On Thu, Jul 03, 2014 at 10:32:29AM +0100, Maciej Gajdzica wrote:
> Enabled VMXNET3 compilation for FreeBSD in the makefiles. Fixed some
> minor issues to make it run.
>
> v2:
> Removed patch with comments update.
>
> Maciej Gajdzica (3):
> vmxnet3: Removed unused include that broke VMXNET3 driver compilation
> under FreeBSD.
> vmxnet3: Added makefile entries to compile VMXNET3 driver under
> FreeBSD.
> vmxnet3: Added macro adding VMXNET3 to the list of recognized PCI
> devices.
>
> config/common_bsdapp | 10 ++++++++++
> lib/librte_eal/bsdapp/nic_uio/nic_uio.c | 1 +
> lib/librte_pmd_vmxnet3/vmxnet3_rxtx.c | 1 -
> 3 files changed, 11 insertions(+), 1 deletion(-)
>
> --
> 2.0.0
>
>
Series
Acked-by: Neil Horman <nhorman@tuxdriver.com>
2014-07-03 07:16, Neil Horman:
> On Thu, Jul 03, 2014 at 10:32:29AM +0100, Maciej Gajdzica wrote:
> > Enabled VMXNET3 compilation for FreeBSD in the makefiles. Fixed some
> > minor issues to make it run.
>
> Acked-by: Neil Horman <nhorman@tuxdriver.com>
Applied for version 1.7.1.
Thanks
--
Thomas