]> git.baikalelectronics.ru Git - kernel.git/commit
net: qrtr: Release distant nodes along the bridge node
authorLoic Poulain <loic.poulain@linaro.org>
Fri, 6 Nov 2020 17:33:30 +0000 (18:33 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 11 Nov 2020 23:29:34 +0000 (15:29 -0800)
commitc3c4a42c205d697e812b0f1658857eb0fbe1c3f9
treedaa209c999be0bb1e6218330e0497e5e2d4ec4ec
parent9019c938b501f8472ed8691035aa503582a7654e
net: qrtr: Release distant nodes along the bridge node

Distant QRTR nodes can be accessed via an other node that acts as
a bridge. When the a QRTR endpoint associated to a bridge node is
released, all the linked distant nodes should also be released.

This patch fixes endpoint release by:
- Submitting QRTR BYE message locally on behalf of all the nodes
accessible through the endpoint.
- Removing all the routable node IDs from radix tree pointing to
the released node endpoint.

Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/qrtr/qrtr.c