]> git.proxmox.com Git - mirror_kronosnet.git/log
mirror_kronosnet.git
8 years agoMerge pull request #15 from chrissie-c/master
Fabio M. Di Nitto [Fri, 21 Oct 2016 13:14:26 +0000 (15:14 +0200)]
Merge pull request #15 from chrissie-c/master

config: Make libtap & kronosnetd optional

8 years agoMake sure we build libtap if kronosnetd is also being built
Christine Caulfield [Fri, 21 Oct 2016 12:51:31 +0000 (13:51 +0100)]
Make sure we build libtap if kronosnetd is also being built

I didn't think it worth checking for and using local libtap,
if anybody else wants that I will take patches.

Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>
8 years agoconfig: Make libtap & kronosnetd optional
Christine Caulfield [Fri, 21 Oct 2016 10:23:17 +0000 (11:23 +0100)]
config: Make libtap & kronosnetd optional

Signed-off-by: Christine Caulfield <ccaulfie@redhat.com>
8 years agoMerge pull request #14 from jfriesse/include-compat-h
Fabio M. Di Nitto [Wed, 19 Oct 2016 07:35:15 +0000 (09:35 +0200)]
Merge pull request #14 from jfriesse/include-compat-h

[libknet] Really use compat when needed

8 years ago[libknet] Really use compat when needed
Jan Friesse [Wed, 19 Oct 2016 07:22:30 +0000 (09:22 +0200)]
[libknet] Really use compat when needed

Previous patch added compatatibility layer for systems without
(recv|send)mmsg but sadly forgot include compat.h when needed.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
8 years agoMerge pull request #13 from jfriesse/genericmmsg
Fabio M. Di Nitto [Tue, 18 Oct 2016 11:32:35 +0000 (13:32 +0200)]
Merge pull request #13 from jfriesse/genericmmsg

[libknet] Support systems without (send|recv)mmsg

8 years ago[libknet] Support systems without (send|recv)mmsg
Jan Friesse [Thu, 13 Oct 2016 12:31:13 +0000 (14:31 +0200)]
[libknet] Support systems without (send|recv)mmsg

Implemented are generic (slightly reduced functionality) functions and
for systems with syscall available but libc prototypes unavailable
also syscall wrapper.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
8 years ago[send/recv] err is never <0 in that code path
Fabio M. Di Nitto [Sat, 15 Oct 2016 12:10:42 +0000 (14:10 +0200)]
[send/recv] err is never <0 in that code path

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[listener] fix listener sock configuration to match other sockets
Fabio M. Di Nitto [Sat, 15 Oct 2016 12:09:00 +0000 (14:09 +0200)]
[listener] fix listener sock configuration to match other sockets

add send buffer and avoid EAGAIN issues on high load by delegating
buffering to the kernel

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years agoMerge pull request #12 from jfriesse/lib64
Fabio M. Di Nitto [Thu, 13 Oct 2016 13:13:34 +0000 (15:13 +0200)]
Merge pull request #12 from jfriesse/lib64

[build] Make sure lib64 is used when available

8 years agoMerge pull request #11 from jfriesse/donotoverridesyncindex
Fabio M. Di Nitto [Thu, 13 Oct 2016 13:13:07 +0000 (15:13 +0200)]
Merge pull request #11 from jfriesse/donotoverridesyncindex

[libknet] Do not override symbols

8 years agoMerge pull request #10 from jfriesse/removeprlimit
Fabio M. Di Nitto [Thu, 13 Oct 2016 13:12:53 +0000 (15:12 +0200)]
Merge pull request #10 from jfriesse/removeprlimit

[libknet] Use getrlimit instead of prlimit

8 years ago[build] Make sure lib64 is used when available
Jan Friesse [Thu, 13 Oct 2016 12:27:23 +0000 (14:27 +0200)]
[build] Make sure lib64 is used when available

Default location for libraries is PREFIX/usr/lib. This doesn't work well
on systems with mixed 64 and 32-bit libs.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
8 years ago[libknet] Do not override symbols
Jan Friesse [Thu, 13 Oct 2016 12:25:25 +0000 (14:25 +0200)]
[libknet] Do not override symbols

