[Linuxptp-devel] [PATCH 2/3] unicast_client: fix checkpatch ERROR: trailing whitespace

2022-12-06 Thread vincent . cheng . xh
From: Vincent Cheng Signed-off-by: Vincent Cheng --- unicast_client.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unicast_client.h b/unicast_client.h index e643cb2..4a4d345 100644 --- a/unicast_client.h +++ b/unicast_client.h @@ -93,7 +93,7 @@ int unicast_client_timer(st

[Linuxptp-devel] [PATCH 1/3] unicast_client: stop sending abnormal contract cancel requests

2022-12-06 Thread vincent . cheng . xh
From: Vincent Cheng On termination of a ptp4l unicast session, ptp4l sends CANCEL_UNICAST_TRANSMISSION for announce, sync and delay response messages for all entries of the unicast master table regardless if the service is active or inactive. This patch modifies unicast_client_tx_cancel() to onl

[Linuxptp-devel] [PATCH 3/3] unicast_client: cancel sync/delay_response on UC_EV_UNSELECTED event

2022-12-06 Thread vincent . cheng . xh
From: Vincent Cheng When a unicast master is no longer the best master, an UC_EV_UNSELECTED event occurs for that unicast master entry. However, the sync/delay_response contracts are not explicitly cancelled. This patch updates unicast_client_state_changed() to send CANCEL_UNICAST_TRANSMISSION

[Linuxptp-devel] [PATCH 0/3] unicast_client: stop sending CANCEL_UNICAST_TRANSMISSION for inactive services

2022-12-06 Thread vincent . cheng . xh
From: Vincent Cheng This patch set improves the sending of CANCEL_UNICAST_TRANSMISSION to cancel service. Currently all entries in the unicast master table receive CANCEL_UNICAST_TRANSMISSION for announce and sync/delay_response messages regardless if the service is active or inactive. First