Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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.

Signed-off-by: Daniel Zahka <daniel.zahka@gmail.com>
Link: https://patch.msgid.link/20250918212723.17495-1-daniel.zahka@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Daniel Zahka and committed by
Jakub Kicinski
85c7333c f1bf7749

+2 -1
+2 -1
net/psp/psp_main.c
··· 228 228 * Presently it accepts only already-authenticated packets and does not 229 229 * support optional fields, such as virtualization cookies. The caller should 230 230 * ensure that skb->data is pointing to the mac header, and that skb->mac_len 231 - * is set. 231 + * is set. This function does not currently adjust skb->csum (CHECKSUM_COMPLETE 232 + * is not supported). 232 233 */ 233 234 int psp_dev_rcv(struct sk_buff *skb, u16 dev_id, u8 generation, bool strip_icv) 234 235 {