From: Dekel Peled <dekelp@mellanox.com>
To: Ori Kam <orika@mellanox.com>,
"wenzhuo.lu@intel.com" <wenzhuo.lu@intel.com>,
"jingjing.wu@intel.com" <jingjing.wu@intel.com>,
"bernard.iremonger@intel.com" <bernard.iremonger@intel.com>
Cc: Matan Azrad <matan@mellanox.com>, "dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] [PATCH] app/testpmd: enhance GTP support
Date: Tue, 24 Mar 2020 12:39:40 +0000 [thread overview]
Message-ID: <AM4PR05MB34603BE78AD07D9A77935B45B6F10@AM4PR05MB3460.eurprd05.prod.outlook.com> (raw)
In-Reply-To: <AM6PR05MB517663760E4BF77071FCFAB1DBF10@AM6PR05MB5176.eurprd05.prod.outlook.com>
Hi, PSB.
> -----Original Message-----
> From: Ori Kam <orika@mellanox.com>
> Sent: Tuesday, March 24, 2020 11:59 AM
> To: Dekel Peled <dekelp@mellanox.com>; wenzhuo.lu@intel.com;
> jingjing.wu@intel.com; bernard.iremonger@intel.com
> Cc: Matan Azrad <matan@mellanox.com>; dev@dpdk.org
> Subject: RE: [dpdk-dev] [PATCH] app/testpmd: enhance GTP support
>
> Hi Dekel,
>
> > -----Original Message-----
> > Subject: [dpdk-dev] [PATCH] app/testpmd: enhance GTP support
> >
> > This patch adds CLI option to enter the v_pt_rsv_flags value for GTP
> > flow pattern item.
> > It also adds GTP as valid item in raw_encap nad raw_decap setting.
> >
> > Signed-off-by: Dekel Peled <dekelp@mellanox.com>
> > ---
> > app/test-pmd/cmdline_flow.c | 12 ++++++++++++
> > 1 file changed, 12 insertions(+)
> >
> > diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c
> > index a781545..cc1bd19 100644
> > --- a/app/test-pmd/cmdline_flow.c
> > +++ b/app/test-pmd/cmdline_flow.c
> > @@ -170,6 +170,7 @@ enum index {
> > ITEM_FUZZY,
> > ITEM_FUZZY_THRESH,
> > ITEM_GTP,
> > + ITEM_GTP_FLAGS,
> > ITEM_GTP_MSG_TYPE,
> > ITEM_GTP_TEID,
> > ITEM_GTPC,
> > @@ -938,6 +939,7 @@ struct parse_action_priv { };
> >
> > static const enum index item_gtp[] = {
> > + ITEM_GTP_FLAGS,
> > ITEM_GTP_MSG_TYPE,
> > ITEM_GTP_TEID,
> > ITEM_NEXT,
> > @@ -2347,6 +2349,13 @@ static int comp_set_raw_index(struct context *,
> > const struct token *,
> > .next = NEXT(item_gtp),
> > .call = parse_vc,
> > },
> > + [ITEM_GTP_FLAGS] = {
> > + .name = "v_pt_rsv_flags",
> > + .help = "GTP flags",
> > + .next = NEXT(item_gtp, NEXT_ENTRY(UNSIGNED),
> > item_param),
> > + .args = ARGS(ARGS_ENTRY_HTON(struct rte_flow_item_gtp,
> > + v_pt_rsv_flags)),
>
> V_pt_rsv_flags is 8 bits right? So why HTON?
This is the common practice in this array, done for other uint8_t fields.
>
> > + },
> > [ITEM_GTP_MSG_TYPE] = {
> > .name = "msg_type",
> > .help = "GTP message type",
> > @@ -6604,6 +6613,9 @@ static int comp_set_raw_index(struct context *,
> > const struct token *,
> > size = sizeof(struct rte_flow_item_ah);
> > proto = 0x33;
> > break;
> > + case RTE_FLOW_ITEM_TYPE_GTP:
> > + size = sizeof(struct rte_flow_item_gtp);
> > + break;
> > case RTE_FLOW_ITEM_TYPE_PFCP:
> > size = sizeof(struct rte_flow_item_pfcp);
> > break;
> > --
> > 1.8.3.1
>
> Best,
> Ori
next prev parent reply other threads:[~2020-03-24 12:39 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-16 8:14 Dekel Peled
2020-03-24 9:58 ` Ori Kam
2020-03-24 12:39 ` Dekel Peled [this message]
2020-03-25 8:12 ` [dpdk-dev] [PATCH v2] " Dekel Peled
2020-03-25 8:27 ` Ori Kam
2020-03-29 9:20 ` Dekel Peled
2020-04-06 11:05 ` Dekel Peled
2020-04-06 11:16 ` Ferruh Yigit
2020-04-06 15:41 ` Ferruh Yigit
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AM4PR05MB34603BE78AD07D9A77935B45B6F10@AM4PR05MB3460.eurprd05.prod.outlook.com \
--to=dekelp@mellanox.com \
--cc=bernard.iremonger@intel.com \
--cc=dev@dpdk.org \
--cc=jingjing.wu@intel.com \
--cc=matan@mellanox.com \
--cc=orika@mellanox.com \
--cc=wenzhuo.lu@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).