net/octeontx2: use runtime LSO format indices
authorNithin Dabilpuram <ndabilpuram@marvell.com>
Fri, 18 Jun 2021 13:06:06 +0000 (18:36 +0530)
committerJerin Jacob <jerinj@marvell.com>
Wed, 30 Jun 2021 02:14:05 +0000 (04:14 +0200)
commit56cabfbf4affde4117652cba3c6235d1a40f4205
tree0fd662f7e7cadd1db18a69f9cdc1fd659e96161a
parentb65db6a879bd09799b96aed09a49458ae1b3644b
net/octeontx2: use runtime LSO format indices

Currently LSO formats setup initially are expected to be
compile time constants and start from 0.

Change the logic in slow and fast path so that LSO format indexes
are only determined runtime.

Fixes: 3b635472a998 ("net/octeontx2: support TSO offload")
Cc: stable@dpdk.org
Signed-off-by: Nithin Dabilpuram <ndabilpuram@marvell.com>
drivers/event/octeontx2/otx2_worker.h
drivers/net/octeontx2/otx2_ethdev.c
drivers/net/octeontx2/otx2_ethdev.h
drivers/net/octeontx2/otx2_tx.c
drivers/net/octeontx2/otx2_tx.h