Skip to content

Commit

Permalink
Make work queue limits configurable in QueuePairBuilder. (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
sensille authored Nov 25, 2024
1 parent 55be7d2 commit aed0c60
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions ibverbs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -856,6 +856,22 @@ impl<'res> QueuePairBuilder<'res> {
self
}

/// Set the maximum number of send requests in the work queue
///
/// Defaults to 1.
pub fn set_max_send_wr(&mut self, max_send_wr: u32) -> &mut Self {
self.max_send_wr = max_send_wr;
self
}

/// Set the maximum number of receive requests in the work queue
///
/// Defaults to 1.
pub fn set_max_recv_wr(&mut self, max_recv_wr: u32) -> &mut Self {
self.max_recv_wr = max_recv_wr;
self
}

/// Create a new `QueuePair` from this builder template.
///
/// The returned `QueuePair` is associated with the builder's `ProtectionDomain`.
Expand Down

0 comments on commit aed0c60

Please sign in to comment.