sync and index are both stdlib symbols so it's better not to use them as
function arguments.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
8 years ago[libknet] Use getrlimit instead of prlimit
Jan Friesse [Thu, 13 Oct 2016 09:36:50 +0000 (11:36 +0200)]
[libknet] Use getrlimit instead of prlimit

prlimit is Linux specific. Because passed pid is 0, we can replace
prlimit call by portable getrlimit without loose of functionality.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
8 years ago[tests] Enable pmtud setfreq test in helgrind context
Fabio M. Di Nitto [Thu, 15 Sep 2016 09:05:55 +0000 (11:05 +0200)]
[tests] Enable pmtud setfreq test in helgrind context

update helgrind suppression file

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[PMTUd] rewrite thread to follow the same footsteps of heartbeat thread
Fabio M. Di Nitto [Thu, 15 Sep 2016 09:02:46 +0000 (11:02 +0200)]
[PMTUd] rewrite thread to follow the same footsteps of heartbeat thread

drop all those notification mechanisms that are a locking nightmare
with very little to none gain and use a loop similar to heartbeat.

Also break down the code in 3 sections:
- main thread loop
- pmtud data gathering per link
- pmtud data gathering for all hosts/links

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[threads] move thread timer resolution to common section
Fabio M. Di Nitto [Thu, 15 Sep 2016 09:01:22 +0000 (11:01 +0200)]
[threads] move thread timer resolution to common section

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[tests] move all API checks makefile bits to a separate file
Fabio M. Di Nitto [Tue, 13 Sep 2016 14:09:13 +0000 (16:09 +0200)]
[tests] move all API checks makefile bits to a separate file

prepare for int(ernal)_ and fun(ctional)_ tests

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[tests] drop normal info and leave only progress/warnings/errors
Fabio M. Di Nitto [Tue, 13 Sep 2016 13:34:49 +0000 (15:34 +0200)]
[tests] drop normal info and leave only progress/warnings/errors

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[tests] Add knet_handle_enable_pmtud_notify tests
Fabio M. Di Nitto [Tue, 13 Sep 2016 13:21:17 +0000 (15:21 +0200)]
[tests] Add knet_handle_enable_pmtud_notify tests

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[tests] remove unnecessary host_remove
Fabio M. Di Nitto [Tue, 13 Sep 2016 13:17:16 +0000 (15:17 +0200)]
[tests] remove unnecessary host_remove

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[tests] Add knet_handle_pmtud_get tests
Fabio M. Di Nitto [Tue, 13 Sep 2016 12:39:20 +0000 (14:39 +0200)]
[tests] Add knet_handle_pmtud_get tests

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[PMTUd] Fix knet_handle_pmtud_get API sanity checks
Fabio M. Di Nitto [Tue, 13 Sep 2016 12:38:46 +0000 (14:38 +0200)]
[PMTUd] Fix knet_handle_pmtud_get API sanity checks

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[tests] Add knet_handle_pmtud_getfreq tests
Fabio M. Di Nitto [Tue, 13 Sep 2016 09:53:41 +0000 (11:53 +0200)]
[tests] Add knet_handle_pmtud_getfreq tests

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[PMTUd] Fix getfreq API check
Fabio M. Di Nitto [Tue, 13 Sep 2016 09:25:36 +0000 (11:25 +0200)]
[PMTUd] Fix getfreq API check

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years agoRevert "[tests] enable memcheck and helgrind checks by default"
Fabio M. Di Nitto [Tue, 13 Sep 2016 06:46:49 +0000 (08:46 +0200)]
Revert "[tests] enable memcheck and helgrind checks by default"

This reverts commit 7d3ca6729c224c6a592a71ba8813f3d5b811912c.

8 years ago[tests] enable memcheck and helgrind checks by default
Fabio M. Di Nitto [Tue, 13 Sep 2016 06:43:20 +0000 (08:43 +0200)]
[tests] enable memcheck and helgrind checks by default

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[tests] add api_knet_handle_pmtud_setfreq tests
Fabio M. Di Nitto [Sun, 11 Sep 2016 13:11:00 +0000 (15:11 +0200)]
[tests] add api_knet_handle_pmtud_setfreq tests

