net/octeontx2: extract nvgre as ltype

Message ID 20190911091925.29683-1-kirankumark@marvell.com (mailing list archive)
State Accepted, archived
Delegated to: Jerin Jacob
Headers
Series net/octeontx2: extract nvgre as ltype |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK
ci/iol-dpdk_compile_spdk success Compile Testing PASS
ci/iol-dpdk_compile success Compile Testing PASS
ci/iol-dpdk_compile_ovs success Compile Testing PASS
ci/intel-Performance success Performance Testing PASS
ci/mellanox-Performance success Performance Testing PASS

Commit Message

Kiran Kumar Kokkilagadda Sept. 11, 2019, 9:19 a.m. UTC
  From: Kiran Kumar K <kirankumark@marvell.com>

Adding change to sync RTE Flow with KPU profile to extract
NVGRE as ltype.

Signed-off-by: Kiran Kumar K <kirankumark@marvell.com>
---
 drivers/net/octeontx2/otx2_flow_parse.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Jerin Jacob Oct. 3, 2019, 4:07 p.m. UTC | #1
On Wed, Sep 11, 2019 at 2:49 PM <kirankumark@marvell.com> wrote:
>
> From: Kiran Kumar K <kirankumark@marvell.com>
>
> Adding change to sync RTE Flow with KPU profile to extract
> NVGRE as ltype.
>
> Signed-off-by: Kiran Kumar K <kirankumark@marvell.com>

Acked-by: Jerin Jacob <jerinj@marvell.com>
Applied to dpdk-next-net-mrvl/master. Thanks



> ---
>  drivers/net/octeontx2/otx2_flow_parse.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/net/octeontx2/otx2_flow_parse.c b/drivers/net/octeontx2/otx2_flow_parse.c
> index 6670c1a70..a811cb90c 100644
> --- a/drivers/net/octeontx2/otx2_flow_parse.c
> +++ b/drivers/net/octeontx2/otx2_flow_parse.c
> @@ -458,7 +458,7 @@ otx2_flow_parse_ld(struct otx2_parse_state *pst)
>                 info.hw_hdr_len = 4;
>                 break;
>         case RTE_FLOW_ITEM_TYPE_NVGRE:
> -               lt = NPC_LT_LD_GRE;
> +               lt = NPC_LT_LD_NVGRE;
>                 lflags = NPC_F_GRE_NVGRE;
>                 info.def_mask = &rte_flow_item_nvgre_mask;
>                 info.len = sizeof(struct rte_flow_item_nvgre);
> --
> 2.17.1
>
  

Patch

diff --git a/drivers/net/octeontx2/otx2_flow_parse.c b/drivers/net/octeontx2/otx2_flow_parse.c
index 6670c1a70..a811cb90c 100644
--- a/drivers/net/octeontx2/otx2_flow_parse.c
+++ b/drivers/net/octeontx2/otx2_flow_parse.c
@@ -458,7 +458,7 @@  otx2_flow_parse_ld(struct otx2_parse_state *pst)
 		info.hw_hdr_len = 4;
 		break;
 	case RTE_FLOW_ITEM_TYPE_NVGRE:
-		lt = NPC_LT_LD_GRE;
+		lt = NPC_LT_LD_NVGRE;
 		lflags = NPC_F_GRE_NVGRE;
 		info.def_mask = &rte_flow_item_nvgre_mask;
 		info.len = sizeof(struct rte_flow_item_nvgre);