• Taehee Yoo's avatar
    amt: fix gateway mode stuck · 937956ba
    Taehee Yoo authored
    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: cbc21dc1 ("amt: add data plane of amt interface")
    Signed-off-by: default avatarTaehee Yoo <ap420073@gmail.com>
    Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
    937956ba
amt.c 85.9 KB