DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] i40e: fix build issue for RX set function
@ 2016-03-16 10:01 Zhe Tao
  2016-03-16 10:19 ` [dpdk-dev] [PATCH v2] " Zhe Tao
  0 siblings, 1 reply; 3+ messages in thread
From: Zhe Tao @ 2016-03-16 10:01 UTC (permalink / raw)
  To: dev; +Cc: zhe.tao

Issue:
When define CONFIG_RTE_LIBTRE_I40E_RX_ALLOW_BULK_ALLOC as n in config file,
there will be a build error:
慽40e_recv_pkts_bulk_alloc' undeclared 

Now DPDK i40e PMD use the Macro variable to choose whether to define the
related bulk recv functions, but for selection of the RX function,PMD only
depends on a C variable, which will cause the inconsistency and lead to the
build error which will tell us the bulk recv function is not defined.
 
Fixes: 8e109464 (i40e: allow vector Rx and Tx usage)

Signed-off-by: Zhe Tao <zhe.tao@intel.com>
---
 drivers/net/i40e/i40e_rxtx.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/drivers/net/i40e/i40e_rxtx.c b/drivers/net/i40e/i40e_rxtx.c
index 8931b8e..1488f2f 100644
--- a/drivers/net/i40e/i40e_rxtx.c
+++ b/drivers/net/i40e/i40e_rxtx.c
@@ -1175,6 +1175,14 @@ i40e_recv_pkts_bulk_alloc(void *rx_queue,
 
 	return nb_rx;
 }
+#else
+static uint16_t
+i40e_recv_pkts_bulk_alloc(void __rte_unused *rx_queue,
+			  struct rte_mbuf __rte_unused **rx_pkts,
+			  uint16_t __rte_unused nb_pkts)
+{
+	return 0;
+}
 #endif /* RTE_LIBRTE_I40E_RX_ALLOW_BULK_ALLOC */
 
 uint16_t
-- 
2.1.4

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

* [dpdk-dev] [PATCH v2] i40e: fix build issue for RX set function
  2016-03-16 10:01 [dpdk-dev] [PATCH] i40e: fix build issue for RX set function Zhe Tao
@ 2016-03-16 10:19 ` Zhe Tao
  2016-03-23 17:36   ` Bruce Richardson
  0 siblings, 1 reply; 3+ messages in thread
From: Zhe Tao @ 2016-03-16 10:19 UTC (permalink / raw)
  To: dev; +Cc: zhe.tao, jingjing.wu

Issue:
When define CONFIG_RTE_LIBTRE_I40E_RX_ALLOW_BULK_ALLOC as n in config file,
there will be a build error:
'i40e_recv_pkts_bulk_alloc' undeclared 

Now DPDK i40e PMD use the Macro variable to choose whether to define the
related bulk recv functions, but for selection of the RX function,PMD only
depends on a C variable, which will cause the inconsistency and lead to the
build error which will tell us the bulk recv function is not defined.
 
Fixes: 8e109464 (i40e: allow vector Rx and Tx usage)

Signed-off-by: Zhe Tao <zhe.tao@intel.com>
---

V2: fix some characters issues in commit log

 drivers/net/i40e/i40e_rxtx.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/drivers/net/i40e/i40e_rxtx.c b/drivers/net/i40e/i40e_rxtx.c
index 8931b8e..1488f2f 100644
--- a/drivers/net/i40e/i40e_rxtx.c
+++ b/drivers/net/i40e/i40e_rxtx.c
@@ -1175,6 +1175,14 @@ i40e_recv_pkts_bulk_alloc(void *rx_queue,
 
 	return nb_rx;
 }
+#else
+static uint16_t
+i40e_recv_pkts_bulk_alloc(void __rte_unused *rx_queue,
+			  struct rte_mbuf __rte_unused **rx_pkts,
+			  uint16_t __rte_unused nb_pkts)
+{
+	return 0;
+}
 #endif /* RTE_LIBRTE_I40E_RX_ALLOW_BULK_ALLOC */
 
 uint16_t
-- 
2.1.4

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

* Re: [dpdk-dev] [PATCH v2] i40e: fix build issue for RX set function
  2016-03-16 10:19 ` [dpdk-dev] [PATCH v2] " Zhe Tao
@ 2016-03-23 17:36   ` Bruce Richardson
  0 siblings, 0 replies; 3+ messages in thread
From: Bruce Richardson @ 2016-03-23 17:36 UTC (permalink / raw)
  To: Zhe Tao; +Cc: dev, jingjing.wu

On Wed, Mar 16, 2016 at 06:19:10PM +0800, Zhe Tao wrote:
> Issue:
> When define CONFIG_RTE_LIBTRE_I40E_RX_ALLOW_BULK_ALLOC as n in config file,
> there will be a build error:
> 'i40e_recv_pkts_bulk_alloc' undeclared 
> 
> Now DPDK i40e PMD use the Macro variable to choose whether to define the
> related bulk recv functions, but for selection of the RX function,PMD only
> depends on a C variable, which will cause the inconsistency and lead to the
> build error which will tell us the bulk recv function is not defined.
>  
> Fixes: 8e109464 (i40e: allow vector Rx and Tx usage)
> 
> Signed-off-by: Zhe Tao <zhe.tao@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>

Applied to dpdk-next-net/rel_16_04

/Bruce

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

end of thread, other threads:[~2016-03-23 17:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-16 10:01 [dpdk-dev] [PATCH] i40e: fix build issue for RX set function Zhe Tao
2016-03-16 10:19 ` [dpdk-dev] [PATCH v2] " Zhe Tao
2016-03-23 17:36   ` 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).