Skip to content

Commit

Permalink
Project import generated by Copybara.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 369968702
  • Loading branch information
RDMA authored and springbo committed Apr 22, 2021
1 parent 56860c8 commit 3de905d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,14 @@ flag | default | description
-----|---------|------------
verbs_mtu | 4096 | Changes the mtu size for qp configuration. Note that some adapters may have limited support for 4096 so this flag must be set to be within device contraints
no_ipv6_for_mtu | false | If set, will only enumerate ports with ipv4 addresses.
device_name | none | If set, will attempt to open the named device for all tests. If the device is not found **rdma_unit_test** will list the available devices.


## Device Support
**rdma-unit-test** uses ibv_get_device_list to find all available devices. By
default **rdma-unit-test** will use the first device found with an active port.
To select a difference device name or port use the **--device_name** flag.

This package has been tested on the following adapters;

* Mellonox ConnectX-3
Expand Down
3 changes: 2 additions & 1 deletion cases/loopback_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ class LoopbackTest : public BasicFixture {
DCHECK_EQ(client.atomic_buffer.size(), 0UL)
<< "Atomic buffer already initialized";
client.atomic_buffer = ibv_.AllocBuffer(kBufferMemoryPages);
DCHECK_EQ(reinterpret_cast<uintptr_t>(client.atomic_buffer.data()) % 8, 0);
DCHECK_EQ(reinterpret_cast<uintptr_t>(client.atomic_buffer.data()) % 8,
0UL);
for (size_t i = 0; i < client.atomic_buffer.size(); i += sizeof(content)) {
*reinterpret_cast<uint64_t*>(client.atomic_buffer.data() + i) = content;
}
Expand Down

0 comments on commit 3de905d

Please sign in to comment.