aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/net/af_unix/unix_connect.c
diff options
context:
space:
mode:
authorVincent Mailhol <mailhol.vincent@wanadoo.fr>2022-07-19 23:35:50 +0900
committerMarc Kleine-Budde <mkl@pengutronix.de>2022-07-20 09:27:51 +0200
commit3f9c26210cf80ea8cb5dd901aba5feb77200b085 (patch)
tree9ec70593998e0ddd55617ce7d4f5098ac96b0796 /tools/testing/selftests/net/af_unix/unix_connect.c
parent3e5c291c7942d0909a48bc5ec1b9bba136465166 (diff)
can: error: add definitions for the different CAN error thresholds
Currently, drivers are using magic numbers to derive the CAN error states from the error counter. Add three macro declarations to remediate this. For reference, the error-active, error-passive and bus-off are defined in ISO 11898, section 12.1.4.2 "Error counting". Although ISO 11898 does not define error-warning state, this extra value is also commonly used and is thus also added. Link: https://lore.kernel.org/all/20220719143550.3681-13-mailhol.vincent@wanadoo.fr Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'tools/testing/selftests/net/af_unix/unix_connect.c')
0 files changed, 0 insertions, 0 deletions