Skip to content

Commit

Permalink
UCT/TAG: Minor styling fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
brminich committed Dec 3, 2019
1 parent 65015fb commit 76adb9f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/uct/ib/rc/accel/rc_mlx5.inl
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,7 @@ uct_rc_mlx5_iface_common_tag_recv(uct_rc_mlx5_iface_common_t *iface,
UCT_RC_MLX5_CHECK_TAG(iface);

kh_put(uct_rc_mlx5_tag_addrs, &iface->tm.tag_addrs, iov->buffer, &ret);
if (ucs_unlikely(!ret)) {
if (ucs_unlikely(ret == 0)) {
/* Do not post the same buffer more than once (even with different tags)
* to avoid memory corruption. */
return UCS_ERR_ALREADY_EXISTS;
Expand Down
8 changes: 4 additions & 4 deletions src/uct/ib/rc/accel/rc_mlx5_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ void uct_rc_mlx5_iface_common_tag_cleanup(uct_rc_mlx5_iface_common_t *iface)
{
uct_rc_mlx5_mp_hash_key_t key_gid;
uint64_t key_lid;
void *tag_addr;
void *recv_buffer;

if (!UCT_RC_MLX5_TM_ENABLED(iface)) {
return;
Expand All @@ -426,9 +426,9 @@ void uct_rc_mlx5_iface_common_tag_cleanup(uct_rc_mlx5_iface_common_t *iface)
ucs_free(iface->tm.cmd_wq.ops);
uct_rc_mlx5_tag_cleanup(iface);

kh_foreach_key(&iface->tm.tag_addrs, tag_addr, {
ucs_debug("destroying iface %p, with %p offloaded to the HW",
iface, tag_addr);
kh_foreach_key(&iface->tm.tag_addrs, recv_buffer, {
ucs_debug("destroying iface %p, with recv buffer %p offloaded to the HW",
iface, recv_buffer);
});
kh_destroy_inplace(uct_rc_mlx5_tag_addrs, &iface->tm.tag_addrs);

Expand Down

0 comments on commit 76adb9f

Please sign in to comment.