ethdev: fix item expansion for RSS flow
authorMatan Azrad <matan@mellanox.com>
Tue, 26 Nov 2019 09:04:10 +0000 (09:04 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 26 Nov 2019 17:05:15 +0000 (18:05 +0100)
commit64edb05e29c82260a0bd1000a20023d20c123e41
treec6f1863d7c5ea6c2c2beacaf029a933fee9a10ed
parentac466a1d6c7892cc835e1ccbcdc83336c2f44701
ethdev: fix item expansion for RSS flow

When the last item in flow pattern includes "next protocol" field which
is relevant for RSS flow expansion, a new item is added to the pattern
according to the "next protocol" field. This field is called missed
field.

The missed field wrongly was not initialized what caused to some of the
flow item fields to contain garbage values.

As a result, the PMDs internal flow engine may crash.

For example, the spec value may include garbage pointer and to cause
crash.

Initialize the missed field with zeroes.

Fixes: fc2dd8dd492f ("ethdev: fix expand RSS flows")
Cc: stable@dpdk.org
Signed-off-by: Matan Azrad <matan@mellanox.com>
Acked-by: Ori Kam <orika@mellanox.com>
lib/librte_ethdev/rte_flow.c