From 9a984b74b49ec37ce3f2dffcdbbba234db6a488b Mon Sep 17 00:00:00 2001 From: 459203 <459203@mail.muni.cz> Date: Mon, 8 May 2017 21:14:00 +0200 Subject: [PATCH 1/2] Update af_ktls.c Remove the socket callback reference in the skb_splice_bits() function to make af_ktls compatible with newer kernels (4.9 and later). --- af_ktls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/af_ktls.c b/af_ktls.c index 016f098..e42e680 100644 --- a/af_ktls.c +++ b/af_ktls.c @@ -1662,7 +1662,7 @@ static ssize_t tls_splice_read(struct socket *sock, loff_t *ppos, } chunk = min_t(unsigned int, rxm->full_len, len); copied = skb_splice_bits(skb, sk, rxm->offset, pipe, chunk, - flags, tls_sock_splice); + flags); if (ret < 0) goto splice_read_end; From f76a4540819989e2f0b6a85d88bf421fb23d1a36 Mon Sep 17 00:00:00 2001 From: Ananya Chatterjee <459203@mail.muni.cz> Date: Tue, 15 Aug 2017 19:50:10 +0530 Subject: [PATCH 2/2] Update af_ktls.c --- af_ktls.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/af_ktls.c b/af_ktls.c index e42e680..4446471 100644 --- a/af_ktls.c +++ b/af_ktls.c @@ -816,6 +816,9 @@ static int tls_setsockopt(struct socket *sock, case KTLS_SET_SALT_SEND: ret = tls_set_salt(sock, 0, optval, optlen); break; + case KTLS_SET_MTU: + ret = 0; + break; case KTLS_UNATTACH: tls_do_unattach(sock); ret = 0;