net: mana: Define max values for SGL entries
authorLong Li <longli@microsoft.com>
Thu, 3 Nov 2022 19:16:26 +0000 (12:16 -0700)
committerLeon Romanovsky <leonro@nvidia.com>
Thu, 10 Nov 2022 05:57:27 +0000 (07:57 +0200)
commitaa56549792fb348892fbbae67f6f0c71bb750b65
tree0e81caf6a7659245adcf514ddcc690cf6fba1f88
parentfd325cd648f15eb9a8b32a68de3bafc72bcfe753
net: mana: Define max values for SGL entries

The number of maximum SGl entries should be computed from the maximum
WQE size for the intended queue type and the corresponding OOB data
size. This guarantees the hardware queue can successfully queue requests
up to the queue depth exposed to the upper layer.

Reviewed-by: Dexuan Cui <decui@microsoft.com>
Signed-off-by: Long Li <longli@microsoft.com>
Link: https://lore.kernel.org/r/1667502990-2559-9-git-send-email-longli@linuxonhyperv.com
Acked-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
drivers/net/ethernet/microsoft/mana/mana_en.c
include/net/mana/gdma.h
include/net/mana/mana.h