app/testpmd: fix missing jump action in flow action

Message ID 1537365665-28836-1-git-send-email-reshma.pattan@intel.com (mailing list archive)
State Accepted, archived
Delegated to: Ferruh Yigit
Headers
Series app/testpmd: fix missing jump action in flow action |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK

Commit Message

Pattan, Reshma Sept. 19, 2018, 2:01 p.m. UTC
  Added missing JUMP flow action in flow_action array.
Without this the flow rule cannot be created for JUMP action.

Fixes: 938a184a18 ("app/testpmd: implement basic support for flow API")

Signed-off-by: Reshma Pattan <reshma.pattan@intel.com>
---
 app/test-pmd/config.c | 1 +
 1 file changed, 1 insertion(+)
  

Comments

Iremonger, Bernard Sept. 20, 2018, 4:11 p.m. UTC | #1
> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Reshma Pattan
> Sent: Wednesday, September 19, 2018 3:01 PM
> To: adrien.mazarguil@6wind.com; dev@dpdk.org
> Cc: Pattan, Reshma <reshma.pattan@intel.com>
> Subject: [dpdk-dev] [PATCH] app/testpmd: fix missing jump action in flow action
> 
> Added missing JUMP flow action in flow_action array.
> Without this the flow rule cannot be created for JUMP action.
> 
> Fixes: 938a184a18 ("app/testpmd: implement basic support for flow API")
> 
> Signed-off-by: Reshma Pattan <reshma.pattan@intel.com>

Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
  
Ferruh Yigit Sept. 21, 2018, 1:03 a.m. UTC | #2
On 9/20/2018 5:11 PM, Iremonger, Bernard wrote:
>> -----Original Message-----
>> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Reshma Pattan
>> Sent: Wednesday, September 19, 2018 3:01 PM
>> To: adrien.mazarguil@6wind.com; dev@dpdk.org
>> Cc: Pattan, Reshma <reshma.pattan@intel.com>
>> Subject: [dpdk-dev] [PATCH] app/testpmd: fix missing jump action in flow action
>>
>> Added missing JUMP flow action in flow_action array.
>> Without this the flow rule cannot be created for JUMP action.
>>
>> Fixes: 938a184a18 ("app/testpmd: implement basic support for flow API")
>>
>> Signed-off-by: Reshma Pattan <reshma.pattan@intel.com>
> 
> Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>

Applied to dpdk-next-net/master, thanks.
  

Patch

diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c
index a0f934932..ea2fc9575 100644
--- a/app/test-pmd/config.c
+++ b/app/test-pmd/config.c
@@ -1132,6 +1132,7 @@  static const struct {
 	MK_FLOW_ACTION(END, 0),
 	MK_FLOW_ACTION(VOID, 0),
 	MK_FLOW_ACTION(PASSTHRU, 0),
+	MK_FLOW_ACTION(JUMP, 0),
 	MK_FLOW_ACTION(MARK, sizeof(struct rte_flow_action_mark)),
 	MK_FLOW_ACTION(FLAG, 0),
 	MK_FLOW_ACTION(QUEUE, sizeof(struct rte_flow_action_queue)),