ethdev: allow action with any config object type
authorDekel Peled <dekelp@mellanox.com>
Tue, 2 Jul 2019 14:17:26 +0000 (17:17 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 4 Jul 2019 23:52:01 +0000 (01:52 +0200)
commitf10409b766f9607ae45b5d3bad857c98e5e45a9d
treefcf50a48e979a695068f2445c19993c73f97a03e
parent4f538fa249cfdd84f4be412e035f3d4f2e38d0a8
ethdev: allow action with any config object type

In current implementation, an action which requires parameters
must accept them enclosed in a structure.
Some actions require a single, trivial type parameter, but it still
must be enclosed in a structure.
This obligation results in multiple, action-specific structures, each
containing a single trivial type parameter.

This patch introduces a new approach, allowing an action configuration
object of any type, trivial or a structure.

Signed-off-by: Dekel Peled <dekelp@mellanox.com>
Acked-by: Andrew Rybchenko <arybchenko@solarflare.com>
Acked-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
doc/guides/prog_guide/rte_flow.rst
lib/librte_ethdev/rte_flow.h