]> git.proxmox.com Git - mirror_qemu.git/commit
hw/pvrdma: Remove max-sge command-line param
authorYuval Shaia <yuval.shaia@oracle.com>
Wed, 9 Jan 2019 19:41:23 +0000 (21:41 +0200)
committerMarcel Apfelbaum <marcel.apfelbaum@gmail.com>
Sat, 19 Jan 2019 08:31:24 +0000 (10:31 +0200)
commitffef47754a1fdae2fdcea267bd98172dc5a877c5
tree1122dc8ca0a1f176c099e8db9ab333d7e447f657
parent5a301bb9f1b33764384f25b749e30091a5abefce
hw/pvrdma: Remove max-sge command-line param

This parameter has no effect, fix it.

The function init_dev_caps sets the front-end's max-sge to MAX_SGE. Then
it checks backend's max-sge and adjust it accordingly (we can't send
more than what the device supports).

On send and recv we need to make sure the num_sge in the WQE does not
exceeds the backend device capability.
This check is done in pvrdma level so check on rdma level is deleted.

Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com>
Message-Id: <20190109194123.3468-1-yuval.shaia@oracle.com>
Reviewed-by: Marcel Apfelbaum<marcel.apfelbaum@gmail.com>
Signed-off-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
docs/pvrdma.txt
hw/rdma/rdma_backend.c
hw/rdma/rdma_backend.h
hw/rdma/vmw/pvrdma_main.c
hw/rdma/vmw/pvrdma_qp_ops.c