Skip to contentSkip to conversation

psp: clarify checksum behavior of psp_dev_rcv()

PATCH Applied Daniel Zahka 2 participants 2 messages Sep 18, 2025 – Sep 20, 2025

Subsystems (3)
lore
Share & tools
lore

Daniel Zahka

author maintainer
#0 lore raw

PATCH 1/1 psp: clarify checksum behavior of psp_dev_rcv()

psp_dev_rcv() decapsulates psp headers from a received frame. This will make any csum complete computed by the device inaccurate. Rather than attempt to patch up skb->csum in psp_dev_rcv() just make it clear to callers what they can expect regarding checksum complete.

---
 net/psp/psp_main.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
net/psp/psp_main.c +2 -1
index 0f8c50c8e943..481aaf0fc9fc 100644
@@ -228,7 +228,8 @@ EXPORT_SYMBOL(psp_dev_encapsulate);
  * Presently it accepts only already-authenticated packets and does not
  * support optional fields, such as virtualization cookies. The caller should
  * ensure that skb->data is pointing to the mac header, and that skb->mac_len
- * is set.
+ * is set. This function does not currently adjust skb->csum (CHECKSUM_COMPLETE
+ * is not supported).
  */
 int psp_dev_rcv(struct sk_buff *skb, u16 dev_id, u8 generation, bool strip_icv)
 {
Signature · 1 line
2.47.3
#1 lore raw
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 8 lines · On Thu, 18 Sep 2025 14:27:20 -0700 you wrote:

psp_dev_rcv() decapsulates psp headers from a received frame. This will make any csum complete computed by the device inaccurate. Rather than attempt to patch up skb->csum in psp_dev_rcv() just make it clear to callers what they can expect regarding checksum complete.

[...]

Here is the summary with links:
- [net-next] psp: clarify checksum behavior of psp_dev_rcv()

    https://git.kernel.org/netdev/net-next/c/85c7333c35f2

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html