numam-dpdk/drivers/event
Olivier Matz ab059e82e1 event/sw: fix flow ID init in self test
The issue is seen by unit tests:

MALLOC_PERTURB_=204 \
DPDK_TEST=eventdev_selftest_sw \
/root/dpdk/x86_64-native-linuxapp-gcc/app/test/dpdk-test -c 0xff
(...)
*** Running XStats ID Reset test...
12: 1761: qid_0_port_2_pinned_flows value , expected 1 got 7
1778: qid_0_port_2_pinned_flows value incorrect, expected 1 got 7
ERROR - XStats ID Reset test FAILED.
SW Eventdev Selftest Failed.
Test Failed

The flow ID is not set in the event, which results in an undefined
flow, whose value depends on what was previously in stack. Having
different flows for the packets makes the test to fail, since only one
flow is expected.

This only happens in -O3, where the same stack area is shared by the
event object and the address of the mbuf allocated in rte_gen_arp().

Fix this by properly initializing the flow id.

Bugzilla ID: 1101
Fixes: e21df4b062 ("test/eventdev: add SW xstats tests")
Cc: stable@dpdk.org

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
2022-10-21 11:42:08 +02:00
..
cnxk eventdev: increase xstats ID width to 64 bits 2022-10-21 11:42:08 +02:00
dlb2 eventdev: increase xstats ID width to 64 bits 2022-10-21 11:42:08 +02:00
dpaa eventdev: introduce event cryptodev vector type 2022-10-02 20:33:24 +02:00
dpaa2 net/dpaa2: check free enqueue descriptors before Tx 2022-10-07 17:19:03 +02:00
dsw eventdev: increase xstats ID width to 64 bits 2022-10-21 11:42:08 +02:00
octeontx eventdev: introduce event cryptodev vector type 2022-10-02 20:33:24 +02:00
opdl eventdev: increase xstats ID width to 64 bits 2022-10-21 11:42:08 +02:00
skeleton drivers: mark SW PMDs to support disabling IOVA as PA 2022-10-09 13:14:57 +02:00
sw event/sw: fix flow ID init in self test 2022-10-21 11:42:08 +02:00
meson.build drivers: remove octeontx2 drivers 2022-01-12 15:36:32 +01:00