Branch: refs/heads/threads-improvement
Home: https://github.com/kronosnet/kronosnet
Commit: 0e9ed1856686dab41f5e20dbbf6c59036c1ca626
https://github.com/kronosnet/kronosnet/commit/0e9ed1856686dab41f5e20dbbf6c5…
Author: Fabio M. Di Nitto <fdinitto(a)redhat.com>
Date: 2018-12-21 (Fri, 21 Dec 2018)
Changed paths:
M libknet/handle.c
M libknet/threads_common.c
M libknet/threads_common.h
M libknet/threads_dsthandler.c
M libknet/threads_heartbeat.c
M libknet/threads_pmtud.c
M libknet/threads_rx.c
M libknet/threads_tx.c
M libknet/transport_sctp.c
Log Message:
-----------
[libknet] allow better handling of internal threads
while playing around adding some dynamic internal threads, i did
hit a limitation with allocating a dynamic THREAD_MAX value based
on OS availability of certain features.
this patch changes from dynamic to static allocation of threads, that
can always be increased if necessary without breaking anything.
simplify thread numbering and conditionals on OS features
improve debugging of thread status by adding a 2 phase thread registration
process:
- register a thread before starting it with THREAD_REGISTERED before pthread_create
- set a thread status as started with THREAD_STARTED
any failure in between can now be detected in debugging logs.
Note for developers: all threads *MUST* be registered/started before
wait_all_threads_status check in handle.c.
Signed-off-by: Fabio M. Di Nitto <fdinitto(a)redhat.com>
**NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/
Functionality will be removed from GitHub.com on January 31st, 2019.
Branch: refs/heads/threads-improvement
Home: https://github.com/kronosnet/kronosnet
Commit: 7e4dd019c6362bbfa2f32aea775768743a3a85c4
https://github.com/kronosnet/kronosnet/commit/7e4dd019c6362bbfa2f32aea77576…
Author: Fabio M. Di Nitto <fdinitto(a)redhat.com>
Date: 2018-12-21 (Fri, 21 Dec 2018)
Changed paths:
M libknet/handle.c
M libknet/threads_common.c
M libknet/threads_common.h
M libknet/threads_dsthandler.c
M libknet/threads_heartbeat.c
M libknet/threads_pmtud.c
M libknet/threads_rx.c
M libknet/threads_tx.c
M libknet/transport_sctp.c
Log Message:
-----------
[libknet] allow better handling of internal threads
while playing around adding some dynamic internal threads, i did
hit a limitation with allocating a dynamic THREAD_MAX value based
on OS availability of certain features.
this patch changes from dynamic to static allocation of threads, that
can always be increased if necessary without breaking anything.
simplify thread numbering and conditionals on OS features
improve debugging of thread status by adding a 2 phase thread registration
process:
- register a thread before starting it with THREAD_STARTING
- register a thread as started with THREAD_STARTED
any failure in between can now be detected in debugging logs.
Note for developers: all threads *MUST* be registered/started before
wait_all_threads_status check in handle.c.
Signed-off-by: Fabio M. Di Nitto <fdinitto(a)redhat.com>
**NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/
Functionality will be removed from GitHub.com on January 31st, 2019.
Branch: refs/heads/logging
Home: https://github.com/kronosnet/kronosnet
Commit: a4a709c1868a4b2ad08bf975fc4cb67024477b8c
https://github.com/kronosnet/kronosnet/commit/a4a709c1868a4b2ad08bf975fc4cb…
Author: Fabio M. Di Nitto <fdinitto(a)redhat.com>
Date: 2018-12-20 (Thu, 20 Dec 2018)
Changed paths:
M libknet/libknet.h
M libknet/logging.c
M libknet/tests/test-common.c
Log Message:
-----------
[libknet] logging: add handle information in log structure
Use case: an app is using the same fd to gather logs from
multiple knet_h, the app might still require to know which
knet_h has generated the log for better logging purposes.
Signed-off-by: Fabio M. Di Nitto <fdinitto(a)redhat.com>
**NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/
Functionality will be removed from GitHub.com on January 31st, 2019.
Branch: refs/heads/master
Home: https://github.com/kronosnet/kronosnet
Commit: 0281e5b746857081d1a465a988ade97f89730523
https://github.com/kronosnet/kronosnet/commit/0281e5b746857081d1a465a988ade…
Author: Fabio M. Di Nitto <fdinitto(a)redhat.com>
Date: 2018-12-20 (Thu, 20 Dec 2018)
Changed paths:
M libknet/handle.c
M libknet/libknet.h
M libknet/tests/api-test-coverage
M libknet/tests/api_knet_handle_new.c
M libknet/tests/api_knet_handle_new_limit.c
M libknet/tests/knet_bench.c
M libknet/tests/test-common.c
M man/Makefile.am
Log Message:
-----------
[libknet] drop knet_handle_new_ex in favour of knet_handle_new
Signed-off-by: Fabio M. Di Nitto <fdinitto(a)redhat.com>
Commit: 9e948986cee8cc2c2817c12247ccba32c3a467ec
https://github.com/kronosnet/kronosnet/commit/9e948986cee8cc2c2817c12247ccb…
Author: Fabio M. Di Nitto <fdinitto(a)redhat.com>
Date: 2018-12-20 (Thu, 20 Dec 2018)
Changed paths:
M libknet/handle.c
M libknet/libknet.h
M libknet/tests/api-test-coverage
M libknet/tests/api_knet_handle_new.c
M libknet/tests/api_knet_handle_new_limit.c
M libknet/tests/knet_bench.c
M libknet/tests/test-common.c
M man/Makefile.am
Log Message:
-----------
Merge pull request #186 from kronosnet/handle-cleanup
[libknet] drop knet_handle_new_ex in favour of knet_handle_new
Compare: https://github.com/kronosnet/kronosnet/compare/79cc51203b66...9e948986cee8
**NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/
Functionality will be removed from GitHub.com on January 31st, 2019.