patches for DPDK stable branches
 help / color / mirror / Atom feed
* [PATCH] examples/distributor: fix syntax on single core rx and distributor
@ 2022-06-20 16:31 Abdullah Ömer Yamaç
  2022-06-20 17:10 ` Ferruh Yigit
  0 siblings, 1 reply; 7+ messages in thread
From: Abdullah Ömer Yamaç @ 2022-06-20 16:31 UTC (permalink / raw)
  To: david.hunt; +Cc: dev, Abdullah Ömer Yamaç, stable

This patch fixes the syntax error when using the single-core
for both rx and distributor functions.

Fixes: 4a7f40c0ff9a ("examples/distributor: add dedicated core")
Cc: stable@dpdk.org

Signed-off-by: Abdullah Ömer Yamaç <omer.yamac@ceng.metu.edu.tr>
---
Cc: david.hunt@intel.com
---
 examples/distributor/main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/examples/distributor/main.c b/examples/distributor/main.c
index 02bf91f555..8995806b4e 100644
--- a/examples/distributor/main.c
+++ b/examples/distributor/main.c
@@ -261,8 +261,8 @@ lcore_rx(struct lcore_params *p)
  * packets are then send straight to the tx core.
  */
 #if 0
-	rte_distributor_process(d, bufs, nb_rx);
-	const uint16_t nb_ret = rte_distributor_returned_pktsd,
+		rte_distributor_process(p->d, bufs, nb_rx);
+		const uint16_t nb_ret = rte_distributor_returned_pkts(p->d,
 			bufs, BURST_SIZE*2);
 
 		app_stats.rx.returned_pkts += nb_ret;
-- 
2.27.0


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

* Re: [PATCH] examples/distributor: fix syntax on single core rx and distributor
  2022-06-20 16:31 [PATCH] examples/distributor: fix syntax on single core rx and distributor Abdullah Ömer Yamaç
@ 2022-06-20 17:10 ` Ferruh Yigit
  2022-06-21  8:44   ` Hunt, David
  0 siblings, 1 reply; 7+ messages in thread
From: Ferruh Yigit @ 2022-06-20 17:10 UTC (permalink / raw)
  To: david.hunt
  Cc: dev, stable, Abdullah Ömer Yamaç,
	Thomas Monjalon, David Marchand

On 6/20/2022 5:31 PM, Abdullah Ömer Yamaç wrote:
> This patch fixes the syntax error when using the single-core
> for both rx and distributor functions.
> 
> Fixes: 4a7f40c0ff9a ("examples/distributor: add dedicated core")
> Cc: stable@dpdk.org
> 
> Signed-off-by: Abdullah Ömer Yamaç <omer.yamac@ceng.metu.edu.tr>

Acked-by: Ferruh Yigit <ferruh.yigit@xilinx.com>


Can we convert compile time macro to dynamic configuration to prevent 
build errors like this?

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

* Re: [PATCH] examples/distributor: fix syntax on single core rx and distributor
  2022-06-20 17:10 ` Ferruh Yigit
@ 2022-06-21  8:44   ` Hunt, David
  2022-06-21 10:26     ` Ferruh Yigit
  2022-06-26 21:30     ` Thomas Monjalon
  0 siblings, 2 replies; 7+ messages in thread
From: Hunt, David @ 2022-06-21  8:44 UTC (permalink / raw)
  To: Ferruh Yigit
  Cc: dev, stable, Abdullah Ömer Yamaç,
	Thomas Monjalon, David Marchand

Hi Ferruh,

On 20/06/2022 18:10, Ferruh Yigit wrote:
> On 6/20/2022 5:31 PM, Abdullah Ömer Yamaç wrote:
>> This patch fixes the syntax error when using the single-core
>> for both rx and distributor functions.
>>
>> Fixes: 4a7f40c0ff9a ("examples/distributor: add dedicated core")
>> Cc: stable@dpdk.org
>>
>> Signed-off-by: Abdullah Ömer Yamaç <omer.yamac@ceng.metu.edu.tr>
>
> Acked-by: Ferruh Yigit <ferruh.yigit@xilinx.com>
>
>
> Can we convert compile time macro to dynamic configuration to prevent 
> build errors like this?


+1 for the dynamic config. Maybe a "-c" on the command line for "combine 
rx and dist threads"?


Tested-by: David Hunt <david.hunt@intel.com>



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

* Re: [PATCH] examples/distributor: fix syntax on single core rx and distributor
  2022-06-21  8:44   ` Hunt, David
