8ab4a6ca | 13-Mar-2019 |
Jeremy Kerr <jk@ozlabs.org> |
tests/seq: Expand sequencing test
Signed-off-by: Jeremy Kerr <jk@ozlabs.org> |
ba076944 | 13-Mar-2019 |
Jeremy Kerr <jk@ozlabs.org> |
tests: Add sequencing test
Add a small test (to be expanded later) to check behaviour of MCTP packet sequencing.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org> |
4dc8f953 | 13-Mar-2019 |
Jeremy Kerr <jk@ozlabs.org> |
tests: Add EID addressing test
Signed-off-by: Jeremy Kerr <jk@ozlabs.org> |
18925116 | 13-Mar-2019 |
Jeremy Kerr <jk@ozlabs.org> |
tests: Add simple test infrastructure
Signed-off-by: Jeremy Kerr <jk@ozlabs.org> |
bd4e3628 | 13-Mar-2019 |
Jeremy Kerr <jk@ozlabs.org> |
utils: move small utilities from tests/ dir to utils/
We want to start building up tests under tests, and the current contents are more utilities.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org> |
ca7a7c47 | 11-Mar-2019 |
Jeremy Kerr <jk@ozlabs.org> |
Merge branch 'externc' of https://github.com/dkodihal/libmctp
Signed-off-by: Jeremy Kerr <jk@ozlabs.org> |
2e89dbb0 | 05-Mar-2019 |
Jeremy Kerr <jk@ozlabs.org> |
Makefiles: Allow bindings to be omitted from libmctp.a
Some environments may want to only enable specific bindings.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org> |
3a666ce0 | 05-Mar-2019 |
Jeremy Kerr <jk@ozlabs.org> |
alloc: portability fixes
Some environments have allocation functions defined as macros, so use non-overlapping struct member names.
Also, we need libmctp.h for the API definition of mctp_set_alloc_
alloc: portability fixes
Some environments have allocation functions defined as macros, so use non-overlapping struct member names.
Also, we need libmctp.h for the API definition of mctp_set_alloc_ops.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
show more ...
|
3cb4eee4 | 05-Mar-2019 |
Jeremy Kerr <jk@ozlabs.org> |
API: Add MCTP_NO_DEFAULT_ALLOC facility
For platforms that don't have malloc/alloc/free available, we do not want to use them as defaults.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org> |
5134f0eb | 05-Mar-2019 |
Jeremy Kerr <jk@ozlabs.org> |
API: use an extern for mctp_log
Rather than having custom log implementations define their own macro for libmctp_log, this change adds it as an extern symbol. This way, implementations do not need t
API: use an extern for mctp_log
Rather than having custom log implementations define their own macro for libmctp_log, this change adds it as an extern symbol. This way, implementations do not need to include function prototypes in config.h.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
show more ...
|
f9ffd59b | 05-Mar-2019 |
Jeremy Kerr <jk@ozlabs.org> |
headers: Add stddef.h include
... we need this for size_t
Signed-off-by: Jeremy Kerr <jk@ozlabs.org> |
cc2458d9 | 28-Feb-2019 |
Jeremy Kerr <jk@ozlabs.org> |
core: Move tx queue from core to bus
The queue of pending TX packets is really specific to the bus, rather than the core.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org> |
1cd31184 | 27-Feb-2019 |
Jeremy Kerr <jk@ozlabs.org> |
API: add mctp_set_tx_enabled
Provide a method for MCTP bindings to implement flow control
Signed-off-by: Jeremy Kerr <jk@ozlabs.org> |
48f408fc | 28-Feb-2019 |
Jeremy Kerr <jk@ozlabs.org> |
serial: Don't append serial header to received packets
In change c67605bc9, we separated the serial header & tailer from the actual MCTP packet data. However, in the RX path we still included the he
serial: Don't append serial header to received packets
In change c67605bc9, we separated the serial header & tailer from the actual MCTP packet data. However, in the RX path we still included the header, which now consumes more than the allocated header space, resulting in an assertion in the RX path.
This change removes the serial-specific header data from the incoming MCTP packet.
Reported-by: Deepak Kodihalli <dkodihal@in.ibm.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
show more ...
|
0a00dca2 | 28-Feb-2019 |
Jeremy Kerr <jk@ozlabs.org> |
API,core: Add reference from binding to mctp core
All of the prototype binding implementations so far have added a reference to the core struct mctp from their binding.
This change adds a the struc
API,core: Add reference from binding to mctp core
All of the prototype binding implementations so far have added a reference to the core struct mctp from their binding.
This change adds a the struct mctp pointer to struct mctp_binding, so it doesn't need to be included in every implementation.
This also allows us to drop the struct mctp * argument where we have a reference to a binding.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
show more ...
|
7520cec0 | 28-Feb-2019 |
Jeremy Kerr <jk@ozlabs.org> |
Add reference to bus from binding
Signed-off-by: Jeremy Kerr <jk@ozlabs.org> |
a8ec7064 | 05-Mar-2019 |
Jeremy Kerr <jk@ozlabs.org> |
core: Fix incorrect EID passed to RX callbacks
We want the source EID, not the destination.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org> |
11a234e1 | 27-Feb-2019 |
Jeremy Kerr <jk@ozlabs.org> |
core: Fix potentially-unused ctx var
Signed-off-by: Jeremy Kerr <jk@ozlabs.org> |
b11ad2cf | 28-Feb-2019 |
Deepak Kodihalli <dkodihal@in.ibm.com> |
Add extern "C" to headers
Add extern "C" to headers so that they can be included by cpp code.
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com> |
383fb7b7 | 11-Feb-2019 |
Ed Tanous <ed.tanous@intel.com> |
Add CmakeLists
Signed-off-by: Ed Tanous <ed.tanous@intel.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org> |
9f101228 | 11-Feb-2019 |
Ed Tanous <ed.tanous@intel.com> |
Fix missing paren to make code build
Signed-off-by: Ed Tanous <ed.tanous@intel.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org> |
ebf9b4ee | 07-Feb-2019 |
Jeremy Kerr <jk@ozlabs.org> |
Add LICENSE
Apache-2.0.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org> |
2f7e05bd | 07-Feb-2019 |
Jeremy Kerr <jk@ozlabs.org> |
README: Add notes on integration
Signed-off-by: Jeremy Kerr <jk@ozlabs.org> |
24db71fb | 07-Feb-2019 |
Jeremy Kerr <jk@ozlabs.org> |
core: implement packetisation and reassembly
Add a naive implementation of packetisation and reassembly of MCTP messages. We use a (unbounded!) message buffer for reception, and a queue of messages
core: implement packetisation and reassembly
Add a naive implementation of packetisation and reassembly of MCTP messages. We use a (unbounded!) message buffer for reception, and a queue of messages for transmission.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
show more ...
|
73d8bc80 | 07-Feb-2019 |
Jeremy Kerr <jk@ozlabs.org> |
tests/mctp-pipe: Use SOCK_STREAM for internal serial link
Currently, we have no way to determine when the MCTP session should be closed, when using SOCK_DGRAM. While this will be the case for a "rea
tests/mctp-pipe: Use SOCK_STREAM for internal serial link
Currently, we have no way to determine when the MCTP session should be closed, when using SOCK_DGRAM. While this will be the case for a "real" serial link, we want the test program to be able to terminate.
This change uses SOCK_STREAM instead, which means that we can terminate the MCTP session on EOF on stdin. This allows the pipe to exit.
Additionally, this means that the read() boundaries may not correspond to the write() boundaries, which gives more testing to the serial state mechanism.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
show more ...
|