currently not enabled for helgrind checks. PMTUd thread needs a good rewrite first
but the API is fine.

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[tests] expand knet_send for basic send checks
Fabio M. Di Nitto [Sun, 11 Sep 2016 12:54:32 +0000 (14:54 +0200)]
[tests] expand knet_send for basic send checks

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[tests] add api_knet_send_sync tests and update helgrind suppression file
Fabio M. Di Nitto [Sun, 11 Sep 2016 12:27:43 +0000 (14:27 +0200)]
[tests] add api_knet_send_sync tests and update helgrind suppression file

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[send/recv] Fix checks for knet_send_sync and move sync test earlier
Fabio M. Di Nitto [Sun, 11 Sep 2016 12:27:01 +0000 (14:27 +0200)]
[send/recv] Fix checks for knet_send_sync and move sync test earlier

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[tests] print warnings for tests with exception enabled
Fabio M. Di Nitto [Sun, 11 Sep 2016 06:47:09 +0000 (08:47 +0200)]
[tests] print warnings for tests with exception enabled

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[tests] export check type to all tests
Fabio M. Di Nitto [Sun, 11 Sep 2016 06:33:54 +0000 (08:33 +0200)]
[tests] export check type to all tests

This allows to skip/warn on some tests while we fix the PMTUd thread

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[tests] remove stray line
Fabio M. Di Nitto [Tue, 6 Sep 2016 04:12:12 +0000 (06:12 +0200)]
[tests] remove stray line

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[tests] add knet_send tests
Fabio M. Di Nitto [Sun, 4 Sep 2016 06:42:21 +0000 (08:42 +0200)]
[tests] add knet_send tests

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[handle] Allow threads to recognized shutdown before stopping them.
Fabio M. Di Nitto [Sun, 4 Sep 2016 06:40:11 +0000 (08:40 +0200)]
[handle] Allow threads to recognized shutdown before stopping them.

On busy threads and shutdown, there is a chance that the thread
didn't have time to process the shutdown requests and even tho
we are closing down, some locks can be destroyed while still locked.

In theory we could have each thread report that it has ack'ed the shutdown
and then close, but a sleep seems to be more than good enough for now.

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[send/recv] reworking locking on send to link
Fabio M. Di Nitto [Sun, 4 Sep 2016 06:38:41 +0000 (08:38 +0200)]
[send/recv] reworking locking on send to link

