tls: Refactor tls_offload variable names
For symmetry, we rename tls_offload_context to tls_offload_context_tx before we add tls_offload_context_rx. Signed-off-by: Boris Pismenny <borisp@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
41ed9c04aa
commit
d80a1b9d18
@@ -214,7 +214,7 @@ static void complete_skb(struct sk_buff *nskb, struct sk_buff *skb, int headln)
|
||||
|
||||
static int fill_sg_in(struct scatterlist *sg_in,
|
||||
struct sk_buff *skb,
|
||||
struct tls_offload_context *ctx,
|
||||
struct tls_offload_context_tx *ctx,
|
||||
u64 *rcd_sn,
|
||||
s32 *sync_size,
|
||||
int *resync_sgs)
|
||||
@@ -299,7 +299,7 @@ static struct sk_buff *tls_enc_skb(struct tls_context *tls_ctx,
|
||||
s32 sync_size, u64 rcd_sn)
|
||||
{
|
||||
int tcp_payload_offset = skb_transport_offset(skb) + tcp_hdrlen(skb);
|
||||
struct tls_offload_context *ctx = tls_offload_ctx(tls_ctx);
|
||||
struct tls_offload_context_tx *ctx = tls_offload_ctx_tx(tls_ctx);
|
||||
int payload_len = skb->len - tcp_payload_offset;
|
||||
void *buf, *iv, *aad, *dummy_buf;
|
||||
struct aead_request *aead_req;
|
||||
@@ -361,7 +361,7 @@ static struct sk_buff *tls_sw_fallback(struct sock *sk, struct sk_buff *skb)
|
||||
{
|
||||
int tcp_payload_offset = skb_transport_offset(skb) + tcp_hdrlen(skb);
|
||||
struct tls_context *tls_ctx = tls_get_ctx(sk);
|
||||
struct tls_offload_context *ctx = tls_offload_ctx(tls_ctx);
|
||||
struct tls_offload_context_tx *ctx = tls_offload_ctx_tx(tls_ctx);
|
||||
int payload_len = skb->len - tcp_payload_offset;
|
||||
struct scatterlist *sg_in, sg_out[3];
|
||||
struct sk_buff *nskb = NULL;
|
||||
@@ -415,7 +415,7 @@ struct sk_buff *tls_validate_xmit_skb(struct sock *sk,
|
||||
}
|
||||
|
||||
int tls_sw_fallback_init(struct sock *sk,
|
||||
struct tls_offload_context *offload_ctx,
|
||||
struct tls_offload_context_tx *offload_ctx,
|
||||
struct tls_crypto_info *crypto_info)
|
||||
{
|
||||
const u8 *key;
|
||||
|
||||
Reference in New Issue
Block a user