event/octeontx2: fix queue removal from Rx adapter
authorLukasz Bartosik <lbartosik@marvell.com>
Thu, 16 Apr 2020 15:47:40 +0000 (17:47 +0200)
committerJerin Jacob <jerinj@marvell.com>
Sat, 2 May 2020 09:47:00 +0000 (11:47 +0200)
commit534d1d4b65468deed18723fb45818275887c8ecd
tree465bb14defb3714d044b1b8c62c77b0d4c830da0
parentd52e042850147c861f31adb04ad8a65820971117
event/octeontx2: fix queue removal from Rx adapter

When eth port queue is removed from Rx adapter using
rte_event_eth_rx_adapter_queue_del() it incorrectly
initializes CQ context instead of modifying it. This
might lead to a crash when CQ context is modified
as a part of rte_eth_dev_stop() sequence as CQ will
hold invalid entries. This is responsibility of an
application to call rte_event_eth_rx_adapter_queue_del()
to remove eth port queue from Rx adapter in tear down
sequence.

Fixes: 37720fc1fba8 ("event/octeontx2: add Rx adapter")
Cc: stable@dpdk.org
Signed-off-by: Lukasz Bartosik <lbartosik@marvell.com>
Acked-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
drivers/event/octeontx2/otx2_evdev_adptr.c