Skip to content

Commit f47a8db

Browse files
committed
UCT/TCP: code review
1 parent 753a1c5 commit f47a8db

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/uct/tcp/tcp.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ typedef enum {
236236
UCT_TCP_REACHABILITY_MODE_ROUTE = 0,
237237
UCT_TCP_REACHABILITY_MODE_ALL = 1,
238238
UCT_TCP_REACHABILITY_MODE_LAST
239-
} uct_tcp_iface_reachability_mode_t;
239+
} uct_tcp_reachability_mode_t;
240240

241241

242242
/**
@@ -432,7 +432,7 @@ typedef struct uct_tcp_iface {
432432
ucs_time_t intvl; /* The time between individual keepalive
433433
* probes (TCP_KEEPINTVL socket option). */
434434
} keepalive;
435-
unsigned reachability_mode; /* Mode used for performing reachability check */
435+
uct_tcp_reachability_mode_t reachability_mode; /* Mode used for performing reachability check */
436436
} config;
437437

438438
struct {
@@ -470,7 +470,7 @@ typedef struct uct_tcp_iface_config {
470470
ucs_time_t intvl;
471471
} keepalive;
472472
ucs_ternary_auto_value_t ep_bind_src_addr;
473-
unsigned reachability_mode;
473+
uct_tcp_reachability_mode_t reachability_mode;
474474
} uct_tcp_iface_config_t;
475475

476476

src/uct/tcp/tcp_iface.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ static ucs_config_field_t uct_tcp_iface_config_table[] = {
128128
"The mode used for performing the reachability check\n"
129129
" - route - all routable addresses are assumed as reachable\n"
130130
" - all - all addresses are assumed as reachable, without any check",
131-
ucs_offsetof(uct_tcp_iface_config_t, reachability_mode), UCS_CONFIG_TYPE_ENUM(uct_tcp_reachability_modes)},
131+
ucs_offsetof(uct_tcp_iface_config_t, reachability_mode),
132+
UCS_CONFIG_TYPE_ENUM(uct_tcp_reachability_modes)},
132133

133134
{NULL}
134135
};

0 commit comments

Comments
 (0)