Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/macro_utilities.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ macro_rules! impl_into_io_error {
/// Convert different `BuilderError`s.
/// Impl `From<XBuilderError>` for `YBuilderError`.
#[macro_export]
macro_rules! impl_from_buidler_error_for_another {
macro_rules! impl_from_builder_error_for_another {
($x:ty ,$y:ty) => {
impl From<$x> for $y {
#[inline]
Expand Down
14 changes: 7 additions & 7 deletions src/queue_pair.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use crate::{
cq_event_listener::{CQEventListener, LmrInners},
error_utilities::{log_last_os_err, log_ret_last_os_err, log_ret_last_os_err_with_note},
gid::Gid,
impl_from_buidler_error_for_another, impl_into_io_error,
impl_from_builder_error_for_another, impl_into_io_error,
memory_region::{
local::{LocalMrReadAccess, LocalMrWriteAccess, RwLocalMrInner},
remote::{RemoteMrReadAccess, RemoteMrWriteAccess},
Expand Down Expand Up @@ -141,7 +141,7 @@ impl QueuePairCap {
}
}

impl_from_buidler_error_for_another!(QueuePairCapBuilderError, QueuePairInitAttrBuilderError);
impl_from_builder_error_for_another!(QueuePairCapBuilderError, QueuePairInitAttrBuilderError);

impl_into_io_error!(QueuePairCapBuilderError);

Expand Down Expand Up @@ -290,7 +290,7 @@ impl AddressHandlerBuilder {
&mut self.grh
}

/// Get `port_num` of this buidler
/// Get `port_num` of this builder
pub(crate) fn get_port_num(&self) -> Option<u8> {
self.port_num
}
Expand All @@ -314,7 +314,7 @@ impl From<AddressHandler> for ibv_ah_attr {
}
}

impl_from_buidler_error_for_another!(AddressHandlerBuilderError, RQAttrBuilderError);
impl_from_builder_error_for_another!(AddressHandlerBuilderError, RQAttrBuilderError);

/// Gloabel route information about remote end.
/// This is useful when sending packets to another subnet.
Expand Down Expand Up @@ -359,7 +359,7 @@ impl From<GlobalRouteHeader> for ibv_global_route {
}
}

impl_from_buidler_error_for_another!(GlobalRouteHeaderBuilderError, AddressHandlerBuilderError);
impl_from_builder_error_for_another!(GlobalRouteHeaderBuilderError, AddressHandlerBuilderError);

/// The path MTU (Maximum Transfer Unit) i.e. the maximum payload size of a packet that
/// can be transferred in the path. For UC and RC QPs, when needed, the RDMA device will
Expand Down Expand Up @@ -445,14 +445,14 @@ impl RQAttrBuilder {
.dgid(*remote.gid());
}

/// Get `port_num` of this buidler
/// Get `port_num` of this builder
pub(crate) fn get_port_num(&self) -> u8 {
self.address_handler
.get_port_num()
.unwrap_or(DEFAULT_PORT_NUM)
}

/// Get source gid index of this buidler
/// Get source gid index of this builder
pub(crate) fn get_sgid_index(&self) -> u8 {
self.address_handler
.grh
Expand Down
Loading