ixgbe: Fix compilation issue in vpmd
PATCH 1/1 ixgbe: Fix compilation issue in vpmd
Fix the compilation issue in vector PMD when macro RTE_MBUF_REFCNT is disabled.
--- lib/librte_pmd_ixgbe/ixgbe_rxtx_vec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/librte_pmd_ixgbe/ixgbe_rxtx_vec.c +1 -1
@@ -541,7 +541,7 @@ ixgbe_tx_free_bufs(struct igb_tx_queue *txq)#ifdef RTE_MBUF_REFCNT m =__rte_pktmbuf_prefree_seg (txep[i].mbuf);#else - m = txep[i]->mbuf; + m = txep[i].mbuf;#endif if (likely (m !=NULL )) {if (likely (m->pool == free[0 ]->pool))
Signature · 1 line
1.8.4.2
2014-10-21 14:59, Ouyang Changchun:
Quoted 3 lines
Fix the compilation issue in vector PMD when macro
RTE_MBUF_REFCNTis disabled.Signed-off-by Changchun Ouyang <[email protected]>
Applied
Thanks
Signature · 1 line
Thomas
Hi Thomas,
Quoted 8 lines
-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Thomas Monjalon
Sent: Tuesday, October 21, 2014 9:04 AM
To: Ouyang, Changchun
Cc: [email protected]
Subject: Re: [dpdk-dev] [PATCH] ixgbe: Fix compilation issue in vpmd2014-10-21 14:59, Ouyang Changchun:
Quoted 8 lines
Quoted 1 line
Fix the compilation issue in vector PMD when macro
RTE_MBUF_REFCNTisdisabled.
Quoted 2 lines
Signed-off-by Changchun Ouyang <[email protected]>Acked-by Thomas Monjalon <[email protected]>Applied
I was checking this patch right now, and I come across a second compilation issue,
because rte_mbuf_refcnt_update and rte_pktmbuf_attach are not declared,
and Bond PMD and IP fragmentation libraries use those functions.
I guess that it is late to NACK this :P, but we require a second patch to fix completely this issue.
Quoted 4 lines
Thanks
--
Thomas
Hi Pablo
Quoted 25 lines
-----Original Message-----
From: De Lara Guarch, Pablo
Sent: Tuesday, October 21, 2014 4:19 PM
To: Thomas Monjalon; Ouyang, Changchun
Cc: [email protected]
Subject: RE: [dpdk-dev] [PATCH] ixgbe: Fix compilation issue in vpmdHi Thomas,
Quoted 16 lines
-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Thomas Monjalon
Sent: Tuesday, October 21, 2014 9:04 AM
To: Ouyang, Changchun
Cc: [email protected]
Subject: Re: [dpdk-dev] [PATCH] ixgbe: Fix compilation issue in vpmd2014-10-21 14:59, Ouyang Changchun:
Quoted 2 lines
Fix the compilation issue in vector PMD when macro
RTE_MBUF_REFCNTisdisabled.
Quoted 2 lines
Signed-off-by Changchun Ouyang <[email protected]>Acked-by Thomas Monjalon <[email protected]>
Quoted 8 lines
Quoted 1 line
Applied
I was checking this patch right now, and I come across a second compilation issue, because
rte_mbuf_refcnt_updateandrte_pktmbuf_attachare not declared, and Bond PMD and IP fragmentation libraries use those functions.I guess that it is late to NACK this :P, but we require a second patch to fix completely this issue.
As it fixes the compilation issue in vpmd, so no reason to NACK it, :-)
In my config, both BOND and IP fragment is disabled. So I don't come across your issues. Yes, agree with you, we need another patch to fix compilation issue in other both places.
2014-10-21 08:28, Ouyang, Changchun:
Quoted 12 lines
From: De Lara Guarch, Pablo
Quoted 11 lines
From: dev [mailto:[email protected]] On Behalf Of Thomas Monjalon
Quoted 9 lines
2014-10-21 14:59, Ouyang Changchun:
Quoted 4 lines
Fix the compilation issue in vector PMD when macro
RTE_MBUF_REFCNTis disabled.Signed-off-by Changchun Ouyang <[email protected]>Acked-by Thomas Monjalon <[email protected]>Applied
Quoted 8 lines
Quoted 6 lines
I was checking this patch right now, and I come across a second compilation issue, because
rte_mbuf_refcnt_updateandrte_pktmbuf_attachare not declared, and Bond PMD and IP fragmentation libraries use those functions.I guess that it is late to NACK this :P, but we require a second patch to fix completely this issue.
As it fixes the compilation issue in vpmd, so no reason to NACK it, :-)
Exact
Quoted 2 lines
In my config, both BOND and IP fragment is disabled. So I don't come across your issues. Yes, agree with you, we need another patch to fix compilation issue in other both places.
Yes, I'm aware of these limitations.
Please, first explain why mbuf refcnt is needed for these features. Then we have 2 options: remove the dependency or add more ifdefs.
Thanks
Signature · 1 line
Thomas
Quoted 36 lines
-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Thomas Monjalon
Sent: Tuesday, October 21, 2014 9:36 AM
To: Ouyang, Changchun; De Lara Guarch, Pablo
Cc: [email protected]
Subject: Re: [dpdk-dev] [PATCH] ixgbe: Fix compilation issue in vpmd2014-10-21 08:28, Ouyang, Changchun:
Quoted 12 lines
From: De Lara Guarch, Pablo
Quoted 11 lines
From: dev [mailto:[email protected]] On Behalf Of Thomas Monjalon
Quoted 9 lines
2014-10-21 14:59, Ouyang Changchun:
Quoted 4 lines
Fix the compilation issue in vector PMD when macro
RTE_MBUF_REFCNTis disabled.Signed-off-by Changchun Ouyang <[email protected]>Acked-by Thomas Monjalon <[email protected]>Applied
Quoted 8 lines
Quoted 6 lines
I was checking this patch right now, and I come across a second compilation issue, because
rte_mbuf_refcnt_updateandrte_pktmbuf_attachare not declared, and Bond PMD and IP fragmentation libraries use those functions.I guess that it is late to NACK this :P, but we require a second patch to fix completely this issue.
As it fixes the compilation issue in vpmd, so no reason to NACK it, :-)
Exact
Quoted 1 line
In my config, both BOND and IP fragment is disabled. So I don't come across your
issues.
Quoted 1 line
Yes, agree with you, we need another patch to fix compilation issue in other
both places.
Quoted 7 lines
Yes, I'm aware of these limitations.
Please, first explain why mbuf refcnt is needed for these features. Then we have 2 options: remove the dependency or add more ifdefs.Thanks
--
Thomas
Thomas,
for link bonding the refcnt is used in broadcast mode to allow the same mbuf to be transmitted on multiple slaves. By increasing the refcnt, we can safely transmit the mbuf on multiple slaves without the danger of a mbuf being freed by one slave while in use by another. I can provide a patch to disable the broadcast mode of operation if the bonding pmd is built with the macro RTE_MBUF_REFCNT disabled. I don't think there is any other option other than than to completely disable the library if the refcnt parameter isn't available as we don't have access to the transmit mempool to allocate new mbufs to make copies of the original.
Declan