summaryrefslogtreecommitdiffstats
path: root/include/net/tls.h
diff options
context:
space:
mode:
authorJakub Kicinski <jakub.kicinski@netronome.com>2019-10-06 21:09:32 -0700
committerDavid S. Miller <davem@davemloft.net>2019-10-07 09:58:28 -0400
commitbc76e5bb1229ede1f26317b813099b0e983e4009 (patch)
tree45c1d1dee313315521eeb750a4dfcd89777af460 /include/net/tls.h
parent5c5458ec9d631fbca29f53a944168265e18aa77a (diff)
downloadlinux-bc76e5bb1229ede1f26317b813099b0e983e4009.tar.bz2
net/tls: store decrypted on a single bit
Use a single bit instead of boolean to remember if packet was already decrypted. Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com> Reviewed-by: Simon Horman <simon.horman@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/tls.h')
-rw-r--r--include/net/tls.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/tls.h b/include/net/tls.h
index 97eae7271a67..41265e542e71 100644
--- a/include/net/tls.h
+++ b/include/net/tls.h
@@ -153,7 +153,7 @@ struct tls_sw_context_rx {
struct sk_buff *recv_pkt;
u8 control;
u8 async_capable:1;
- bool decrypted;
+ u8 decrypted:1;
atomic_t decrypt_pending;
bool async_notify;
};