]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
gve: Check valid ts bit on RX descriptor before hw timestamping
authorTim Hostetler <thostet@google.com>
Tue, 14 Oct 2025 00:47:39 +0000 (00:47 +0000)
committerJakub Kicinski <kuba@kernel.org>
Wed, 15 Oct 2025 16:04:58 +0000 (09:04 -0700)
commitbfdd74166a639930baaba27a8d729edaacd46907
tree28fd7d21dc94eaef0b4688e0e6dff81b3c3c10e8
parent7f0fddd817ba6daebea1445ae9fab4b6d2294fa8
gve: Check valid ts bit on RX descriptor before hw timestamping

The device returns a valid bit in the LSB of the low timestamp byte in
the completion descriptor that the driver should check before
setting the SKB's hardware timestamp. If the timestamp is not valid, do not
hardware timestamp the SKB.

Cc: stable@vger.kernel.org
Fixes: b2c7aeb49056 ("gve: Implement ndo_hwtstamp_get/set for RX timestamping")
Reviewed-by: Joshua Washington <joshwash@google.com>
Signed-off-by: Tim Hostetler <thostet@google.com>
Signed-off-by: Harshitha Ramamurthy <hramamurthy@google.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Link: https://patch.msgid.link/20251014004740.2775957-1-hramamurthy@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/google/gve/gve.h
drivers/net/ethernet/google/gve/gve_desc_dqo.h
drivers/net/ethernet/google/gve/gve_rx_dqo.c