[dpdk-dev] [PATCH v4 18/29] node: add ethdev Rx and Tx node ctrl API

Andrzej Ostruszka amo at semihalf.com
Fri Apr 10 01:07:17 CEST 2020


On 4/5/20 10:56 AM, jerinj at marvell.com wrote:
> From: Nithin Dabilpuram <ndabilpuram at marvell.com>
> 
> Add ctrl api to setup ethdev_rx and ethdev_tx node.
> This ctrl api clones 'N' number of ethdev_rx and ethdev_tx
> nodes with specific (port, queue) pairs updated in their context.
> All the ethdev ports and queues are setup before this api
> is called.
> 
> Signed-off-by: Nithin Dabilpuram <ndabilpuram at marvell.com>
> Signed-off-by: Pavan Nikhilesh <pbhagavatula at marvell.com>
> Signed-off-by: Kiran Kumar K <kirankumark at marvell.com>
> ---
[...]
> +struct rte_node_mbuf_priv1 {
> +	union {
> +		/* IP4 rewrite */
> +		struct {
> +			uint16_t nh;
> +			uint16_t ttl;
> +			uint32_t cksum;
> +		};
> +
> +		uint64_t u;
> +	};
> +};
> +
> +/**
> + * @warning
> + * @b EXPERIMENTAL: this API may change without prior notice
> + *
> + * Node mbuf private data to store crypto operation.
> + */
> +struct rte_node_mbuf_priv2 {
> +	union {
> +		/* Sym crypto */
> +		struct {
> +			struct rte_crypto_op op;
> +		};
> +	};
> +} __rte_cache_aligned;

Why such definition?

With regards
Andrzej Ostruszka


More information about the dev mailing list