All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next 0/4] Support 256 bit TLS keys with device offload
@ 2022-09-14  9:05 Gal Pressman
  2022-09-14  9:05 ` [PATCH net-next 1/4] net/tls: Describe ciphers sizes by const structs Gal Pressman
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Gal Pressman @ 2022-09-14  9:05 UTC (permalink / raw)
  To: David S. Miller, Jakub Kicinski
  Cc: netdev, Saeed Mahameed, Tariq Toukan, Gal Pressman

Hey,
This series adds support for 256 bit TLS keys with device offload, and a
cleanup patch to remove repeating code:
- Patches #1-2 add cipher sizes descriptors which allow reducing the
  amount of code duplications.
- Patch #3 allows 256 bit keys to be TX offloaded in the tls module (RX
  already supported).
- Patch #4 adds 256 bit keys support to the mlx5 driver.

Thanks,
Gal

Gal Pressman (3):
  net/tls: Use cipher sizes structs
  net/tls: Support 256 bit keys with TX device offload
  net/mlx5e: Support 256 bit keys with kTLS device offload

Tariq Toukan (1):
  net/tls: Describe ciphers sizes by const structs

 .../mellanox/mlx5/core/en_accel/ktls.h        |  7 +-
 .../mellanox/mlx5/core/en_accel/ktls_rx.c     | 43 ++++++++--
 .../mellanox/mlx5/core/en_accel/ktls_tx.c     | 41 ++++++++--
 .../mellanox/mlx5/core/en_accel/ktls_txrx.c   | 27 ++++++-
 .../mellanox/mlx5/core/en_accel/ktls_utils.h  |  8 +-
 include/net/tls.h                             | 10 +++
 net/tls/tls_device.c                          | 61 ++++++++------
 net/tls/tls_device_fallback.c                 | 79 +++++++++++++------
 net/tls/tls_main.c                            | 17 ++++
 9 files changed, 225 insertions(+), 68 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: [PATCH net-next 1/4] net/tls: Describe ciphers sizes by const structs
@ 2022-09-14 22:03 kernel test robot
  0 siblings, 0 replies; 13+ messages in thread
From: kernel test robot @ 2022-09-14 22:03 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 3393 bytes --]

:::::: 
:::::: Manual check reason: "low confidence static check warning: net/tls/tls_main.c:70:9: sparse: sparse: obsolete array initializer, use C99 syntax"
:::::: 

BCC: lkp(a)intel.com
CC: kbuild-all(a)lists.01.org
In-Reply-To: <20220914090520.4170-2-gal@nvidia.com>
References: <20220914090520.4170-2-gal@nvidia.com>
TO: Gal Pressman <gal@nvidia.com>
TO: "David S. Miller" <davem@davemloft.net>
CC: netdev(a)vger.kernel.org
TO: Jakub Kicinski <kuba@kernel.org>
CC: Saeed Mahameed <saeedm@nvidia.com>
CC: Tariq Toukan <tariqt@nvidia.com>
CC: Gal Pressman <gal@nvidia.com>

Hi Gal,

I love your patch! Perhaps something to improve:

[auto build test WARNING on net-next/master]

url:    https://github.com/intel-lab-lkp/linux/commits/Gal-Pressman/Support-256-bit-TLS-keys-with-device-offload/20220914-171814
base:   https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git c9ae520ac3faf2f272b5705b085b3778c7997ec8
:::::: branch date: 13 hours ago
:::::: commit date: 13 hours ago
config: x86_64-randconfig-s021 (https://download.01.org/0day-ci/archive/20220915/202209150529.T2Z3vjeE-lkp(a)intel.com/config)
compiler: gcc-11 (Debian 11.3.0-5) 11.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.4-39-gce1a6720-dirty
        # https://github.com/intel-lab-lkp/linux/commit/1cf09f517908ce4b1bf800ef799fe612121628d9
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review Gal-Pressman/Support-256-bit-TLS-keys-with-device-offload/20220914-171814
        git checkout 1cf09f517908ce4b1bf800ef799fe612121628d9
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 SHELL=/bin/bash net/tls/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>

sparse warnings: (new ones prefixed by >>)
>> net/tls/tls_main.c:70:9: sparse: sparse: obsolete array initializer, use C99 syntax
   net/tls/tls_main.c:71:9: sparse: sparse: obsolete array initializer, use C99 syntax
   net/tls/tls_main.c:72:9: sparse: sparse: obsolete array initializer, use C99 syntax
   net/tls/tls_main.c:73:9: sparse: sparse: obsolete array initializer, use C99 syntax
   net/tls/tls_main.c:74:9: sparse: sparse: obsolete array initializer, use C99 syntax
   net/tls/tls_main.c:75:9: sparse: sparse: obsolete array initializer, use C99 syntax

vim +70 net/tls/tls_main.c

1cf09f517908ce Tariq Toukan 2022-09-14  68  
1cf09f517908ce Tariq Toukan 2022-09-14  69  const struct tls_cipher_size_desc tls_cipher_size_desc[] = {
1cf09f517908ce Tariq Toukan 2022-09-14 @70  	CIPHER_SIZE_DESC(TLS_CIPHER_AES_GCM_128),
1cf09f517908ce Tariq Toukan 2022-09-14  71  	CIPHER_SIZE_DESC(TLS_CIPHER_AES_GCM_256),
1cf09f517908ce Tariq Toukan 2022-09-14  72  	CIPHER_SIZE_DESC(TLS_CIPHER_AES_CCM_128),
1cf09f517908ce Tariq Toukan 2022-09-14  73  	CIPHER_SIZE_DESC(TLS_CIPHER_CHACHA20_POLY1305),
1cf09f517908ce Tariq Toukan 2022-09-14  74  	CIPHER_SIZE_DESC(TLS_CIPHER_SM4_GCM),
1cf09f517908ce Tariq Toukan 2022-09-14  75  	CIPHER_SIZE_DESC(TLS_CIPHER_SM4_CCM),
1cf09f517908ce Tariq Toukan 2022-09-14  76  };
1cf09f517908ce Tariq Toukan 2022-09-14  77  

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

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

end of thread, other threads:[~2022-09-20  9:40 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-14  9:05 [PATCH net-next 0/4] Support 256 bit TLS keys with device offload Gal Pressman
2022-09-14  9:05 ` [PATCH net-next 1/4] net/tls: Describe ciphers sizes by const structs Gal Pressman
2022-09-20  1:47   ` Jakub Kicinski
2022-09-20  9:40     ` Gal Pressman
2022-09-14  9:05 ` [PATCH net-next 2/4] net/tls: Use cipher sizes structs Gal Pressman
2022-09-14 10:22   ` Tariq Toukan
2022-09-14  9:05 ` [PATCH net-next 3/4] net/tls: Support 256 bit keys with TX device offload Gal Pressman
2022-09-14 10:22   ` Tariq Toukan
2022-09-14  9:05 ` [PATCH net-next 4/4] net/mlx5e: Support 256 bit keys with kTLS " Gal Pressman
2022-09-14 10:23   ` Tariq Toukan
2022-09-20  1:47   ` Jakub Kicinski
2022-09-20  9:40     ` Gal Pressman
  -- strict thread matches above, loose matches on Subject: below --
2022-09-14 22:03 [PATCH net-next 1/4] net/tls: Describe ciphers sizes by const structs kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.