event/octeontx: fix SSO fast path
authorHarman Kalra <hkalra@marvell.com>
Tue, 24 May 2022 08:42:25 +0000 (14:12 +0530)
committerJerin Jacob <jerinj@marvell.com>
Thu, 9 Jun 2022 15:49:55 +0000 (17:49 +0200)
commitd430b921a4d7c5449f6e99b5ba40671b27d87adb
tree47855a30f0d82f39d5bbe004d4185c74459546d6
parent3227bc7138f5afd7593c0eb4dd6b52710f4193b7
event/octeontx: fix SSO fast path

Segmentation fault is observed as soon as any  application
with ethdev event is launched as ev->mbuf was not set properly.

Fixing sub event type violation as in OCTEONTX event device
sub_event_type is used to store the ethernet port identifier
when work is received from OCTEONTX ethernet device. This violates
the event device spec as sub_event_type should be 0 in the initial
receive stage. Setting sub_event_type to 0 after copying the port id
in single workslot mode.

Fixes: 44a2cebbd489 ("crypto/octeontx: add crypto adapter data path")
Cc: stable@dpdk.org
Signed-off-by: Harman Kalra <hkalra@marvell.com>
Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
drivers/event/octeontx/ssovf_worker.h