diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2019-10-07 06:09:30 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-10-07 15:58:27 +0200 |
commit | 4de30a8d58c90e18140342cdcb74903d2e4fbb62 (patch) | |
tree | 4f40a67fdceaf1d22f75fc3874606bdb482d90c5 /net/tls/tls_sw.c | |
parent | net/tls: make allocation failure unlikely (diff) | |
download | linux-4de30a8d58c90e18140342cdcb74903d2e4fbb62.tar.xz linux-4de30a8d58c90e18140342cdcb74903d2e4fbb62.zip |
net/tls: pass context to tls_device_decrypted()
Avoid unnecessary pointer chasing and calculations, callers already
have most of the state tls_device_decrypted() needs.
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Dirk van der Merwe <dirk.vandermerwe@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tls/tls_sw.c')
-rw-r--r-- | net/tls/tls_sw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/tls/tls_sw.c b/net/tls/tls_sw.c index 0b1e86f856eb..954f451dcc57 100644 --- a/net/tls/tls_sw.c +++ b/net/tls/tls_sw.c @@ -1495,7 +1495,7 @@ static int decrypt_skb_update(struct sock *sk, struct sk_buff *skb, if (!ctx->decrypted) { if (tls_ctx->rx_conf == TLS_HW) { - err = tls_device_decrypted(sk, skb); + err = tls_device_decrypted(sk, tls_ctx, skb, rxm); if (err < 0) return err; } |