]> git.baikalelectronics.ru Git - kernel.git/commit
IB/core: Introduce delay drop for a WQ
authorMaor Gottlieb <maorg@mellanox.com>
Tue, 30 May 2017 07:29:10 +0000 (10:29 +0300)
committerDoug Ledford <dledford@redhat.com>
Mon, 24 Jul 2017 14:34:28 +0000 (10:34 -0400)
commitcbc14a1a9c5f2a12c98787b6b68160413e402936
treef2b1f134342eb2d2b5965c0dbfd76bd420d8148f
parent9e6b0a2e5744c5dac6a71e62ef85b7b3b69eb166
IB/core: Introduce delay drop for a WQ

Work queue which is created with IB_WQ_FLAGS_DELAY_DROP won't
cause packet drops when there aren't receive WQEs, but will wait until
posting of receive WQEs or for some period of time that the device
was configured with.

It includes:
 * Add a new creation flag to enable delay drop functionality in a WQ.
 * A new capability was introduced - IB_RAW_PACKET_CAP_DELAY_DROP, which
   is the device's ability to delay packet drops when there aren't receive
   WQEs.

Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Reviewed-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
include/rdma/ib_verbs.h