]> git.karo-electronics.de Git - linux-beck.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)
commitf4d26d81ad7f599159511ca8d1a81b82dad474f6
tree8a2330e0ca33cc7961ef2cba0121d37127dbad52
parent3c2f85b8ce8acee0502d61fb53015eabd7d4c8fb
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