]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/net: so_txtime: fix parsing of start time stamp on 32 bit systems
authorMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 2 May 2022 09:46:37 +0000 (11:46 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 3 May 2022 11:18:26 +0000 (13:18 +0200)
commitf1d70a8a33d262e3e686f7a98c00418f285ffb4b
treeb7463b6e3749f991570249044aeadd9e4fc73262
parent9559c3a796d8394a0ccee803374df68280cc5fb6
selftests/net: so_txtime: fix parsing of start time stamp on 32 bit systems

This patch fixes the parsing of the cmd line supplied start time on 32
bit systems. A "long" on 32 bit systems is only 32 bit wide and cannot
hold a timestamp in nano second resolution.

Fixes: 2c234ba69cdd ("selftests/net: so_txtime multi-host support")
Cc: Carlos Llamas <cmllamas@google.com>
Cc: Willem de Bruijn <willemb@google.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Acked-by: Willem de Bruijn <willemb@google.com>
Reviewed-by: Carlos Llamas <cmllamas@google.com>
Link: https://lore.kernel.org/r/20220502094638.1921702-2-mkl@pengutronix.de
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
tools/testing/selftests/net/so_txtime.c