protect reading of datafd when processing outgoing data
and avoid unnecessary double locking in _handle_send_to_links
(calling functions both uses locking already).

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[handle] expand knet_send input sanity checks
Fabio M. Di Nitto [Sun, 4 Sep 2016 06:37:42 +0000 (08:37 +0200)]
[handle] expand knet_send input sanity checks

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[tests] fix ping_test to deal with knet_recv API fixes
Fabio M. Di Nitto [Sun, 4 Sep 2016 06:10:11 +0000 (08:10 +0200)]
[tests] fix ping_test to deal with knet_recv API fixes

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[tests] fix memcpm test and typos
Fabio M. Di Nitto [Sun, 4 Sep 2016 04:49:17 +0000 (06:49 +0200)]
[tests] fix memcpm test and typos

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[tests] Add knet_recv tests
Fabio M. Di Nitto [Sat, 3 Sep 2016 11:06:19 +0000 (13:06 +0200)]
[tests] Add knet_recv tests

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[handle] fix checks around knet_recv
Fabio M. Di Nitto [Sat, 3 Sep 2016 11:06:00 +0000 (13:06 +0200)]
[handle] fix checks around knet_recv

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[tests] add knet_handle_get_datafd tests
Fabio M. Di Nitto [Sun, 28 Aug 2016 17:00:44 +0000 (19:00 +0200)]
[tests] add knet_handle_get_datafd tests

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[tests] add knet_handle_get_channel tests
Fabio M. Di Nitto [Sun, 28 Aug 2016 16:54:21 +0000 (18:54 +0200)]
[tests] add knet_handle_get_channel tests

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[tests] add knet_handle_remove_datafd tests
Fabio M. Di Nitto [Sun, 28 Aug 2016 16:29:59 +0000 (18:29 +0200)]
[tests] add knet_handle_remove_datafd tests

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[tests] add knet_handle_add_datafd tests
Fabio M. Di Nitto [Sun, 28 Aug 2016 15:46:48 +0000 (17:46 +0200)]
[tests] add knet_handle_add_datafd tests

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[tests] drop suprious cleanup entry
Fabio M. Di Nitto [Sun, 28 Aug 2016 15:46:27 +0000 (17:46 +0200)]
[tests] drop suprious cleanup entry

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[tests] add knet_handle_enable_sock_notify tests
Fabio M. Di Nitto [Sun, 28 Aug 2016 07:53:14 +0000 (09:53 +0200)]
[tests] add knet_handle_enable_sock_notify tests

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[tests] add knet_handle_enable_filter tests
Fabio M. Di Nitto [Sun, 28 Aug 2016 06:52:33 +0000 (08:52 +0200)]
[tests] add knet_handle_enable_filter tests

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[tests] add knet_host_enable_status_change_notify tests
Fabio M. Di Nitto [Fri, 26 Aug 2016 09:30:07 +0000 (11:30 +0200)]
[tests] add knet_host_enable_status_change_notify tests

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[tests] add knet_host_get_status tests
Fabio M. Di Nitto [Fri, 26 Aug 2016 09:03:09 +0000 (11:03 +0200)]
[tests] add knet_host_get_status tests

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[tests] add knet_link_get_status tests
Fabio M. Di Nitto [Sun, 21 Aug 2016 09:31:07 +0000 (11:31 +0200)]
[tests] add knet_link_get_status tests

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[tests] re-order test executions based on class
Fabio M. Di Nitto [Sun, 21 Aug 2016 06:26:31 +0000 (08:26 +0200)]
[tests] re-order test executions based on class

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[tests] align coding style and error checking
Fabio M. Di Nitto [Sun, 21 Aug 2016 06:17:07 +0000 (08:17 +0200)]
[tests] align coding style and error checking

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[tests] add knet_handle_setfwd tests
Fabio M. Di Nitto [Sun, 21 Aug 2016 06:01:42 +0000 (08:01 +0200)]
[tests] add knet_handle_setfwd tests

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[crypto] fix nss init/shutdown memory leaks
Fabio M. Di Nitto [Wed, 17 Aug 2016 08:39:30 +0000 (10:39 +0200)]
[crypto] fix nss init/shutdown memory leaks

make nss_init more robust across invokations

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[build] separate memcheck and helgrind suppressions files
Fabio M. Di Nitto [Wed, 17 Aug 2016 08:38:47 +0000 (10:38 +0200)]
[build] separate memcheck and helgrind suppressions files

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[tests] add knet_handle_crypto tests
Fabio M. Di Nitto [Sat, 13 Aug 2016 04:48:58 +0000 (06:48 +0200)]
[tests] add knet_handle_crypto tests

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[crypto] fix knet_handle_crypto config checks
Fabio M. Di Nitto [Sat, 13 Aug 2016 04:47:41 +0000 (06:47 +0200)]
[crypto] fix knet_handle_crypto config checks

remove redundant and duplicated code from nsscrypto

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[tests] fix out-of-tree path to valgrind suppression file
Fabio M. Di Nitto [Fri, 12 Aug 2016 14:09:27 +0000 (16:09 +0200)]
[tests] fix out-of-tree path to valgrind suppression file

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[build] make clang happy
Fabio M. Di Nitto [Fri, 12 Aug 2016 14:05:22 +0000 (16:05 +0200)]
[build] make clang happy

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[crypto] drop redudant checks
Fabio M. Di Nitto [Fri, 12 Aug 2016 14:04:59 +0000 (16:04 +0200)]
[crypto] drop redudant checks

spotted by clang

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[build] make clang happy
Fabio M. Di Nitto [Fri, 12 Aug 2016 13:56:15 +0000 (15:56 +0200)]
[build] make clang happy

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[handle] Fix check for malloc result
Fabio M. Di Nitto [Fri, 12 Aug 2016 13:55:41 +0000 (15:55 +0200)]
[handle] Fix check for malloc result

spotted by clang

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[build] fix configure.ac to deal with clang return codes being weird
Fabio M. Di Nitto [Fri, 12 Aug 2016 13:39:20 +0000 (15:39 +0200)]
[build] fix configure.ac to deal with clang return codes being weird

