net/octeontx2: fix optimal default SQE buffer count
authorVamsi Attunuru <vattunuru@marvell.com>
Mon, 5 Aug 2019 15:37:39 +0000 (21:07 +0530)
committerJerin Jacob <jerinj@marvell.com>
Mon, 5 Aug 2019 16:22:34 +0000 (18:22 +0200)
commit4d6816814acf2f8c64e8d4c26c07a1650b205f31
tree5718460a0c25ea5a138633b1c1984e89b8d5cf8c
parent01b3da69ef06fddc84c19fad3cba0f9c80dbcc46
net/octeontx2: fix optimal default SQE buffer count

Patch extends minimum supported max_sqb_count devarg value
such that it can limit the max sqb count to 8 buffers and
also defines NIX_DEF_SQB and uses it to compute the number
of sqe buffers required for the egress traffic.

NIX_DEF_SQB is defined as 16 which is optimal across multiple
octeontx2 platforms to scale up the performance proportional
to the corresponding port/queue to lcore mappings.

Fixes: fb0198b7dc07 ("net/octeontx2: add devargs parsing functions")

Signed-off-by: Vamsi Attunuru <vattunuru@marvell.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
drivers/net/octeontx2/otx2_ethdev.c
drivers/net/octeontx2/otx2_ethdev.h
drivers/net/octeontx2/otx2_ethdev_devargs.c