]> git.baikalelectronics.ru Git - kernel.git/commit
amt: fix gateway mode stuck
authorTaehee Yoo <ap420073@gmail.com>
Thu, 19 May 2022 03:15:54 +0000 (03:15 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sat, 21 May 2022 00:08:08 +0000 (17:08 -0700)
commit1ed50ce6f3bc317c3ffe120b3093429e5903982c
treebc75c969a047b756b9c3729333c8c663a6f631ac
parent8ad07fb8069e8ac587ff38efabf21df3afe420be
amt: fix gateway mode stuck

If a gateway can not receive any response to requests from a relay,
gateway resets status from SENT_REQUEST to INIT and variable about a
relay as well. And then it should start the full establish step
from sending a discovery message and receiving advertisement message.
But, after failure in amt_req_work() it continues sending a request
message step with flushed(invalid) relay information and sets SENT_REQUEST.
So, a gateway can't be established with a relay.
In order to avoid this situation, it stops sending the request message
step if it fails.

Fixes: 19284cc854b3 ("amt: add data plane of amt interface")
Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/amt.c