when testing for an option alone clang will return a warning and RC=0
unless -Werror is also specified, and that warning switch to RC=1.

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[tests] fix missing check for api_knet_link_get_priority
Fabio M. Di Nitto [Fri, 12 Aug 2016 10:41:29 +0000 (12:41 +0200)]
[tests] fix missing check for api_knet_link_get_priority

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[tests] add knet_link_get_link_list tests
Fabio M. Di Nitto [Fri, 12 Aug 2016 10:36:19 +0000 (12:36 +0200)]
[tests] add knet_link_get_link_list tests

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[tests] add knet_link_get_enable tests and fix a potential segfault
Fabio M. Di Nitto [Fri, 12 Aug 2016 05:47:13 +0000 (07:47 +0200)]
[tests] add knet_link_get_enable tests and fix a potential segfault

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[tests] fixup knet_link_set_enable tests
Fabio M. Di Nitto [Fri, 12 Aug 2016 04:11:37 +0000 (06:11 +0200)]
[tests] fixup knet_link_set_enable tests

add disable code checking and silence a helgrind warning.

helgrind complains about the heartbeat code writing back to the link
status vs knet_host_add.

knet_host_add is using an wr lock, heartbeat code a read lock.

the heartbeat code is the only one changing two ping timers values.
nothing else in the code is using/changing them.

knet_host_add does a memset at alloc time.

tho, it's impossible to hit the HB code _before_ or _during_ knet_host_add,
therefor it's safe to silence the warning.

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[tests] add knet_link_set_enable tests
Fabio M. Di Nitto [Thu, 11 Aug 2016 04:09:46 +0000 (06:09 +0200)]
[tests] add knet_link_set_enable tests

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[tests] add knet_link_get_priority tests
Fabio M. Di Nitto [Wed, 10 Aug 2016 13:02:38 +0000 (15:02 +0200)]
[tests] add knet_link_get_priority tests

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[tests] add knet_link_set_priority tests
Fabio M. Di Nitto [Tue, 9 Aug 2016 03:51:18 +0000 (05:51 +0200)]
[tests] add knet_link_set_priority tests

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[tests] add progress message
Fabio M. Di Nitto [Fri, 5 Aug 2016 06:03:01 +0000 (08:03 +0200)]
[tests] add progress message

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[build] chose between the lesser of 2 evils
Fabio M. Di Nitto [Sat, 2 Jul 2016 05:00:56 +0000 (07:00 +0200)]
[build] chose between the lesser of 2 evils

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[tests] rename all tests to add postfix _test
Fabio M. Di Nitto [Sat, 2 Jul 2016 04:19:19 +0000 (06:19 +0200)]
[tests] rename all tests to add postfix _test

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[link] rename knet_link_get_timeout to knet_link_get_ping_timers and add related...
Fabio M. Di Nitto [Fri, 1 Jul 2016 14:46:18 +0000 (16:46 +0200)]
[link] rename knet_link_get_timeout to knet_link_get_ping_timers and add related tests

Also in the process, make sure to init timers when configuring a link
and export link defaults in libknet.h

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[link] rename knet_link_set_timeout to knet_link_set_ping_timers and related tests
Fabio M. Di Nitto [Fri, 1 Jul 2016 11:38:58 +0000 (13:38 +0200)]
[link] rename knet_link_set_timeout to knet_link_set_ping_timers and related tests

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[tests] add knet_link_get_pong_count tests
Fabio M. Di Nitto [Fri, 1 Jul 2016 10:48:46 +0000 (12:48 +0200)]
[tests] add knet_link_get_pong_count tests

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[tests] fix knet_link_set_pong_count check
Fabio M. Di Nitto [Fri, 1 Jul 2016 10:43:38 +0000 (12:43 +0200)]
[tests] fix knet_link_set_pong_count check

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[tests] Add knet_link_set_pong_count tests
Fabio M. Di Nitto [Fri, 1 Jul 2016 08:43:47 +0000 (10:43 +0200)]
[tests] Add knet_link_set_pong_count tests

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[tests] remove unused variable
Fabio M. Di Nitto [Fri, 1 Jul 2016 08:34:35 +0000 (10:34 +0200)]
[tests] remove unused variable

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[link] fix knet_link_get_config API and add related tests
Fabio M. Di Nitto [Fri, 1 Jul 2016 05:12:38 +0000 (07:12 +0200)]
[link] fix knet_link_get_config API and add related tests

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[libtap] make testing of symbols more consistent with libknet
Fabio M. Di Nitto [Thu, 30 Jun 2016 05:49:10 +0000 (07:49 +0200)]
[libtap] make testing of symbols more consistent with libknet

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[build] be consistent in building libraries and use same export standards
Fabio M. Di Nitto [Thu, 30 Jun 2016 04:57:12 +0000 (06:57 +0200)]
[build] be consistent in building libraries and use same export standards

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[tests] make it consistent and easier to run check-memcheck and check-helgrind
Fabio M. Di Nitto [Thu, 30 Jun 2016 04:50:51 +0000 (06:50 +0200)]
[tests] make it consistent and easier to run check-memcheck and check-helgrind

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[tests] add api_knet_link_set_config tests
Fabio M. Di Nitto [Wed, 29 Jun 2016 04:27:29 +0000 (06:27 +0200)]
[tests] add api_knet_link_set_config tests

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[tests] don't sort output and use header order to display API calls
Fabio M. Di Nitto [Mon, 27 Jun 2016 12:58:04 +0000 (14:58 +0200)]
[tests] don't sort output and use header order to display API calls

