summaryrefslogtreecommitdiffstats
path: root/include/net/mana
diff options
context:
space:
mode:
authorLong Li <longli@microsoft.com>2023-05-13 23:18:15 -0700
committerJason Gunthorpe <jgg@nvidia.com>2023-06-01 12:52:01 -0300
commit2145328515c8fa9b8a9f7889250bc6c032f2a0e6 (patch)
tree3704863ceec086f68597362d9ddf7594ca904039 /include/net/mana
parent8c1ee346da583718fb0a7791a1f84bdafb103caf (diff)
downloadlinux-2145328515c8fa9b8a9f7889250bc6c032f2a0e6.tar.gz
linux-2145328515c8fa9b8a9f7889250bc6c032f2a0e6.tar.bz2
linux-2145328515c8fa9b8a9f7889250bc6c032f2a0e6.zip
RDMA/mana_ib: Use v2 version of cfg_rx_steer_req to enable RX coalescing
With RX coalescing, one CQE entry can be used to indicate multiple packets on the receive queue. This saves processing time and PCI bandwidth over the CQ. The MANA Ethernet driver also uses the v2 version of the protocol. It doesn't use RX coalescing and its behavior is not changed. Link: https://lore.kernel.org/r/1684045095-31228-1-git-send-email-longli@linuxonhyperv.com Signed-off-by: Long Li <longli@microsoft.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'include/net/mana')
-rw-r--r--include/net/mana/mana.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/net/mana/mana.h b/include/net/mana/mana.h
index cd386aa7c7cc..1512bd48df81 100644
--- a/include/net/mana/mana.h
+++ b/include/net/mana/mana.h
@@ -581,7 +581,7 @@ struct mana_fence_rq_resp {
}; /* HW DATA */
/* Configure vPort Rx Steering */
-struct mana_cfg_rx_steer_req {
+struct mana_cfg_rx_steer_req_v2 {
struct gdma_req_hdr hdr;
mana_handle_t vport;
u16 num_indir_entries;
@@ -594,6 +594,8 @@ struct mana_cfg_rx_steer_req {
u8 reserved;
mana_handle_t default_rxobj;
u8 hashkey[MANA_HASH_KEY_SIZE];
+ u8 cqe_coalescing_enable;
+ u8 reserved2[7];
}; /* HW DATA */
struct mana_cfg_rx_steer_resp {