ethdev: fix shallow copy of flow API RAW item
authorAdrien Mazarguil <adrien.mazarguil@6wind.com>
Mon, 21 May 2018 11:44:28 +0000 (13:44 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 22 May 2018 22:35:01 +0000 (00:35 +0200)
commita68e95faccdf77b6f4424b24b6f1307b2d217915
tree7126bdf72202635f38af7d80efc25bcef8e31ec7
parent5ff6aa2438ecd55920b7270b7badf8b38c2ad682
ethdev: fix shallow copy of flow API RAW item

Like original commit mentioned below, this fix synchronizes flow rule copy
function with testpmd's own implementation following "app/testpmd: fix copy
of raw flow item (revisited)".

It addresses a crash that occurs when feeding a RAW pattern item to
rte_flow_copy(). Besides external applications, two PMDs (bonding and
failsafe) rely on this function internally.

Note the scope of this patch is limited to the RAW pattern item and has no
impact on all others.

Fixes: 972bf3610611 ("ethdev: fix shallow copy of flow API RSS action")
Cc: stable@dpdk.org
Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
lib/librte_ethdev/rte_flow.c