@ 2022-06-21 10:26     ` Ferruh Yigit
  2022-06-21 11:18       ` Omer Yamac
  2022-06-26 21:30     ` Thomas Monjalon
  1 sibling, 1 reply; 7+ messages in thread
From: Ferruh Yigit @ 2022-06-21 10:26 UTC (permalink / raw)
  To: Hunt, David, Abdullah Ömer Yamaç
  Cc: dev, stable, Thomas Monjalon, David Marchand

On 6/21/2022 9:44 AM, Hunt, David wrote:
> 
> Hi Ferruh,
> 
> On 20/06/2022 18:10, Ferruh Yigit wrote:
>> On 6/20/2022 5:31 PM, Abdullah Ömer Yamaç wrote:
>>> This patch fixes the syntax error when using the single-core
>>> for both rx and distributor functions.
>>>
>>> Fixes: 4a7f40c0ff9a ("examples/distributor: add dedicated core")
>>> Cc: stable@dpdk.org
>>>
>>> Signed-off-by: Abdullah Ömer Yamaç <omer.yamac@ceng.metu.edu.tr>
>>
>> Acked-by: Ferruh Yigit <ferruh.yigit@xilinx.com>
>>
>>
>> Can we convert compile time macro to dynamic configuration to prevent
>> build errors like this?
> 
> 
> +1 for the dynamic config. Maybe a "-c" on the command line for "combine
> rx and dist threads"?
> 

Hi Dave,

'-c' sounds good,

Can you, or someone you delegate, address this, or should we create a 
bugzilla to record?

Or Omer if you are interested in doing this change, please let us know.

> 
> Tested-by: David Hunt <david.hunt@intel.com>
> 
> 


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

* Re: [PATCH] examples/distributor: fix syntax on single core rx and distributor
  2022-06-21 10:26     ` Ferruh Yigit
@ 2022-06-21 11:18       ` Omer Yamac
  2022-06-21 11:24         ` Ferruh Yigit
  0 siblings, 1 reply; 7+ messages in thread
From: Omer Yamac @ 2022-06-21 11:18 UTC (permalink / raw)
  To: Ferruh Yigit; +Cc: Hunt, David, dev, stable, Thomas Monjalon, David Marchand

On 21.06.2022 13:26, Ferruh Yigit wrote:
> On 6/21/2022 9:44 AM, Hunt, David wrote:
>> 
>> Hi Ferruh,
>> 
>> On 20/06/2022 18:10, Ferruh Yigit wrote:
>>> On 6/20/2022 5:31 PM, Abdullah Ömer Yamaç wrote:
>>>> This patch fixes the syntax error when using the single-core
>>>> for both rx and distributor functions.
>>>> 
>>>> Fixes: 4a7f40c0ff9a ("examples/distributor: add dedicated core")
>>>> Cc: stable@dpdk.org
>>>> 
>>>> Signed-off-by: Abdullah Ömer Yamaç <omer.yamac@ceng.metu.edu.tr>
>>> 
>>> Acked-by: Ferruh Yigit <ferruh.yigit@xilinx.com>
>>> 
>>> 
>>> Can we convert compile time macro to dynamic configuration to prevent
>>> build errors like this?
>> 
>> 
>> +1 for the dynamic config. Maybe a "-c" on the command line for 
>> "combine
>> rx and dist threads"?
>> 
> 
> Hi Dave,
> 
> '-c' sounds good,
> 
> Can you, or someone you delegate, address this, or should we create a
> bugzilla to record?
> 
> Or Omer if you are interested in doing this change, please let us know.

Hi Ferruh,
I can do it, if you can review it. Because I am trying to getting 
familiar of your coding style.

> 
>> 
>> Tested-by: David Hunt <david.hunt@intel.com>
>> 
>> 

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

* Re: [PATCH] examples/distributor: fix syntax on single core rx and distributor
  2022-06-21 11:18       ` Omer Yamac
@ 2022-06-21 11:24         ` Ferruh Yigit
  0 siblings, 0 replies; 7+ messages in thread
