Skip to content

Commit a8d1f69

Browse files
author
iddqd
committed
Add _ibv_query_gid_ex _ibv_query_gid_table implementation into ibdrv wrapper
По запросу Дмитрия Чередника commit_hash:abbd2592a6a34316ad6d8cf1f998f4b196dfa30d
1 parent a956f21 commit a8d1f69

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

contrib/libs/ibdrv/impl.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,16 @@ int ibv_query_gid(struct ibv_context *context, uint8_t port_num, int index, unio
137137
return Call(IBSym()->ibv_query_gid, context, port_num, index, gid);
138138
}
139139

140+
Y_HIDDEN
141+
int _ibv_query_gid_ex(struct ibv_context *context, uint32_t port_num, uint32_t gid_index, struct ibv_gid_entry *entry, uint32_t flags, size_t entry_size) {
142+
return Call(IBSym()->_ibv_query_gid_ex, context, port_num, gid_index, entry, flags, entry_size);
143+
}
144+
145+
Y_HIDDEN
146+
ssize_t _ibv_query_gid_table(struct ibv_context *context, struct ibv_gid_entry *entries, size_t max_entries, uint32_t flags, size_t entry_size) {
147+
return Call(IBSym()->_ibv_query_gid_table, context, entries, max_entries, flags, entry_size);
148+
}
149+
140150
Y_HIDDEN
141151
int ibv_query_port(struct ibv_context *context, uint8_t port_num, struct _compat_ibv_port_attr *port_attr) {
142152
return Call(IBSym()->ibv_query_port, context, port_num, port_attr);

contrib/libs/ibdrv/symbols.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ extern "C" {
6868
M(ibv_port_state_str, const char *(enum ibv_port_state port_state)) \
6969
M(ibv_set_ece, int (struct ibv_qp *qp, struct ibv_ece *ece)) \
7070
M(ibv_query_ece, int (struct ibv_qp *qp, struct ibv_ece *ece)) \
71+
M(_ibv_query_gid_ex, int (struct ibv_context *context, uint32_t port_num, uint32_t gid_index, struct ibv_gid_entry *entry, uint32_t flags, size_t entry_size)) \
72+
M(_ibv_query_gid_table, ssize_t (struct ibv_context *context, struct ibv_gid_entry *entries, size_t max_entries, uint32_t flags, size_t entry_size)) \
7173
// DOVERBS
7274

7375
struct TInfinibandSymbols {

0 commit comments

Comments
 (0)