Home
last modified time | relevance | path

Searched refs:tls_ctx (Results 1 – 16 of 16) sorted by relevance

/linux/net/tls/
H A Dtls_device.c162 struct tls_context *tls_ctx = tls_get_ctx(sk); in tls_icsk_clean_acked() local
168 if (!tls_ctx) in tls_icsk_clean_acked()
171 ctx = tls_offload_ctx_tx(tls_ctx); in tls_icsk_clean_acked()
197 struct tls_context *tls_ctx = tls_get_ctx(sk); in tls_device_sk_destruct() local
198 struct tls_offload_context_tx *ctx = tls_offload_ctx_tx(tls_ctx); in tls_device_sk_destruct()
200 tls_ctx->sk_destruct(sk); in tls_device_sk_destruct()
202 if (tls_ctx->tx_conf == TLS_HW) { in tls_device_sk_destruct()
210 tls_device_queue_ctx_destruction(tls_ctx); in tls_device_sk_destruct()
216 struct tls_context *tls_ctx = tls_get_ctx(sk); in tls_device_free_resources_tx() local
218 tls_free_partial_record(sk, tls_ctx); in tls_device_free_resources_tx()
[all …]
H A Dtls_sw.c194 struct tls_context *tls_ctx; in tls_decrypt_done() local
216 tls_ctx = tls_get_ctx(sk); in tls_decrypt_done()
217 ctx = tls_sw_ctx_rx(tls_ctx); in tls_decrypt_done()
260 struct tls_context *tls_ctx = tls_get_ctx(sk); in tls_do_decryption() local
261 struct tls_prot_info *prot = &tls_ctx->prot_info; in tls_do_decryption()
262 struct tls_sw_context_rx *ctx = tls_sw_ctx_rx(tls_ctx); in tls_do_decryption()
309 struct tls_context *tls_ctx = tls_get_ctx(sk); in tls_trim_both_msgs() local
310 struct tls_prot_info *prot = &tls_ctx->prot_info; in tls_trim_both_msgs()
311 struct tls_sw_context_tx *ctx = tls_sw_ctx_tx(tls_ctx); in tls_trim_both_msgs()
322 struct tls_context *tls_ctx = tls_get_ctx(sk); in tls_alloc_encrypted_msg() local
[all …]
H A Dtls_device_fallback.c300 struct tls_context *tls_ctx, in fill_sg_out() argument
308 get_cipher_desc(tls_ctx->crypto_send.info.cipher_type); in fill_sg_out()
317 static struct sk_buff *tls_enc_skb(struct tls_context *tls_ctx, in tls_enc_skb() argument
323 struct tls_offload_context_tx *ctx = tls_offload_ctx_tx(tls_ctx); in tls_enc_skb()
336 cipher_desc = get_cipher_desc(tls_ctx->crypto_send.info.cipher_type); in tls_enc_skb()
346 salt = crypto_info_salt(&tls_ctx->crypto_send.info, cipher_desc); in tls_enc_skb()
357 fill_sg_out(sg_out, buf, tls_ctx, nskb, tcp_payload_offset, in tls_enc_skb()
362 &tls_ctx->prot_info) < 0) in tls_enc_skb()
386 struct tls_context *tls_ctx = tls_get_ctx(sk); in tls_sw_fallback() local
387 struct tls_offload_context_tx *ctx = tls_offload_ctx_tx(tls_ctx); in tls_sw_fallback()
[all …]
H A Dtls.h149 void tls_update_rx_zc_capable(struct tls_context *tls_ctx);
151 void tls_sw_strparser_done(struct tls_context *tls_ctx);
154 void tls_sw_cancel_work_tx(struct tls_context *tls_ctx);
156 void tls_sw_free_ctx_tx(struct tls_context *tls_ctx);
159 void tls_sw_free_ctx_rx(struct tls_context *tls_ctx);
234 int tls_device_decrypted(struct sock *sk, struct tls_context *tls_ctx);
258 tls_device_decrypted(struct sock *sk, struct tls_context *tls_ctx) in tls_device_decrypted() argument
276 static inline bool tls_is_pending_open_record(struct tls_context *tls_ctx) in tls_is_pending_open_record() argument
278 return tls_ctx->pending_open_record_frags; in tls_is_pending_open_record()
H A Dtls_main.c408 struct tls_context *tls_ctx; in tls_sk_poll() local
422 tls_ctx = tls_get_ctx(sk); in tls_sk_poll()
423 ctx = tls_sw_ctx_rx(tls_ctx); in tls_sk_poll()
/linux/include/net/
H A Dtls.h374 const struct tls_context *tls_ctx) in tls_sw_ctx_rx() argument
376 return (struct tls_sw_context_rx *)tls_ctx->priv_ctx_rx; in tls_sw_ctx_rx()
380 const struct tls_context *tls_ctx) in tls_sw_ctx_tx() argument
382 return (struct tls_sw_context_tx *)tls_ctx->priv_ctx_tx; in tls_sw_ctx_tx()
386 tls_offload_ctx_tx(const struct tls_context *tls_ctx) in tls_offload_ctx_tx() argument
388 return (struct tls_offload_context_tx *)tls_ctx->priv_ctx_tx; in tls_offload_ctx_tx()
418 tls_offload_ctx_rx(const struct tls_context *tls_ctx) in tls_offload_ctx_rx() argument
420 return (struct tls_offload_context_rx *)tls_ctx->priv_ctx_rx; in tls_offload_ctx_rx()
423 static inline void *__tls_driver_ctx(struct tls_context *tls_ctx, in __tls_driver_ctx() argument
427 return tls_offload_ctx_tx(tls_ctx)->driver_state; in __tls_driver_ctx()
[all …]
/linux/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/
H A Dchcr_ktls.h92 chcr_get_ktls_tx_info(struct tls_context *tls_ctx) in chcr_get_ktls_tx_info() argument
97 priv_ctx = (struct chcr_ktls_ctx_tx *)__tls_driver_ctx(tls_ctx, TLS_OFFLOAD_CTX_DIR_TX); in chcr_get_ktls_tx_info()
102 chcr_set_ktls_tx_info(struct tls_context *tls_ctx, struct chcr_ktls_info *chcr_info) in chcr_set_ktls_tx_info() argument
106 priv_ctx = __tls_driver_ctx(tls_ctx, TLS_OFFLOAD_CTX_DIR_TX); in chcr_set_ktls_tx_info()
H A Dchcr_ktls.c362 struct tls_context *tls_ctx, in chcr_ktls_dev_del() argument
365 struct chcr_ktls_info *tx_info = chcr_get_ktls_tx_info(tls_ctx); in chcr_ktls_dev_del()
398 chcr_set_ktls_tx_info(tls_ctx, NULL); in chcr_ktls_dev_del()
417 struct tls_context *tls_ctx = tls_get_ctx(sk); in chcr_ktls_dev_add() local
439 if (chcr_get_ktls_tx_info(tls_ctx)) in chcr_ktls_dev_add()
565 chcr_set_ktls_tx_info(tls_ctx, tx_info); in chcr_ktls_dev_add()
649 struct tls_context *tls_ctx; in chcr_ktls_cpl_act_open_rpl() local
684 tls_ctx = tls_get_ctx(tx_info->sk); in chcr_ktls_cpl_act_open_rpl()
685 tx_ctx = tls_offload_ctx_tx(tls_ctx); in chcr_ktls_cpl_act_open_rpl()
1930 struct tls_context *tls_ctx; in chcr_ktls_xmit() local
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dktls_tx.c106 mlx5e_set_ktls_tx_priv_ctx(struct tls_context *tls_ctx, in mlx5e_set_ktls_tx_priv_ctx() argument
110 __tls_driver_ctx(tls_ctx, TLS_OFFLOAD_CTX_DIR_TX); in mlx5e_set_ktls_tx_priv_ctx()
118 mlx5e_get_ktls_tx_priv_ctx(struct tls_context *tls_ctx) in mlx5e_get_ktls_tx_priv_ctx() argument
121 __tls_driver_ctx(tls_ctx, TLS_OFFLOAD_CTX_DIR_TX); in mlx5e_get_ktls_tx_priv_ctx()
459 struct tls_context *tls_ctx; in mlx5e_ktls_add_tx() local
464 tls_ctx = tls_get_ctx(sk); in mlx5e_ktls_add_tx()
496 priv_tx->tx_ctx = tls_offload_ctx_tx(tls_ctx); in mlx5e_ktls_add_tx()
498 mlx5e_set_ktls_tx_priv_ctx(tls_ctx, priv_tx); in mlx5e_ktls_add_tx()
510 void mlx5e_ktls_del_tx(struct net_device *netdev, struct tls_context *tls_ctx) in mlx5e_ktls_del_tx() argument
516 priv_tx = mlx5e_get_ktls_tx_priv_ctx(tls_ctx); in mlx5e_ktls_del_tx()
[all …]
H A Dktls_rx.c229 mlx5e_set_ktls_rx_priv_ctx(struct tls_context *tls_ctx, in mlx5e_set_ktls_rx_priv_ctx() argument
233 __tls_driver_ctx(tls_ctx, TLS_OFFLOAD_CTX_DIR_RX); in mlx5e_set_ktls_rx_priv_ctx()
241 mlx5e_get_ktls_rx_priv_ctx(struct tls_context *tls_ctx) in mlx5e_get_ktls_rx_priv_ctx() argument
244 __tls_driver_ctx(tls_ctx, TLS_OFFLOAD_CTX_DIR_RX); in mlx5e_get_ktls_rx_priv_ctx()
611 struct tls_context *tls_ctx; in mlx5e_ktls_add_rx() local
616 tls_ctx = tls_get_ctx(sk); in mlx5e_ktls_add_rx()
654 mlx5e_set_ktls_rx_priv_ctx(tls_ctx, priv_rx); in mlx5e_ktls_add_rx()
665 tls_offload_ctx_rx(tls_ctx)->resync_async = &resync->core; in mlx5e_ktls_add_rx()
685 void mlx5e_ktls_del_rx(struct net_device *netdev, struct tls_context *tls_ctx) in mlx5e_ktls_del_rx() argument
693 priv_rx = mlx5e_get_ktls_rx_priv_ctx(tls_ctx); in mlx5e_ktls_del_rx()
[all …]
H A Dktls.c69 struct tls_context *tls_ctx, in mlx5e_ktls_del() argument
73 mlx5e_ktls_del_tx(netdev, tls_ctx); in mlx5e_ktls_del()
75 mlx5e_ktls_del_rx(netdev, tls_ctx); in mlx5e_ktls_del()
H A Dktls_utils.h24 void mlx5e_ktls_del_tx(struct net_device *netdev, struct tls_context *tls_ctx);
27 void mlx5e_ktls_del_rx(struct net_device *netdev, struct tls_context *tls_ctx);
/linux/drivers/net/ethernet/fungible/funeth/
H A Dfuneth_tx.c111 const struct fun_ktls_tx_ctx *tls_ctx; in fun_tls_tx() local
120 tls_ctx = tls_driver_ctx(skb->sk, TLS_OFFLOAD_CTX_DIR_TX); in fun_tls_tx()
122 if (likely(tls_ctx->next_seq == seq)) { in fun_tls_tx()
126 if (seq - tls_ctx->next_seq < U32_MAX / 4) { in fun_tls_tx()
128 tls_ctx->next_seq); in fun_tls_tx()
281 struct fun_ktls_tx_ctx *tls_ctx; in write_pkt_desc() local
286 tls_ctx = tls_driver_ctx(skb->sk, TLS_OFFLOAD_CTX_DIR_TX); in write_pkt_desc()
287 tls->tlsid = tls_ctx->tlsid; in write_pkt_desc()
288 tls_ctx->next_seq += tls_len; in write_pkt_desc()
H A Dfuneth_ktls.c72 struct tls_context *tls_ctx, in fun_ktls_del() argument
82 tx_ctx = __tls_driver_ctx(tls_ctx, direction); in fun_ktls_del()
/linux/drivers/net/ethernet/netronome/nfp/crypto/
H A Dtls.c410 nfp_net_tls_del(struct net_device *netdev, struct tls_context *tls_ctx, in nfp_net_tls_del() argument
418 ntls = __tls_driver_ctx(tls_ctx, direction); in nfp_net_tls_del()
/linux/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_main.c6458 struct tls_context *tls_ctx, in cxgb4_ktls_dev_del() argument
6467 adap->uld[CXGB4_ULD_KTLS].tlsdev_ops->tls_dev_del(netdev, tls_ctx, in cxgb4_ktls_dev_del()