]> git.baikalelectronics.ru Git - kernel.git/commit
staging/rdma/hfi1: Add coalescing support for SDMA TX descriptors
authorNiranjana Vishwanathapura <niranjana.vishwanathapura@intel.com>
Mon, 26 Oct 2015 14:28:32 +0000 (10:28 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Oct 2015 08:19:22 +0000 (17:19 +0900)
commitffb9d9e11fab239ef758ce845aab6919cfff4b2d
tree8a2330e0ca33cc7961ef2cba0121d37127dbad52
parente001b069ff702142983a60dc5068625c252c0bbd
staging/rdma/hfi1: Add coalescing support for SDMA TX descriptors

This fixes transmit errors when the number of scatter gather elements in the
request is more that the number of per packet descriptors supported by the
hardware, allocate and coalesce the extra scatter gather elements into a single
buffer. The last descriptor is reserved and used for this coalesced buffer.

Verbs potentially need this support when transferring small data chunks
involving different memory regions.

Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Reviewed-by: Mitko Haralanov <mitko.haralanov@intel.com>
Signed-off-by: Niranjana Vishwanathapura <niranjana.vishwanathapura@intel.com>
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rdma/hfi1/sdma.c
drivers/staging/rdma/hfi1/sdma.h