]> git.baikalelectronics.ru Git - kernel.git/commit
rxrpc: Don't reserve security header in Tx DATA skbuff
authorDavid Howells <dhowells@redhat.com>
Thu, 17 Sep 2020 22:23:38 +0000 (23:23 +0100)
committerDavid Howells <dhowells@redhat.com>
Mon, 23 Nov 2020 18:09:30 +0000 (18:09 +0000)
commitc9f2a54b26b874fc1ba41970235f88c721807ac2
treee72130840b5544e094211828441f3ef559a71105
parent8f785d8dd82688b2ef7688aba5b62dba251656c3
rxrpc: Don't reserve security header in Tx DATA skbuff

Insert the security header into the skbuff representing a DATA packet to be
transmitted rather than using skb_reserve() when the packet is allocated.
This makes it easier to apply crypto that spans the security header and the
data, particularly in the upcoming RxGK class where we have a common
encrypt-and-checksum function that is used in a number of circumstances.

Signed-off-by: David Howells <dhowells@redhat.com>
net/rxrpc/ar-internal.h
net/rxrpc/insecure.c
net/rxrpc/rxkad.c
net/rxrpc/sendmsg.c