[dpdk-dev] [dpdk-stable] [PATCH v5 09/11] ethdev: fix shallow copy of flow API RSS action

Nélio Laranjeiro nelio.laranjeiro at 6wind.com
Tue Apr 17 11:18:24 CEST 2018


On Mon, Apr 16, 2018 at 06:22:03PM +0200, Adrien Mazarguil wrote:
> The rss_conf field is defined as a pointer to struct rte_eth_rss_conf.
> 
> Even assuming it is permanently allocated and a pointer copy is safe,
> pointed data may change and not reflect an applied flow rule anymore.
> 
> This patch aligns with testpmd by making a deep copy instead.
> 
> Fixes: 18da437b5f63 ("ethdev: add flow rule copy function")
> Cc: stable at dpdk.org
> Cc: Gaetan Rivet <gaetan.rivet at 6wind.com>
> 
> Signed-off-by: Adrien Mazarguil <adrien.mazarguil at 6wind.com>
> Cc: Thomas Monjalon <thomas at monjalon.net>
Acked-by: Nelio Laranjeiro <nelio.laranjeiro at 6wind.com>

-- 
Nélio Laranjeiro
6WIND


More information about the dev mailing list