summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Monjalon <thomas.monjalon@6wind.com>2014-07-02 15:11:47 +0200
committerThomas Monjalon <thomas.monjalon@6wind.com>2014-07-02 22:33:13 +0200
commit187785f62e0332defd412eee122f9cc5baebb0e2 (patch)
tree3cabbd3afe7cd81d458b334662d2cbd53466daed
parent8c4e33562d01d22d9439f6715951301e67560b25 (diff)
downloaddpdk-187785f62e0332defd412eee122f9cc5baebb0e2.zip
dpdk-187785f62e0332defd412eee122f9cc5baebb0e2.tar.gz
dpdk-187785f62e0332defd412eee122f9cc5baebb0e2.tar.xz
vmxnet3: fix build with debug
Functions for queue dump are not used and cause compilation error if CONFIG_RTE_LIBRTE_VMXNET3_DEBUG_DRIVER is enabled. Fixed by disabling them. Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
-rw-r--r--lib/librte_pmd_vmxnet3/vmxnet3_rxtx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/librte_pmd_vmxnet3/vmxnet3_rxtx.c b/lib/librte_pmd_vmxnet3/vmxnet3_rxtx.c
index c6aa963..13960fa 100644
--- a/lib/librte_pmd_vmxnet3/vmxnet3_rxtx.c
+++ b/lib/librte_pmd_vmxnet3/vmxnet3_rxtx.c
@@ -90,7 +90,7 @@ static uint32_t rxprod_reg[2] = {VMXNET3_REG_RXPROD, VMXNET3_REG_RXPROD2};
static inline int vmxnet3_post_rx_bufs(vmxnet3_rx_queue_t* , uint8_t);
static inline void vmxnet3_tq_tx_complete(vmxnet3_tx_queue_t *);
-#ifdef RTE_LIBRTE_VMXNET3_DEBUG_DRIVER
+#ifdef RTE_LIBRTE_VMXNET3_DEBUG_DRIVER_NOT_USED
static void vmxnet3_rxq_dump(struct vmxnet3_rx_queue *);
static void vmxnet3_txq_dump(struct vmxnet3_tx_queue *);
#endif
@@ -105,7 +105,7 @@ rte_rxmbuf_alloc(struct rte_mempool *mp)
return (m);
}
-#ifdef RTE_LIBRTE_VMXNET3_DEBUG_DRIVER
+#ifdef RTE_LIBRTE_VMXNET3_DEBUG_DRIVER_NOT_USED
static void
vmxnet3_rxq_dump(struct vmxnet3_rx_queue *rxq)
{