[dpdk-dev] [RFC v2 1/1] add flow shared action API

Stephen Hemminger stephen at networkplumber.org
Thu Jul 2 02:24:09 CEST 2020


On Sat, 20 Jun 2020 16:32:57 +0300
Andrey Vesnovaty <andrey.vesnovaty at gmail.com> wrote:

> +
> +void *
> +rte_flow_shared_action_create(uint16_t port_id,
> +		const struct rte_flow_action *action,
> +		struct rte_flow_error *error)
> +{

NAK

API's that return void * (opaque pointer) are dangerous and should
not be added to DPDK.

To do data hiding. Define a structure but don't expose the internals
of what that structure are.


More information about the dev mailing list