diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2019-10-06 21:09:31 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-10-07 09:58:27 -0400 |
commit | 5c5458ec9d631fbca29f53a944168265e18aa77a (patch) | |
tree | b9488dc0705bf05ad0287490c537b40815b26ef7 /include/net | |
parent | 4de30a8d58c90e18140342cdcb74903d2e4fbb62 (diff) | |
download | linux-5c5458ec9d631fbca29f53a944168265e18aa77a.tar.gz linux-5c5458ec9d631fbca29f53a944168265e18aa77a.tar.bz2 linux-5c5458ec9d631fbca29f53a944168265e18aa77a.zip |
net/tls: store async_capable on a single bit
Store async_capable on a single bit instead of a full integer
to save space.
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')
-rw-r--r-- | include/net/tls.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/net/tls.h b/include/net/tls.h index b809f2362049..97eae7271a67 100644 --- a/include/net/tls.h +++ b/include/net/tls.h @@ -136,7 +136,7 @@ struct tls_sw_context_tx { struct list_head tx_list; atomic_t encrypt_pending; int async_notify; - int async_capable; + u8 async_capable:1; #define BIT_TX_SCHEDULED 0 #define BIT_TX_CLOSING 1 @@ -152,7 +152,7 @@ struct tls_sw_context_rx { struct sk_buff *recv_pkt; u8 control; - int async_capable; + u8 async_capable:1; bool decrypted; atomic_t decrypt_pending; bool async_notify; |