Thread (17 messages) 17 messages, 2 authors, 2018-02-15

Re: [Crypto v5 03/12] support for inline tls

flat view

From: Dave Watson <hidden>
Date: 2018-02-15 15:52:10
Also in: linux-crypto

On 02/15/18 12:24 PM, Atul Gupta wrote:
quoted hunk ↗ jump to hunk
@@ -401,6 +430,15 @@ static int do_tls_setsockopt_tx(struct sock *sk, char __user *optval,
 		goto out;
 	}
 
+	rc = get_tls_offload_dev(sk);
+	if (rc) {
+		goto out;
+	} else {
+		/* Retain HW unhash for cleanup and move to SW Tx */
+		sk->sk_prot[TLS_BASE_TX].unhash =
+			sk->sk_prot[TLS_FULL_HW].unhash;
Isn't sk->sk_prot a pointer to a global shared struct here still?  It
looks like this would actually modify the global struct, and not just
for this sk.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help