From: Ferruh Yigit @ 2022-06-21 11:24 UTC (permalink / raw)
  To: Omer Yamac, Hunt, David; +Cc: dev, stable, Thomas Monjalon, David Marchand

On 6/21/2022 12:18 PM, Omer Yamac wrote:
> On 21.06.2022 13:26, Ferruh Yigit wrote:
>> On 6/21/2022 9:44 AM, Hunt, David wrote:
>>>
>>> Hi Ferruh,
>>>
>>> On 20/06/2022 18:10, Ferruh Yigit wrote:
>>>> On 6/20/2022 5:31 PM, Abdullah Ömer Yamaç wrote:
>>>>> This patch fixes the syntax error when using the single-core
>>>>> for both rx and distributor functions.
>>>>>
>>>>> Fixes: 4a7f40c0ff9a ("examples/distributor: add dedicated core")
>>>>> Cc: stable@dpdk.org
>>>>>
>>>>> Signed-off-by: Abdullah Ömer Yamaç <omer.yamac@ceng.metu.edu.tr>
>>>>
>>>> Acked-by: Ferruh Yigit <ferruh.yigit@xilinx.com>
>>>>
>>>>
>>>> Can we convert compile time macro to dynamic configuration to prevent
>>>> build errors like this?
>>>
>>>
>>> +1 for the dynamic config. Maybe a "-c" on the command line for "combine
>>> rx and dist threads"?
>>>
>>
>> Hi Dave,
>>
>> '-c' sounds good,
>>
>> Can you, or someone you delegate, address this, or should we create a
>> bugzilla to record?
>>
>> Or Omer if you are interested in doing this change, please let us know.
> 
> Hi Ferruh,
> I can do it, if you can review it. Because I am trying to getting 
> familiar of your coding style.
> 

Cool, thanks. I think main person here who will set the bar for the 
acceptance is Dave as maintainer of the component :), but sure we all 
can help/review.

>>
>>>
>>> Tested-by: David Hunt <david.hunt@intel.com>
>>>
>>>


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

* Re: [PATCH] examples/distributor: fix syntax on single core rx and distributor
  2022-06-21  8:44   ` Hunt, David
  2022-06-21 10:26     ` Ferruh Yigit
@ 2022-06-26 21:30     ` Thomas Monjalon
  1 sibling, 0 replies; 7+ messages in thread
From: Thomas Monjalon @ 2022-06-26 21:30 UTC (permalink / raw)
  To: Abdullah Ömer Yamaç
  Cc: Ferruh Yigit, stable, dev, David Marchand, Hunt, David

21/06/2022 10:44, Hunt, David:
> On 20/06/2022 18:10, Ferruh Yigit wrote:
> > On 6/20/2022 5:31 PM, Abdullah Ömer Yamaç wrote:
> >> This patch fixes the syntax error when using the single-core
> >> for both rx and distributor functions.
> >>
> >> Fixes: 4a7f40c0ff9a ("examples/distributor: add dedicated core")
> >> Cc: stable@dpdk.org
> >>
> >> Signed-off-by: Abdullah Ömer Yamaç <omer.yamac@ceng.metu.edu.tr>
> >
> > Acked-by: Ferruh Yigit <ferruh.yigit@xilinx.com>
> >
> > Can we convert compile time macro to dynamic configuration to prevent 
> > build errors like this?
> 
> +1 for the dynamic config. Maybe a "-c" on the command line for "combine 
> rx and dist threads"?
> 
> Tested-by: David Hunt <david.hunt@intel.com>

Applied this fix, thanks.
Improvement with dynamic option can come later.



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

end of thread, other threads:[~2022-06-26 21:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-20 16:31 [PATCH] examples/distributor: fix syntax on single core rx and distributor Abdullah Ömer Yamaç
2022-06-20 17:10 ` Ferruh Yigit
2022-06-21  8:44   ` Hunt, David
2022-06-21 10:26     ` Ferruh Yigit
2022-06-21 11:18       ` Omer Yamac
2022-06-21 11:24         ` Ferruh Yigit
2022-06-26 21:30     ` Thomas Monjalon

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).