[dpdk-dev] [PATCH v2 2/4] examples/ipsec-secgw: use rte fcn to access private area

Thomas Monjalon thomas at monjalon.net
Fri Jul 13 23:10:06 CEST 2018


19/06/2018 01:36, Dan Gora:
> Update get_priv() to use rte_mbuf_to_priv() to access the private
> area in the mbuf.
> 
> Signed-off-by: Dan Gora <dg at adax.com>
> ---
> -	return RTE_PTR_ADD(m, sizeof(struct rte_mbuf));
> +	return (ipsec_mbuf_metadata *)rte_mbuf_to_priv(m);

The cast is wrong (struct is missing) and useless.
I will remove it on apply.




More information about the dev mailing list