RTE_PIPELINE_ACTION_PORT_META doesn't work properly
Hi, list!
RTE_PIPELINE_ACTION_PORT_META option in rte_pipeline library doesn't work for non-default table entries. Is this bug or correct behaviour?
This is my patch, that changes this behaviour:
lib/librte_pipeline/rte_pipeline.c +0 -0
@@ -999,8 +999,10 @@ rte_pipeline_compute_masks(struct rte_pipeline *p, uint64_t pkts_mask)
{
p->action_mask1[RTE_PIPELINE_ACTION_DROP] = 0; p->action_mask1[RTE_PIPELINE_ACTION_PORT] = 0;
+ p->action_mask1[RTE_PIPELINE_ACTION_PORT_META] = 0; p->action_mask1[RTE_PIPELINE_ACTION_TABLE] = 0;
+
if ((pkts_mask & (pkts_mask + 1)) == 0) {
uint64_t n_pkts = __builtin_popcountll(pkts_mask); uint32_t i;
@@ -1224,6 +1226,7 @@ rte_pipeline_run(struct rte_pipeline *p) pkts_mask = RTE_LEN2MASK(n_pkts, uint64_t); p->action_mask0[RTE_PIPELINE_ACTION_DROP] = 0; p->action_mask0[RTE_PIPELINE_ACTION_PORT] = 0;
+ p->action_mask0[RTE_PIPELINE_ACTION_PORT_META] = 0; p->action_mask0[RTE_PIPELINE_ACTION_TABLE] = 0;
/* Input port user actions */
@@ -1300,6 +1303,9 @@ rte_pipeline_run(struct rte_pipeline *p) p->action_mask0[RTE_PIPELINE_ACTION_PORT] |= p->action_mask1[ RTE_PIPELINE_ACTION_PORT]; + p->action_mask0[RTE_PIPELINE_ACTION_PORT_META] |= + p->action_mask1[
+ RTE_PIPELINE_ACTION_PORT_META]; p->action_mask0[RTE_PIPELINE_ACTION_TABLE] |= p->action_mask1[ RTE_PIPELINE_ACTION_TABLE];
Thanks, Ildar
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 53 lines
-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of ?????? ????????
Sent: Friday, February 20, 2015 4:25 PM
To: [email protected]
Subject: [dpdk-dev]RTE_PIPELINE_ACTION_PORT_METAdoesn't work properlyHi, list!
RTE_PIPELINE_ACTION_PORT_METAoption inrte_pipelinelibrary doesn't work for non-default table entries. Is this bug or correct behaviour?This is my patch, that changes this behaviour:
lib/librte_pipeline/rte_pipeline.c +2
-0@@ -999,8 +999,10 @@ rte_pipeline_compute_masks(struct rte_pipeline *p, uint64_t pkts_mask) { p->action_mask1[RTE_PIPELINE_ACTION_DROP] = 0; p->action_mask1[RTE_PIPELINE_ACTION_PORT] = 0; + p->action_mask1[RTE_PIPELINE_ACTION_PORT_META] = 0; p->action_mask1[RTE_PIPELINE_ACTION_TABLE] = 0; + if ((pkts_mask & (pkts_mask + 1)) == 0) { uint64_t n_pkts = __builtin_popcountll(pkts_mask);
uint32_ti;lib/librte_pipeline/rte_pipeline.c +1
-0@@ -1224,6 +1226,7 @@ rte_pipeline_run(struct rte_pipeline *p) pkts_mask = RTE_LEN2MASK(n_pkts, uint64_t); p->action_mask0[RTE_PIPELINE_ACTION_DROP] = 0; p->action_mask0[RTE_PIPELINE_ACTION_PORT] = 0; + p->action_mask0[RTE_PIPELINE_ACTION_PORT_META] = 0; p->action_mask0[RTE_PIPELINE_ACTION_TABLE] = 0; /* Input port user actions */@@ -1300,6 +1303,9 @@ rte_pipeline_run(struct rte_pipeline *p)p->action_mask0[RTE_PIPELINE_ACTION_PORT] |= p->action_mask1[
RTE_PIPELINE_ACTION_PORT]; + p->action_mask0[RTE_PIPELINE_ACTION_PORT_META] |= + p->action_mask1[
+RTE_PIPELINE_ACTION_PORT_META]; p->action_mask0[RTE_PIPELINE_ACTION_TABLE] |= p->action_mask1[RTE_PIPELINE_ACTION_TABLE];
Quoted 1 line
Thanks, Ildar
Acked by: Cristian Dumitrescu <[email protected]>
Thank you, Ildar!
--------------------------------------------------------------
Intel Shannon Limited
Registered in Ireland
Registered Office: Collinstown Industrial Park, Leixlip, County Kildare Registered Number: 308263
Business address: Dromore House, East Park, Shannon, Co. Clare
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.
A message that is not in the archive (sent off-list or not yet received): 3EB4FA525960D640B5BDFFD6A3D891263231B304-kPTMFJFq+rEMvF1YICWikbfspsVTdybXVpNB7YpNyf8@public.gmane.org
2015-02-20 19:26, Dumitrescu, Cristian:
Quoted 52 lines
Quoted 52 lines
-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of ?????? ????????
Sent: Friday, February 20, 2015 4:25 PM
To: [email protected]
Subject: [dpdk-dev]RTE_PIPELINE_ACTION_PORT_METAdoesn't work
properlyHi, list!
RTE_PIPELINE_ACTION_PORT_METAoption inrte_pipelinelibrary doesn't work for non-default table entries. Is this bug or correct behaviour?This is my patch, that changes this behaviour:
lib/librte_pipeline/rte_pipeline.c +2
-0@@ -999,8 +999,10 @@ rte_pipeline_compute_masks(struct rte_pipeline *p, uint64_t pkts_mask) { p->action_mask1[RTE_PIPELINE_ACTION_DROP ] =0 ; p->action_mask1[RTE_PIPELINE_ACTION_PORT ] =0 ; + p->action_mask1[RTE_PIPELINE_ACTION_PORT_META ] =0 ; p->action_mask1[RTE_PIPELINE_ACTION_TABLE ] =0 ; +if ((pkts_mask & (pkts_mask +1 )) ==0 ) {uint64_t n_pkts =__builtin_popcountll (pkts_mask);uint32_t i;lib/librte_pipeline/rte_pipeline.c +4
-0@@ -1224,6 +1226,7 @@ rte_pipeline_run(struct rte_pipeline *p) pkts_mask =RTE_LEN2MASK (n_pkts, uint64_t); p->action_mask0[RTE_PIPELINE_ACTION_DROP ] =0 ; p->action_mask0[RTE_PIPELINE_ACTION_PORT ] =0 ; + p->action_mask0[RTE_PIPELINE_ACTION_PORT_META ] =0 ; p->action_mask0[RTE_PIPELINE_ACTION_TABLE ] =0 ;/* Input port user actions */ @@ -1300,6 +1303,9 @@ rte_pipeline_run(struct rte_pipeline *p) p->action_mask0[RTE_PIPELINE_ACTION_PORT ] |= p->action_mask1[RTE_PIPELINE_ACTION_PORT ]; + p->action_mask0[RTE_PIPELINE_ACTION_PORT_META ] |= + p->action_mask1[ +RTE_PIPELINE_ACTION_PORT_META ]; p->action_mask0[RTE_PIPELINE_ACTION_TABLE ] |= p->action_mask1[RTE_PIPELINE_ACTION_TABLE ];
Quoted 3 lines
Quoted 1 line
Thanks, Ildar
Acked by: Cristian Dumitrescu <[email protected]>
No Cristian, you cannot ack this patch, even if it fixes the problem. The format is not OK: indent is wrong and it's not signed. Please Ildar, check http://dpdk.org/dev#send to know how to submit a patch.
Quoted 1 line
Thank you, Ildar!
Quoted 66 lines
-----Original Message-----
From: Thomas Monjalon [mailto:[email protected]]
Sent: Friday, February 20, 2015 8:47 PM
To: Dumitrescu, Cristian; [email protected]
Cc: [email protected]
Subject: Re: [dpdk-dev]RTE_PIPELINE_ACTION_PORT_METAdoesn't work properly2015-02-20 19:26, Dumitrescu, Cristian:
Quoted 3 lines
Quoted 3 lines
-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of ??????????????
Quoted 8 lines
Quoted 8 lines
Sent: Friday, February 20, 2015 4:25 PM
To: [email protected]
Subject: [dpdk-dev]RTE_PIPELINE_ACTION_PORT_METAdoesn't work properlyHi, list!
RTE_PIPELINE_ACTION_PORT_METAoption inrte_pipelinelibrarydoesn't
Quoted 7 lines
lib/librte_pipeline/rte_pipeline.c rte_pipeline_compute_masks(struct
Quoted 7 lines
work for non-default table entries. Is this bug or correct behaviour?
This is my patch, that changes this behaviour:
lib/librte_pipeline/rte_pipeline.c +0
-0@@ -999,8 +999,10 @@ rte_pipeline_compute_masks(struct
rte_pipelineQuoted 34 lines
Quoted 34 lines
lib/librte_pipeline/rte_pipeline.c +2
-0*p, uint64_t pkts_mask) { p->action_mask1[RTE_PIPELINE_ACTION_DROP ] =0 ; p->action_mask1[RTE_PIPELINE_ACTION_PORT ] =0 ; + p->action_mask1[RTE_PIPELINE_ACTION_PORT_META ] =0 ; p->action_mask1[RTE_PIPELINE_ACTION_TABLE ] =0 ; +if ((pkts_mask & (pkts_mask +1 )) ==0 ) {uint64_t n_pkts =__builtin_popcountll (pkts_mask);uint32_t i;lib/librte_pipeline/rte_pipeline.c +4
-0@@ -1224,6 +1226,7 @@ rte_pipeline_run(struct rte_pipeline *p) pkts_mask =RTE_LEN2MASK (n_pkts, uint64_t); p->action_mask0[RTE_PIPELINE_ACTION_DROP ] =0 ; p->action_mask0[RTE_PIPELINE_ACTION_PORT ] =0 ; + p->action_mask0[RTE_PIPELINE_ACTION_PORT_META ] =0 ; p->action_mask0[RTE_PIPELINE_ACTION_TABLE ] =0 ;/* Input port user actions */ @@ -1300,6 +1303,9 @@ rte_pipeline_run(struct rte_pipeline *p) p->action_mask0[RTE_PIPELINE_ACTION_PORT ] |= p->action_mask1[RTE_PIPELINE_ACTION_PORT ]; + p->action_mask0[RTE_PIPELINE_ACTION_PORT_META ] |= + p->action_mask1[ +RTE_PIPELINE_ACTION_PORT_META ]; p->action_mask0[RTE_PIPELINE_ACTION_TABLE ] |= p->action_mask1[RTE_PIPELINE_ACTION_TABLE ];
Quoted 10 lines
Quoted 3 lines
Quoted 1 line
Thanks, Ildar
Acked by: Cristian Dumitrescu <[email protected]>
No Cristian, you cannot ack this patch, even if it fixes the problem. The format is not OK: indent is wrong and it's not signed. Please Ildar, check http://dpdk.org/dev#send to know how to submit a patch.
Quoted 1 line
Thank you, Ildar!
Sorry, Thomas.
Ildar, please fix the signature (currently it the above signature is: On Behalf Of ??????) and the indentation and resubmit.
Regards,
Cristian
--------------------------------------------------------------
Intel Shannon Limited
Registered in Ireland
Registered Office: Collinstown Industrial Park, Leixlip, County Kildare Registered Number: 308263
Business address: Dromore House, East Park, Shannon, Co. Clare
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.