summaryrefslogtreecommitdiff
path: root/scripts/basic/split-include.c
diff options
context:
space:
mode:
authorSahil Chandna <sahilchandna@linux.microsoft.com>2026-09-01 07:17:58 -0500
committerJakub Kicinski <kuba@kernel.org>2026-09-04 18:36:38 -0700
commit80dd7e754b3aa9637a0758ad93fa209f9650ec48 (patch)
treecd81b5a9b8f1f60bc5327e547f70232a43579905 /scripts/basic/split-include.c
parentdb88216424a37e9209bb7834453c568e7f4604f5 (diff)
downloadlinux-80dd7e754b3aa9637a0758ad93fa209f9650ec48.tar.gz
linux-80dd7e754b3aa9637a0758ad93fa209f9650ec48.zip
net: mana: Reserve extra CQ slot for the fence completion CQE
The RX completion queue is sized to hold exactly one CQE per posted RX WQE. MANA_FENCE_RQ makes hardware post an additional CQE_RX_OBJECT_FENCE after the packet CQEs. The current sizing reserves no extra slot for it and in rare cases, CQ has no guaranteed slot for the fence CQE when it is full of packet CQEs. This can lead to dropping the fence completion while the driver waits holding RTNL lock throughout the timeout duration. Reserve one extra CQE slot for CQE_RX_OBJECT_FENCE. mana_gd_alloc_memory() requires queue_size to be a power-of-two and at least MANA_PAGE_SIZE; the reservation pushes cq_size past a power-of-two, so round up the CQ size in mana_create_rxq(). Cc: stable@vger.kernel.org Fixes: 6cc74443a773 ("net: mana: Add RX fencing") Signed-off-by: Sahil Chandna <sahilchandna@linux.microsoft.com> Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com> Link: https://patch.msgid.link/20260901121837.3503240-1-sahilchandna@linux.microsoft.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/basic/split-include.c')
0 files changed, 0 insertions, 0 deletions