]> git.karo-electronics.de Git - linux-beck.git/commit
i40iw: Correct values for max_recv_sge, max_send_sge
authorHenry Orosco <henry.orosco@intel.com>
Thu, 10 Nov 2016 03:26:39 +0000 (21:26 -0600)
committerDoug Ledford <dledford@redhat.com>
Mon, 5 Dec 2016 21:09:34 +0000 (16:09 -0500)
commit01d0b36798732d826fbf84de8961a09b3a2fbf3f
treea3dcecf8161e3b4df1a7c860d98dae914ea2ff64
parente69c5093617afdbd2ab02c289d0adaac044dff66
i40iw: Correct values for max_recv_sge, max_send_sge

When creating QPs, ensure init_attr->cap.max_recv_sge
is clipped to MAX_FRAG_COUNT.

Expose MAX_FRAG_COUNT for max_recv_sge and max_send_sge in
i40iw_query_qp().

Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Henry Orosco <henry.orosco@intel.com>
Reviewed-By: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/i40iw/i40iw_verbs.c