From: Atul Gupta
Date: Sat, 31 Mar 2018 21:41:51 +0530
> Series for Chelsio Inline TLS driver (chtls)
Series applied, thank you.
On Fri, Mar 30, 2018 at 8:26 PM, Herbert Xu wrote:
> On Mon, Mar 26, 2018 at 08:32:19AM +0100, Gilad Ben-Yossef wrote:
>> Enable CryptoCell support for hardware keys.
>>
>> Hardware keys are regular AES keys loaded into CryptoCell internal memory
>> via firmware, often from secure boot ROM or hard
Entry for Inline TLS as another driver dependent on cxgb4 and chcr
Signed-off-by: Atul Gupta
---
drivers/crypto/chelsio/Kconfig| 11 +++
drivers/crypto/chelsio/Makefile | 1 +
drivers/crypto/chelsio/chtls/Makefile | 4
3 files changed, 16 insertions(+)
create mode 1
TLS handler for record transmit.
Create Inline TLS work request and post to FW.
Create Inline TLS record CPLs for hardware
Signed-off-by: Atul Gupta
Signed-off-by: Michael Werner
---
drivers/crypto/chelsio/chtls/chtls_io.c | 1222 +
drivers/crypto/chelsio/chtls/cht
Read the Inline TLS capability from firmware.
Determine the area reserved for storing the keys
Dump the Inline TLS tx and rx records count.
Signed-off-by: Atul Gupta
Reviewed-by: Michael Werner
Reviewed-by: Casey Leedom
---
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 32 +--
drivers
handler for record receive. plain text copied to user
buffer
Signed-off-by: Atul Gupta
Signed-off-by: Michael Werner
---
drivers/crypto/chelsio/chtls/chtls_io.c | 602 +-
drivers/crypto/chelsio/chtls/chtls_main.c | 1 +
2 files changed, 602 insertions(+), 1 delet
Register chtls as Inline TLS driver, chtls is ULD to cxgb4.
Setsockopt to program (tx/rx) keys on chip.
Support AES GCM of key size 128.
Support both Inline Rx and Tx.
Signed-off-by: Atul Gupta
Reviewed-by: Casey Leedom
Reviewed-by: Michael Werner
---
drivers/crypto/chelsio/chtls/chtls_main.c
Initialize the space reserved for storing the TLS keys,
get and free the location where key is stored for the TLS
connection.
Program the Tx and Rx key as received from user in
struct tls12_crypto_info_aes_gcm_128 and understood by hardware.
added socket option TLS_RX
Signed-off-by: Atul Gupta
--
Exchange messages with hardware to program the TLS session
CPL handlers for messages received from chip.
Signed-off-by: Atul Gupta
Signed-off-by: Michael Werner
---
drivers/crypto/chelsio/chtls/chtls_cm.c | 2126 +++
net/ipv4/tcp_minisocks.c|1 +
Ethtool option enables TLS record offload on HW, user
configures the feature for netdev capable of Inline TLS.
This allows user to define custom sk_prot for Inline TLS sock
Signed-off-by: Atul Gupta
---
include/linux/netdev_features.h | 2 ++
net/core/ethtool.c | 1 +
2 files change
Define macro for programming the TLS Key context
Signed-off-by: Atul Gupta
---
drivers/crypto/chelsio/chcr_algo.h | 42 +
drivers/crypto/chelsio/chcr_core.h | 55 +-
2 files changed, 96 insertions(+), 1 deletion(-)
diff --git a/dri
Define Inline TLS state, connection management info.
Supporting macros definition.
Signed-off-by: Atul Gupta
Reviewed-by: Michael Werner
---
drivers/crypto/chelsio/chtls/chtls.h| 482
drivers/crypto/chelsio/chtls/chtls_cm.h | 203 ++
2 files chan
Facility to register Inline TLS drivers to net/tls. Setup
TLS_HW_RECORD prot to listen on offload device.
Cases handled
- Inline TLS device exists, setup prot for TLS_HW_RECORD
- Atleast one Inline TLS exists, sets TLS_HW_RECORD.
- If non-inline device establish connection, move to TLS_SW_TX
Sign
Key area size in hw-config file. CPL struct for TLS request
and response. Work request for Inline TLS.
Signed-off-by: Atul Gupta
Reviewed-by: Casey Leedom
---
drivers/net/ethernet/chelsio/cxgb4/t4_msg.h | 122 ++-
drivers/net/ethernet/chelsio/cxgb4/t4_regs.h | 2 +
drivers/
Thanks everyone for reviewing the series.
Dave, this should apply clean on net-next tree and I think it is ready
to merge.
Series for Chelsio Inline TLS driver (chtls)
Use tls ULP infrastructure to register chtls as Inline TLS driver.
Chtls use TCP Sockets to Tx/Rx TLS records.
TCP sk_proto APIs
This patch fixes the clang warning of extraneous parentheses, with the
following coccinelle script.
@@
identifier i;
constant c;
expression e;
@@
(
!((e))
|
-((
\(i == c\|i != c\|i <= c\|i < c\|i >= c\|i > c\)
-))
)
Signed-off-by: Varsha Rao
---
Changes in v2:
- Modified coccinelle script
dri
On Sat, 31 Mar 2018, Varsha Rao wrote:
> On Sat, Mar 31, 2018 at 11:48 AM, Julia Lawall wrote:
> > On Thu, 29 Mar 2018, Varsha Rao wrote:
> >
> >> On Wed, Mar 28, 2018 at 11:41 PM, Joe Perches wrote:
> >> >
> >> > On Wed, 2018-03-28 at 23:27, Varsha Rao wrote:
> >> > > This patch fixes the clan
On Sat, Mar 31, 2018 at 11:48 AM, Julia Lawall wrote:
> On Thu, 29 Mar 2018, Varsha Rao wrote:
>
>> On Wed, Mar 28, 2018 at 11:41 PM, Joe Perches wrote:
>> >
>> > On Wed, 2018-03-28 at 23:27, Varsha Rao wrote:
>> > > This patch fixes the clang warning of extraneous parentheses, with the
>> > > fol
18 matches
Mail list logo