From: Maciej Gajdzica Date: Thu, 3 Jul 2014 09:32:30 +0000 (+0100) Subject: vmxnet3: enable for FreeBSD X-Git-Tag: spdx-start~10498 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=0c191811571a6b46cb8a741b2dce0c3afd6c24f9;p=dpdk.git vmxnet3: enable for FreeBSD Remove useless include that broke compilation and allow to use it with nic_uio in FreeBSD. Signed-off-by: Maciej Gajdzica Acked-by: Neil Horman --- diff --git a/config/common_bsdapp b/config/common_bsdapp index 23d3dddab5..bf6d8a0edf 100644 --- a/config/common_bsdapp +++ b/config/common_bsdapp @@ -201,7 +201,7 @@ CONFIG_RTE_LIBRTE_VIRTIO_DEBUG_DUMP=n # # Compile burst-oriented VMXNET3 PMD driver # -CONFIG_RTE_LIBRTE_VMXNET3_PMD=n +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 diff --git a/lib/librte_eal/bsdapp/nic_uio/nic_uio.c b/lib/librte_eal/bsdapp/nic_uio/nic_uio.c index 8ba7f1be41..ed11d845bb 100644 --- a/lib/librte_eal/bsdapp/nic_uio/nic_uio.c +++ b/lib/librte_eal/bsdapp/nic_uio/nic_uio.c @@ -112,6 +112,7 @@ struct pci_bdf { #define RTE_PCI_DEV_ID_DECL_I40E(vend, dev) {vend, dev}, #define RTE_PCI_DEV_ID_DECL_I40EVF(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 diff --git a/lib/librte_pmd_vmxnet3/vmxnet3_rxtx.c b/lib/librte_pmd_vmxnet3/vmxnet3_rxtx.c index 13960fa993..69ba30b412 100644 --- a/lib/librte_pmd_vmxnet3/vmxnet3_rxtx.c +++ b/lib/librte_pmd_vmxnet3/vmxnet3_rxtx.c @@ -33,7 +33,6 @@ #include -#include #include #include #include