[PATCH v2 2/2] um: time-travel: return the sequence number in ACK messages
Anton Ivanov
anton.ivanov at kot-begemot.co.uk
Wed Sep 16 03:30:17 EDT 2020
On 10/09/2020 10:31, Johannes Berg wrote:
> From: Johannes Berg <johannes.berg at intel.com>
>
> For external time travel, the protocol says to return the
> incoming sequence number in the ACK message to aid debugging,
> so do that.
>
> Signed-off-by: Johannes Berg <johannes.berg at intel.com>
> ---
> arch/um/kernel/time.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/arch/um/kernel/time.c b/arch/um/kernel/time.c
> index c07436e89e59..3d109ff3309b 100644
> --- a/arch/um/kernel/time.c
> +++ b/arch/um/kernel/time.c
> @@ -106,6 +106,7 @@ static void time_travel_handle_message(struct um_timetravel_msg *msg,
> break;
> }
>
> + resp.seq = msg->seq;
> os_write_file(time_travel_ext_fd, &resp, sizeof(resp));
> }
>
>
Acked-By: Anton Ivanov <anton.ivanov at cambridgegreys.com>
--
Anton R. Ivanov
https://www.kot-begemot.co.uk/
More information about the linux-um
mailing list