Dennis Potter
427d715279
Fixed two minor bugs in Infiniband node
2018-07-23 16:52:38 +02:00
Dennis Potter
6296d4217e
Added a few corrections for sample size
...
* Meta data was not included in the calculation which determines if
sample should be send inline. This caused errors
* Meta data was not substracted from sample->length on receive side
2018-07-21 13:11:46 +02:00
Dennis Potter
64282b7134
Changed sequence type to uint64_t
2018-07-21 13:01:42 +02:00
Dennis Potter
591f9f73bd
Added meta data in transfer
...
ib_write() and ib_read() now point to the sequence, ts_origin, and format
members of struct sample in a separate scatter/gather element each.
ib_read() measures the time with time_now() (from villas/timing.h) and
sets all flags at receive side.
2018-07-21 12:52:25 +02:00
Dennis Potter
2c3ddfd0c2
Merge branch 'ib-rearrange-qp' into develop
...
Closes #152 . As described in #182 , we will not rearrange the Queue Pairs
for connected mode. As soon as we test many-to-one connections for the
unrealiable connection, we will look again at this issue.
2018-07-21 12:14:25 +02:00
Dennis Potter
8704683bf2
Replaced send WC stack by queue
2018-07-21 12:07:43 +02:00
Dennis Potter
0e6d962c1a
Merge branch 'ib-rearrange-qp' of git.rwth-aachen.de:acs/public/villas/VILLASnode into ib-rearrange-qp
2018-07-20 23:42:34 +02:00
Dennis Potter
a5068e28ea
Replace sleep by a better check
...
Prior to this commit, we called rdma_disconnect() and waited for a fixed
amount of time. This check was kind of arbitrary. Now, we keep polling
the receive Completion Queue until ib->conn.available_recv_wrs is zero
and all receive samples are thus given back to the framework.
2018-07-20 23:40:43 +02:00
Dennis Potter
8029c47113
Fixed bug which arrised in afb8b57156
2018-07-20 23:34:52 +02:00
Dennis Potter
be87846a5a
Fixed way of iterating scatter/gather list
2018-07-20 22:55:33 +02:00
Dennis Potter
afb8b57156
Removed option to manually add QP type
...
The QP type is dependend on the port space of the RDMA CM ID. If the
RDMA CM ID is set to TCP, the QP has to be set to a RC. If it is set to
UDP, it has to be set to UD.
2018-07-19 20:42:20 +02:00
Dennis Potter
3acc3df7c4
ib_read() now works for UDP
...
Node is now able to send data in RDMA_PS_UDP mode. Right now it creates
a new rdma_cm_id for every connection request. We could/should do this
differently
2018-07-19 20:33:41 +02:00
Dennis Potter
2b323c3781
Fixed a bug at the send side of UDP
2018-07-19 18:47:27 +02:00
Dennis Potter
cfa93292b0
Added support for RDMA_PS_UDP at send side
2018-07-19 18:32:06 +02:00
Dennis Potter
e34cceedfa
Added UD struct and added more comments
2018-07-19 18:31:47 +02:00
Dennis Potter
7a2e762a9c
Added node_type_start() to villas-signal
...
villas-signal.cpp didn't call node_type_start(). This caused the
assertion which was added in 92e4b61e2e
to fail.
2018-07-19 16:53:44 +02:00
Dennis Potter
529cfc2473
Workaround to solve hash_table_hash seg fault
...
This commit is similar to 070e2c2bde
2018-07-19 16:10:20 +02:00
Dennis Potter
a2ee85bd52
Check if cfg actually exists before trying to parse logging
2018-07-19 15:25:46 +02:00
Dennis Potter
84f85e137d
Added STATE_CONNECTED as valid state for node_read() & node_write()
2018-07-19 14:55:07 +02:00
Dennis Potter
bf8a86ff7d
Fixed typo COMMAND
2018-07-19 14:52:39 +02:00
Dennis Potter
fd48c94ddc
Changed vectorize from 64 to 1 for simplicity
2018-07-19 14:51:23 +02:00
Sonja Kolen
aaf20934fd
memory: Added a fallback to use mmap without hugepages in case mmap with hugepages fails; in case the fallback is used, a warning is provided to the user
2018-07-18 16:58:07 +02:00
Sonja Kolen
5c179a6609
Merge branch 'develop' of git.rwth-aachen.de:acs/public/villas/VILLASnode into develop
2018-07-18 15:16:48 +02:00
Sonja Kolen
5a23e64f5e
added check of memory allocation failure; added check of hash table insert failure; provide warning to the user in both cases
2018-07-18 15:15:08 +02:00
0676f867d2
hypersim: update documentation
2018-07-18 08:25:35 +02:00
Sonja Kolen
d66268b2f8
fixed indents
2018-07-17 11:38:17 +02:00
Sonja Kolen
c5806c0f79
Merge remote-tracking branch 'origin/develop' into develop
2018-07-17 11:20:56 +02:00
Sonja Kolen
6c99e45264
Multiple samples can be received in a single MQTT message ( Fixes #178 )
2018-07-17 11:20:38 +02:00
Dennis Potter
2bee7d24dd
Added rdma_event_str()
...
This replaces the manual translation of enumerations in the switch
statements.
2018-07-17 11:10:05 +02:00
dfcd27ec34
updated changelog
2018-07-17 08:46:26 +02:00
5ca2ae4439
hypersim: some minor cleanup of UCM code
2018-07-17 08:20:09 +02:00
c1e6129a64
hypersim: move documentation to Documentation repo
2018-07-17 08:14:22 +02:00
fc327b5af0
remove gitkeep file
2018-07-17 08:14:22 +02:00
c14cc34da1
hypersim: renamed directory
2018-07-17 08:00:57 +02:00
Anju
5b7dd03983
hypersim: added the first version of Hypersim client
2018-07-17 08:00:51 +02:00
2a0311f05f
socket: use correct values for sockaddr lengths ( closes #177 )
2018-07-16 21:59:23 +02:00
09742179de
memory: fix segfault when releasing hugepage memory ( closes #171 )
2018-07-16 21:16:43 +02:00
4d54af002d
memory: improve logging
2018-07-16 21:16:43 +02:00
6c4127fe1b
cmake: only compile library if included as subproject
2018-07-16 21:16:43 +02:00
f7f537c64b
cmake: do not regenerate protobuf files if not necessary
2018-07-16 21:16:43 +02:00
Anju
5b019da419
Add new directory
2018-07-16 21:14:31 +02:00
e243dce812
node: fix invalid assertion in node_type()
2018-07-16 20:26:23 +02:00
7a3abc706e
comedi: fix typo
2018-07-16 20:26:09 +02:00
7936b0f626
Merge branch 'cmake-include' into develop
2018-07-16 20:20:05 +02:00
b70c86cff6
fix indention
2018-07-16 20:17:08 +02:00
7c555ccb9c
node: fix node_{read,write}() interface for comedi and iec61850_sv
2018-07-16 20:16:59 +02:00
aac99d626e
remove obsolete Makefile
2018-07-16 20:16:22 +02:00
5bbf174a13
cmake: allow VILLASnode to be included into other CMake projects via add_subdirectory()
2018-07-16 20:16:14 +02:00
Dennis Potter
9eda397d6f
Changed Documentation of read() and write()
...
Added Doxygen documentation of a feature which was introduced in
72e627b327
2018-07-16 17:46:10 +02:00
Dennis Potter
3df5d37b15
Added warning if not all samples are returned
2018-07-16 17:10:52 +02:00