Re: [dpdk-dev] [PATCH v2] ethdev: add flow API rule copy function

2017-06-27 Thread Thomas Monjalon
19/05/2017 17:21, Gaetan Rivet: > +/** > + * Flow elements description tables. > + */ > +struct rte_flow_desc_data { > + const char *name; > + size_t size; > +}; > + > +extern const struct rte_flow_desc_data rte_flow_desc_item[]; > +extern size_t rte_flow_nb_item; > + > +extern const struct

Re: [dpdk-dev] [PATCH v2] ethdev: add flow API rule copy function

2017-06-27 Thread Thomas Monjalon
19/05/2017 17:21, Gaetan Rivet: > --- a/lib/librte_ether/rte_flow.c > +++ b/lib/librte_ether/rte_flow.c > @@ -33,12 +33,70 @@ > > #include > > +#include > #include > #include > #include "rte_ethdev.h" > #include "rte_flow_driver.h" > #include "rte_flow.h" > > +/** Generate flow_item

[dpdk-dev] [PATCH v2] ethdev: add flow API rule copy function

2017-05-19 Thread Gaetan Rivet
Take this helper from testpmd app to offer it alongside the flow API. This allows PMDs and applications to save flow rules in their generic format for later processing. This is useful when rules cannot be applied immediately, such as when the device is not properly initialized. Signed-off-by: Gae