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)
commita3a0e81b6fd55745e100735c7667cd99a0650811
treeb87dd34f6efbe873248fc0ec056267e2877be182
parentaff3083f10bff7a37eaa2b4e6bc5fb627ddd5f84
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