Home
last modified time | relevance | path

Searched refs:sa_entry (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dipsec.c63 struct mlx5e_ipsec_sa_entry *sa_entry; in mlx5e_ipsec_sadb_rx_lookup() local
67 hash_for_each_possible_rcu(ipsec->sadb_rx, sa_entry, hlist, handle) in mlx5e_ipsec_sadb_rx_lookup()
68 if (sa_entry->handle == handle) { in mlx5e_ipsec_sadb_rx_lookup()
69 ret = sa_entry->x; in mlx5e_ipsec_sadb_rx_lookup()
78 static int mlx5e_ipsec_sadb_rx_add(struct mlx5e_ipsec_sa_entry *sa_entry) in mlx5e_ipsec_sadb_rx_add() argument
80 struct mlx5e_ipsec *ipsec = sa_entry->ipsec; in mlx5e_ipsec_sadb_rx_add()
89 sa_entry->handle = ret; in mlx5e_ipsec_sadb_rx_add()
90 hash_add_rcu(ipsec->sadb_rx, &sa_entry->hlist, sa_entry->handle); in mlx5e_ipsec_sadb_rx_add()
96 static void mlx5e_ipsec_sadb_rx_del(struct mlx5e_ipsec_sa_entry *sa_entry) in mlx5e_ipsec_sadb_rx_del() argument
98 struct mlx5e_ipsec *ipsec = sa_entry->ipsec; in mlx5e_ipsec_sadb_rx_del()
[all …]
Dipsec_rxtx.c243 struct mlx5e_ipsec_sa_entry *sa_entry; in mlx5e_ipsec_handle_tx_skb() local
280 sa_entry = (struct mlx5e_ipsec_sa_entry *)x->xso.offload_handle; in mlx5e_ipsec_handle_tx_skb()
281 sa_entry->set_iv_op(skb, x, xo); in mlx5e_ipsec_handle_tx_skb()
/Linux-v5.4/drivers/crypto/chelsio/
Dchcr_ipsec.c109 struct ipsec_sa_entry *sa_entry) in chcr_ipsec_setauthsize() argument
114 sa_entry->authsize = authsize; in chcr_ipsec_setauthsize()
133 struct ipsec_sa_entry *sa_entry) in chcr_ipsec_setkey() argument
144 memcpy(sa_entry->salt, key + keylen, 4); in chcr_ipsec_setkey()
159 memcpy(sa_entry->key, key, keylen); in chcr_ipsec_setkey()
160 sa_entry->enckey_len = keylen; in chcr_ipsec_setkey()
165 sa_entry->key_ctx_hdr = FILL_KEY_CTX_HDR(ck_size, in chcr_ipsec_setkey()
175 sa_entry->enckey_len = 0; in chcr_ipsec_setkey()
182 memcpy(sa_entry->key + (DIV_ROUND_UP(sa_entry->enckey_len, 16) * in chcr_ipsec_setkey()
184 sa_entry->kctx_len = ((DIV_ROUND_UP(sa_entry->enckey_len, 16)) << 4) + in chcr_ipsec_setkey()
[all …]