]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blobdiff - drivers/infiniband/hw/efa/efa_admin_cmds_defs.h
RDMA/efa: Expose maximum TX doorbell batch
[mirror_ubuntu-hirsute-kernel.git] / drivers / infiniband / hw / efa / efa_admin_cmds_defs.h
index bef2bd2910542934a6d1caef678da488b6c2808f..03e7388af06edc7e046f1df87c37a02bfa3e513e 100644 (file)
@@ -632,6 +632,17 @@ struct efa_admin_feature_queue_attr_desc {
 
        /* Maximum number of SGEs for a single RDMA read WQE */
        u16 max_wr_rdma_sges;
+
+       /*
+        * Maximum number of bytes that can be written to SQ between two
+        * consecutive doorbells (in units of 64B). Driver must ensure that only
+        * complete WQEs are written to queue before issuing a doorbell.
+        * Examples: max_tx_batch=16 and WQE size = 64B, means up to 16 WQEs can
+        * be written to SQ between two consecutive doorbells. max_tx_batch=11
+        * and WQE size = 128B, means up to 5 WQEs can be written to SQ between
+        * two consecutive doorbells. Zero means unlimited.
+        */
+       u16 max_tx_batch;
 };
 
 struct efa_admin_feature_aenq_desc {