netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/8] net/tls: small general improvements
@ 2019-06-03 22:16 Jakub Kicinski
  2019-06-03 22:16 ` [PATCH net-next 1/8] net/tls: fully initialize the msg wrapper skb Jakub Kicinski
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Jakub Kicinski @ 2019-06-03 22:16 UTC (permalink / raw)
  To: davem; +Cc: netdev, oss-drivers, alexei.starovoitov, Jakub Kicinski

Hi!

This series cleans up and improves the tls code, mostly the offload
parts.

First a slight performance optimization - avoiding unnecessary re-
-encryption of records in patch 1.  Next patch 2 makes the code
more resilient by checking for errors in skb_copy_bits().  Next
commit removes a warning which can be triggered in normal operation,
(especially for devices explicitly making use of the fallback path).
Next two paths change the condition checking around the call to
tls_device_decrypted() to make it easier to extend.  Remaining
commits are centered around reorganizing struct tls_context for
better cache utilization.

Jakub Kicinski (8):
  net/tls: fully initialize the msg wrapper skb
  net/tls: check return values from skb_copy_bits() and skb_store_bits()
  net/tls: remove false positive warning
  net/tls: don't look for decrypted frames on non-offloaded sockets
  net/tls: don't re-check msg decrypted status in tls_device_decrypted()
  net/tls: use version from prot
  net/tls: reorganize struct tls_context
  net/tls: don't pass version to tls_advance_record_sn()

 Documentation/networking/tls-offload.rst | 19 -------------
 include/linux/skbuff.h                   |  1 +
 include/net/tls.h                        | 36 ++++++++++++------------
 net/core/skbuff.c                        | 25 ++++++++++++++++
 net/strparser/strparser.c                | 10 ++-----
 net/tls/tls_device.c                     | 28 ++++++++++--------
 net/tls/tls_device_fallback.c            |  6 ++--
 net/tls/tls_sw.c                         | 17 +++++------
 8 files changed, 76 insertions(+), 66 deletions(-)

-- 
2.21.0


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2019-06-04 21:34 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-06-03 22:16 [PATCH net-next 0/8] net/tls: small general improvements Jakub Kicinski
2019-06-03 22:16 ` [PATCH net-next 1/8] net/tls: fully initialize the msg wrapper skb Jakub Kicinski
2019-06-03 22:16 ` [PATCH net-next 2/8] net/tls: check return values from skb_copy_bits() and skb_store_bits() Jakub Kicinski
2019-06-03 22:17 ` [PATCH net-next 3/8] net/tls: remove false positive warning Jakub Kicinski
2019-06-03 22:17 ` [PATCH net-next 4/8] net/tls: don't look for decrypted frames on non-offloaded sockets Jakub Kicinski
2019-06-03 22:17 ` [PATCH net-next 5/8] net/tls: don't re-check msg decrypted status in tls_device_decrypted() Jakub Kicinski
2019-06-03 22:17 ` [PATCH net-next 6/8] net/tls: use version from prot Jakub Kicinski
2019-06-03 22:17 ` [PATCH net-next 7/8] net/tls: reorganize struct tls_context Jakub Kicinski
2019-06-03 22:17 ` [PATCH net-next 8/8] net/tls: don't pass version to tls_advance_record_sn() Jakub Kicinski
2019-06-04 21:34 ` [PATCH net-next 0/8] net/tls: small general improvements David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).