tty: n_gsm: add open_error counter to gsm_mux
authorDaniel Starke <daniel.starke@siemens.com>
Thu, 17 Aug 2023 09:32:26 +0000 (11:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Aug 2023 13:21:24 +0000 (15:21 +0200)
commita1ce6da0833b91355499568caf0f432074d91cee
tree52b622491b9c181988fe48fddd63a459400c180c
parente1c90bbb5f5178967d5d3c0917de847e88ebe398
tty: n_gsm: add open_error counter to gsm_mux

Extend the n_gsm link statistics by a failed link open counter in
preparation for an upcoming patch which will expose these.
This counter is increased whenever an attempt to open the control channel
failed. This is true in the following cases:
- new DLCI allocation failed
- connection request (SAMB) with invalid CR flag has been received
- connection response (UA) timed out
- parameter negotiation timed out or failed

Signed-off-by: Daniel Starke <daniel.starke@siemens.com>
Link: https://lore.kernel.org/r/20230817093231.2317-4-daniel.starke@siemens.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/n_gsm.c