]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
can: add protocol counter for AF_CAN sockets
authorDavide Caratti <dcaratti@redhat.com>
Fri, 14 Mar 2025 11:39:49 +0000 (12:39 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 14 Mar 2025 12:27:33 +0000 (13:27 +0100)
commit6bffe88452dbe284747442f10a7ac8249d6495d7
treeb5f16442957fe1ae7a3048cbfa3cf06f087c28c6
parent958ee3d715773d88e5d85c36311ef458d6b352a2
can: add protocol counter for AF_CAN sockets

The third column in the output of the following command:

| # grep CAN /proc/net/protocols

is systematically '0': use sock_prot_inuse_add() to account for the number
of sockets for each protocol on top of AF_CAN family.

Signed-off-by: Davide Caratti <dcaratti@redhat.com>
Link: https://patch.msgid.link/9db5d0e6c11b232ad895885616f1258882a32f61.1741952160.git.dcaratti@redhat.com
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
net/can/af_can.c
net/can/bcm.c
net/can/isotp.c
net/can/raw.c