On 4/5/20 10:56 AM, jer...@marvell.com wrote:
> From: Nithin Dabilpuram <ndabilpu...@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 <ndabilpu...@marvell.com>
> Signed-off-by: Pavan Nikhilesh <pbhagavat...@marvell.com>
> Signed-off-by: Kiran Kumar K <kirankum...@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

Reply via email to