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

Message ID 1925976.ZpGJHZ6fsM@xps (mailing list archive)
State Not Applicable, archived
Headers

Checks

Context Check Description
ci/Intel-compilation fail apply patch file failure
ci/checkpatch warning coding style issues

Commit Message

Thomas Monjalon June 27, 2017, 10 p.m. UTC
  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 rte_flow_desc_data rte_flow_desc_action[];
> +extern size_t rte_flow_nb_action;

Those externs are weirds.
At least, it needs to be declared in the .map:
  

Patch

--- a/lib/librte_ether/rte_ether_version.map
+++ b/lib/librte_ether/rte_ether_version.map
@@ -153,6 +153,10 @@  DPDK_17.08 {
        global:
 
        rte_flow_copy;
+       rte_flow_desc_action;
+       rte_flow_desc_item;
        rte_flow_isolate;
+       rte_flow_nb_action;
+       rte_flow_nb_item;
 
 } DPDK_17.05;