event/octeontx: fix partial Rx packet handling
authorPavan Nikhilesh <pbhagavatula@marvell.com>
Wed, 27 Nov 2019 12:36:47 +0000 (18:06 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 27 Nov 2019 18:05:18 +0000 (19:05 +0100)
commit4a2121667445280e9966b4dbe673d4eca18d50a2
tree2c44181ddda23952a1f1f826b719859bcd5f4e60
parentc8a1a172ae2b4535b57bcf194a731334246a5a35
event/octeontx: fix partial Rx packet handling

When net/octeontx is connected to event/octeontx as an event Rx adapter,
PKI aka 'net/octeontx' can forward packets directly to SSO aka
'event/octeontx'.
When pumping traffic to PKI if flow control is disabled internal FIFOs
might be overrun causing partial l2 packets to be enqueued.
SSO receives <31:0> TAG tag calculated by PKI, in normal cases <31:28>
is always 0 which signifies RTE_EVENT_TYPE_ETHDEV. But in case of
partial received packets PKI sets the <31:0> TAG as 0xFFFFFFFF which
is an invalid event type.

Add a check to see if TAG is 0xFFFFFFFF and free the partial receive
packet.

Fixes: d0d654986018 ("net/octeontx: support event Rx adapter")
Cc: stable@dpdk.org
Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
drivers/event/octeontx/ssovf_worker.h