RDMA/efa: Expose maximum TX doorbell batch
authorGal Pressman <galpress@amazon.com>
Wed, 22 Jul 2020 14:03:09 +0000 (17:03 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 29 Jul 2020 12:23:39 +0000 (09:23 -0300)
commit556c811f24b30cc883733a2eaf9e939817589231
tree23a6239e9d1a29baca816d4b970383c6e5a1906c
parentc804af2c1d3152c0cf877eeb50d60c2d49ac0cf0
RDMA/efa: Expose maximum TX doorbell batch

The device reports the maximum number of bytes to be written before
ringing the doorbell (zero means unlimited).

This patch queries the max batch size and reports it back to the userspace
library.

Link: https://lore.kernel.org/r/20200722140312.3651-2-galpress@amazon.com
Reviewed-by: Daniel Kranzdorf <dkkranzd@amazon.com>
Reviewed-by: Firas JahJah <firasj@amazon.com>
Signed-off-by: Gal Pressman <galpress@amazon.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/efa/efa_admin_cmds_defs.h
drivers/infiniband/hw/efa/efa_com_cmd.c
drivers/infiniband/hw/efa/efa_com_cmd.h
drivers/infiniband/hw/efa/efa_verbs.c
include/uapi/rdma/efa-abi.h