[PATCH v5] eventdev/eth_rx: add new adapter create API
Jerin Jacob
jerinjacobk at gmail.com
Mon Aug 21 11:52:48 CEST 2023
On Fri, Aug 18, 2023 at 3:07 PM Naga Harish K S V
<s.v.naga.harish.k at intel.com> wrote:
>
> Add new API "rte_event_eth_rx_adapter_create_ext_with_params()" for
> creating Rx adapter instance. This API is similar to
> rte_event_eth_rx_adapter_create_ext() with an additional input
> argument for adapter configuration parameters of type
> "struct rte_event_eth_rx_adapter_params".
>
> Signed-off-by: Naga Harish K S V <s.v.naga.harish.k at intel.com>
> ---
> diff --git a/doc/guides/prog_guide/event_ethernet_rx_adapter.rst b/doc/guides/prog_guide/event_ethernet_rx_adapter.rst
> index 7c5e73b9fd..2e68cca798 100644
> --- a/doc/guides/prog_guide/event_ethernet_rx_adapter.rst
> +++ b/doc/guides/prog_guide/event_ethernet_rx_adapter.rst
> @@ -71,6 +71,9 @@ set to true. The function is passed the event device to be associated with
> the adapter and port configuration for the adapter to setup an event port
> if the adapter needs to use a service function.
>
> +If the application desires to control both the event port allocation and event
> +buffer size, ``rte_event_eth_rx_adapter_create_ext_with_params()`` can be used.
> +
> Event device configuration for service based adapter
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> diff --git a/doc/guides/rel_notes/release_23_11.rst b/doc/guides/rel_notes/release_23_11.rst
> index 4411bb32c1..0f4e677ee9 100644
> --- a/doc/guides/rel_notes/release_23_11.rst
> +++ b/doc/guides/rel_notes/release_23_11.rst
> @@ -72,6 +72,10 @@ New Features
> Also, make sure to start the actual text at the margin.
> =======================================================
>
> +* **Added new Ethernet Rx Adapter create API.**
> +
> + * Added new API ``rte_event_eth_rx_adapter_create_ext_with_params()``
> + for creating Rx adapter instance
Please add
for application desires to control both the event port allocation and event
buffer size,
>
> Removed Items
> -------------
> diff --git a/lib/eventdev/rte_event_eth_rx_adapter.c b/lib/eventdev/rte_event_eth_rx_adapter.c
> index f7f93ccdfd..1574c89678 100644
> --- a/lib/eventdev/rte_event_eth_rx_adapter.c
> +++ b/lib/eventdev/rte_event_eth_rx_adapter.c
> @@ -2485,6 +2485,39 @@ rxa_create(uint8_t id, uint8_t dev_id,
> return 0;
> }
>
> +static int __rte_cold
Another instance of __rte_cold which is not removed.
Please pay some attention when sending the new patch versions.
> +rxa_config_params_validate(struct rte_event_eth_rx_adapter_params *rxa_params,
> + struct rte_event_eth_rx_adapter_params *temp_params)
More information about the dev
mailing list