]> git.baikalelectronics.ru Git - kernel.git/commit
net/smc: Introduce tracepoint for smcr link down
authorTony Lu <tonylu@linux.alibaba.com>
Mon, 1 Nov 2021 07:39:16 +0000 (15:39 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 Nov 2021 13:39:14 +0000 (13:39 +0000)
commit37f0a4cbcd254fc1cbeca7a8f179f58012c05c17
treeb87dd34f6efbe873248fc0ec056267e2877be182
parent59a43d0dfe3cc89b31bb07ddd0d2795eb5bf85f9
net/smc: Introduce tracepoint for smcr link down

SMC-R link down event is important to help us find links' issues, we
should track this event, especially in the single nic mode, which means
upper layer connection would be shut down. Then find out the direct
link-down reason in time, not only increased the counter, also the
location of the code who triggered this event.

Signed-off-by: Tony Lu <tonylu@linux.alibaba.com>
Reviewed-by: Wen Gu <guwen@linux.alibaba.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/smc_core.c
net/smc/smc_tracepoint.c
net/smc/smc_tracepoint.h