RDMA/nldev: Fix failure to send large messages
authorMark Zhang <markzhang@nvidia.com>
Mon, 28 Nov 2022 11:52:46 +0000 (13:52 +0200)
committerLeon Romanovsky <leon@kernel.org>
Wed, 30 Nov 2022 08:33:19 +0000 (10:33 +0200)
commitfc8f93ad3e5485d45c992233c96acd902992dfc4
tree53837589a3a50d07237a4e1dae3f795e38fdf1c9
parent67e6272d53386f9708f91c4d0015c4a1c470eef5
RDMA/nldev: Fix failure to send large messages

Return "-EMSGSIZE" instead of "-EINVAL" when filling a QP entry, so that
new SKBs will be allocated if there's not enough room in current SKB.

Fixes: 65959522f806 ("RDMA: Add support to dump resource tracker in RAW format")
Signed-off-by: Mark Zhang <markzhang@nvidia.com>
Reviewed-by: Patrisious Haddad <phaddad@nvidia.com>
Link: https://lore.kernel.org/r/b5e9c62f6b8369acab5648b661bf539cbceeffdc.1669636336.git.leonro@nvidia.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/core/nldev.c