[dpdk-dev] [RFC PATCH 2/4] ethdev: introduce Rx queue offloads API
Thomas Monjalon
thomas at monjalon.net
Wed Aug 23 23:48:06 CEST 2017
07/08/2017 12:54, Shahaf Shuler:
> Introduce a new API to configure Rx offloads.
>
> The new API will re-use existing DEV_RX_OFFLOAD_* flags
> to enable the different offloads. This will ease the process
> of adding a new Rx offloads, as no ABI breakage is involved.
> In addition, the offload configuration can be done per queue,
> instead of per port.
>
> The Rx queue offload API can be used only with devices which advertize
> the RTE_ETH_DEV_RXQ_OFFLOAD capability.
>
> The old Rx offloads API is kept for the meanwhile, in order to enable a
> smooth transition for PMDs and application to the new API.
>
> Signed-off-by: Shahaf Shuler <shahafs at mellanox.com>
[...]
> --- a/lib/librte_ether/rte_ethdev.h
> +++ b/lib/librte_ether/rte_ethdev.h
> @@ -357,7 +357,14 @@ struct rte_eth_rxmode {
> jumbo_frame : 1, /**< Jumbo Frame Receipt enable. */
> hw_strip_crc : 1, /**< Enable CRC stripping by hardware. */
> enable_scatter : 1, /**< Enable scatter packets rx handler */
> - enable_lro : 1; /**< Enable LRO */
> + enable_lro : 1, /**< Enable LRO */
> + ignore : 1;
> + /**
> + * When set the rxmode offloads should be ignored,
> + * instead the Rx offloads will be set on rte_eth_rxq_conf.
> + * This bit is temporary till rxmode Rx offloads API will
> + * be deprecated.
> + */
Who is responsible to set the "ignore" flag?
Should it be documented in queue config functions?
> +/** Device supports the rte_eth_rxq_conf offloads API */
> +#define RTE_ETH_DEV_RXQ_OFFLOAD 0x0010
Otherwise, looks good
More information about the dev
mailing list