DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] Move flow parsing from test-pmd to librte_cmdline
@ 2018-01-12  9:21 george.dit
  2018-01-12 10:38 ` Gaëtan Rivet
  0 siblings, 1 reply; 3+ messages in thread
From: george.dit @ 2018-01-12  9:21 UTC (permalink / raw)
  To: dev

Dear DPDK developers,

In an attempt to integrate the Flow API into a third party application and
allow the e.g., insertion/deletion of NIC classification rules from that
application, I noticed that flow command parsing as per the most recent
DPDK versions (i.e., 17.08 or 17.11) might benefit from some useful
modifications.

Specifically, librte_cmdline provides libraries for parsing a flow command
into tokens, but then the library for e.g., creating/deleting a flow rule
for a DPDK NIC resides in test-pmd (app/test-pmd/cmdline_flow.c).

My proposal is to move the app/test-pmd/cmdline_flow.c library into
librte_cmdline, thus facilitate flow parsing for third party DPDK
applications.
I have a working prototype for both DPDK 17.08 and 17.11. This prototype
extends librte_cmdline with 2 additional files (cmdline_flow.h and .c) and
removes this functionality from test-pmd.
The benefit is that the functions in cmdline_flow.h can now be re-used by
any DPDK applications, which was not the case before.

Do you think that the DPDK community will benefit from my patch? If so, I
am happy to send you the patch for review and get your feedback to further
improve it.
In case I missed some other way to achieve my goal (without the need to
patch DPDK), please let me know.

Best regards,
-- 
Georgios Katsikas
Industrial Ph.D. Student
Network Intelligence Group
Decision, Networks, and Analytics (DNA) Lab
RISE SICS
E-Mail:  georgios.katsikas@ri.se

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

* Re: [dpdk-dev] Move flow parsing from test-pmd to librte_cmdline
  2018-01-12  9:21 [dpdk-dev] Move flow parsing from test-pmd to librte_cmdline george.dit
@ 2018-01-12 10:38 ` Gaëtan Rivet
  2018-01-12 10:57   ` george.dit
  0 siblings, 1 reply; 3+ messages in thread
From: Gaëtan Rivet @ 2018-01-12 10:38 UTC (permalink / raw)
  To: george.dit; +Cc: dev

Hi George,

On Fri, Jan 12, 2018 at 10:21:41AM +0100, george.dit@gmail.com wrote:
> Dear DPDK developers,
> 
> In an attempt to integrate the Flow API into a third party application and
> allow the e.g., insertion/deletion of NIC classification rules from that
> application, I noticed that flow command parsing as per the most recent
> DPDK versions (i.e., 17.08 or 17.11) might benefit from some useful
> modifications.
> 
> Specifically, librte_cmdline provides libraries for parsing a flow command
> into tokens, but then the library for e.g., creating/deleting a flow rule
> for a DPDK NIC resides in test-pmd (app/test-pmd/cmdline_flow.c).
> 
> My proposal is to move the app/test-pmd/cmdline_flow.c library into
> librte_cmdline, thus facilitate flow parsing for third party DPDK
> applications.
> I have a working prototype for both DPDK 17.08 and 17.11. This prototype
> extends librte_cmdline with 2 additional files (cmdline_flow.h and .c) and
> removes this functionality from test-pmd.
> The benefit is that the functions in cmdline_flow.h can now be re-used by
> any DPDK applications, which was not the case before.
> 
> Do you think that the DPDK community will benefit from my patch? If so, I
> am happy to send you the patch for review and get your feedback to further
> improve it.
> In case I missed some other way to achieve my goal (without the need to
> patch DPDK), please let me know.
> 
> Best regards,

My opinion would that it might be interesting to have parsing helpers
available for complex APIs such as this one, ready to be dropped into
applications.

There were contentions not too long ago about the status of rte_cmdline,
but in any case I think it could be interesting to have your input on
this.

So don't hesitate to send it.

Cheers,
-- 
Gaëtan Rivet
6WIND

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

* Re: [dpdk-dev] Move flow parsing from test-pmd to librte_cmdline
  2018-01-12 10:38 ` Gaëtan Rivet
@ 2018-01-12 10:57   ` george.dit
  0 siblings, 0 replies; 3+ messages in thread
From: george.dit @ 2018-01-12 10:57 UTC (permalink / raw)
  To: Gaëtan Rivet; +Cc: dev

Hi Gaetan,

Thanks for your quick and positive reply, I will submit a patch today.

Best regards,
Georgios

On Fri, Jan 12, 2018 at 11:38 AM, Gaëtan Rivet <gaetan.rivet@6wind.com>
wrote:

> Hi George,
>
> On Fri, Jan 12, 2018 at 10:21:41AM +0100, george.dit@gmail.com wrote:
> > Dear DPDK developers,
> >
> > In an attempt to integrate the Flow API into a third party application
> and
> > allow the e.g., insertion/deletion of NIC classification rules from that
> > application, I noticed that flow command parsing as per the most recent
> > DPDK versions (i.e., 17.08 or 17.11) might benefit from some useful
> > modifications.
> >
> > Specifically, librte_cmdline provides libraries for parsing a flow
> command
> > into tokens, but then the library for e.g., creating/deleting a flow rule
> > for a DPDK NIC resides in test-pmd (app/test-pmd/cmdline_flow.c).
> >
> > My proposal is to move the app/test-pmd/cmdline_flow.c library into
> > librte_cmdline, thus facilitate flow parsing for third party DPDK
> > applications.
> > I have a working prototype for both DPDK 17.08 and 17.11. This prototype
> > extends librte_cmdline with 2 additional files (cmdline_flow.h and .c)
> and
> > removes this functionality from test-pmd.
> > The benefit is that the functions in cmdline_flow.h can now be re-used by
> > any DPDK applications, which was not the case before.
> >
> > Do you think that the DPDK community will benefit from my patch? If so, I
> > am happy to send you the patch for review and get your feedback to
> further
> > improve it.
> > In case I missed some other way to achieve my goal (without the need to
> > patch DPDK), please let me know.
> >
> > Best regards,
>
> My opinion would that it might be interesting to have parsing helpers
> available for complex APIs such as this one, ready to be dropped into
> applications.
>
> There were contentions not too long ago about the status of rte_cmdline,
> but in any case I think it could be interesting to have your input on
> this.
>
> So don't hesitate to send it.
>
> Cheers,
> --
> Gaėtan Rivet
> 6WIND
>



-- 
Georgios Katsikas
Industrial Ph.D. Student
Network Intelligence Group
Decision, Networks, and Analytics (DNA) Lab
RISE SICS
E-Mail:  georgios.katsikas@ri.se

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

end of thread, other threads:[~2018-01-12 10:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-12  9:21 [dpdk-dev] Move flow parsing from test-pmd to librte_cmdline george.dit
2018-01-12 10:38 ` Gaëtan Rivet
2018-01-12 10:57   ` george.dit

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