makes it easier to follow the logic

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[tests] extend api test coverage to match header and binary exported symbols
Fabio M. Di Nitto [Sun, 26 Jun 2016 12:05:56 +0000 (14:05 +0200)]
[tests] extend api test coverage to match header and binary exported symbols

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[libknet] exports only public API symbols
Fabio M. Di Nitto [Sun, 26 Jun 2016 06:04:02 +0000 (08:04 +0200)]
[libknet] exports only public API symbols

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[tests] fix api_knet_log_set_loglevel incorrect exit sequence
Fabio M. Di Nitto [Sun, 26 Jun 2016 04:18:32 +0000 (06:18 +0200)]
[tests] fix api_knet_log_set_loglevel incorrect exit sequence

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[tests] Add knet_log_get_loglevel tests
Fabio M. Di Nitto [Sun, 26 Jun 2016 04:17:09 +0000 (06:17 +0200)]
[tests] Add knet_log_get_loglevel tests

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[tests] add knet_log_set_loglevel tests
Fabio M. Di Nitto [Sun, 26 Jun 2016 04:02:58 +0000 (06:02 +0200)]
[tests] add knet_log_set_loglevel tests

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[build] add comment
Fabio M. Di Nitto [Sat, 25 Jun 2016 06:54:04 +0000 (08:54 +0200)]
[build] add comment

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[logging] fix knet_log_get_loglevel_id crash, return code and add related tests
Fabio M. Di Nitto [Sat, 25 Jun 2016 06:42:34 +0000 (08:42 +0200)]
[logging] fix knet_log_get_loglevel_id crash, return code and add related tests

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[logging] fix knet_log_get_loglevel_name crash, return correct values and add related...
Fabio M. Di Nitto [Sat, 25 Jun 2016 05:49:56 +0000 (07:49 +0200)]
[logging] fix knet_log_get_loglevel_name crash, return correct values and add related tests

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[logging] Fix knet_log_get_subsystem_name crash, make call consistent and add related...
Fabio M. Di Nitto [Sat, 25 Jun 2016 04:41:38 +0000 (06:41 +0200)]
[logging] Fix knet_log_get_subsystem_name crash, make call consistent and add related tests

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[logging] fix knet_log_get_subsystem_id crash and add related tests
Fabio M. Di Nitto [Sat, 25 Jun 2016 04:32:54 +0000 (06:32 +0200)]
[logging] fix knet_log_get_subsystem_id crash and add related tests

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[host] fix possible race condition in accessing host data
Fabio M. Di Nitto [Fri, 24 Jun 2016 13:04:10 +0000 (15:04 +0200)]
[host] fix possible race condition in accessing host data

bonus: remove a lock used on all threads all the time
cons: traffic can pause more often towards a host if another host links
      are not stable

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
8 years ago[host] fix knet_host_get_policy API and add related tests
Fabio M. Di Nitto [Fri, 24 Jun 2016 12:20:14 +0000 (14:20 +0200)]
[host] fix knet_host_get_policy API and add related tests

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>