tcp: add a helper for setting EOR on tail skb
authorJakub Kicinski <kuba@kernel.org>
Thu, 30 May 2024 23:36:15 +0000 (16:36 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 4 Jun 2024 11:23:30 +0000 (13:23 +0200)
commit1be68a87ab333af37b02ad928a724a722a5a8203
treea5e869e921f91a7cb5da145e3d012a3705235ce0
parent071115301838c6c265065dd5d6bf43a9a987a550
tcp: add a helper for setting EOR on tail skb

TLS (and hopefully soon PSP will) use EOR to prevent skbs
with different decrypted state from getting merged, without
adding new tests to the skb handling. In both cases once
the connection switches to an "encrypted" state, all subsequent
skbs will be encrypted, so a single "EOR fence" is sufficient
to prevent mixing.

Add a helper for setting the EOR bit, to make this arrangement
more explicit.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
include/net/tcp.h
net/tls/tls_device.c