Home
last modified time | relevance | path

Searched refs:ipsec (Results 1 – 18 of 18) sorted by relevance

/drivers/net/ethernet/intel/ixgbevf/
Dipsec.c103 struct ixgbevf_ipsec *ipsec = adapter->ipsec; in ixgbevf_ipsec_restore() local
112 struct rx_sa *r = &ipsec->rx_tbl[i]; in ixgbevf_ipsec_restore()
113 struct tx_sa *t = &ipsec->tx_tbl[i]; in ixgbevf_ipsec_restore()
140 int ixgbevf_ipsec_find_empty_idx(struct ixgbevf_ipsec *ipsec, bool rxtable) in ixgbevf_ipsec_find_empty_idx() argument
145 if (ipsec->num_rx_sa == IXGBE_IPSEC_MAX_SA_COUNT) in ixgbevf_ipsec_find_empty_idx()
150 if (!ipsec->rx_tbl[i].used) in ixgbevf_ipsec_find_empty_idx()
154 if (ipsec->num_tx_sa == IXGBE_IPSEC_MAX_SA_COUNT) in ixgbevf_ipsec_find_empty_idx()
159 if (!ipsec->tx_tbl[i].used) in ixgbevf_ipsec_find_empty_idx()
178 struct xfrm_state *ixgbevf_ipsec_find_rx_state(struct ixgbevf_ipsec *ipsec, in ixgbevf_ipsec_find_rx_state() argument
186 hash_for_each_possible_rcu(ipsec->rx_sa_list, rsa, hlist, in ixgbevf_ipsec_find_rx_state()
[all …]
DMakefile13 ixgbevf-$(CONFIG_IXGBEVF_IPSEC) += ipsec.o
Dixgbevf.h393 struct ixgbevf_ipsec *ipsec; member
/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ipsec.c305 struct ixgbe_ipsec *ipsec = adapter->ipsec; in ixgbe_ipsec_restore() local
319 struct rx_sa *r = &ipsec->rx_tbl[i]; in ixgbe_ipsec_restore()
320 struct tx_sa *t = &ipsec->tx_tbl[i]; in ixgbe_ipsec_restore()
341 struct rx_ip_sa *ipsa = &ipsec->ip_tbl[i]; in ixgbe_ipsec_restore()
355 static int ixgbe_ipsec_find_empty_idx(struct ixgbe_ipsec *ipsec, bool rxtable) in ixgbe_ipsec_find_empty_idx() argument
360 if (ipsec->num_rx_sa == IXGBE_IPSEC_MAX_SA_COUNT) in ixgbe_ipsec_find_empty_idx()
365 if (!ipsec->rx_tbl[i].used) in ixgbe_ipsec_find_empty_idx()
369 if (ipsec->num_tx_sa == IXGBE_IPSEC_MAX_SA_COUNT) in ixgbe_ipsec_find_empty_idx()
374 if (!ipsec->tx_tbl[i].used) in ixgbe_ipsec_find_empty_idx()
392 static struct xfrm_state *ixgbe_ipsec_find_rx_state(struct ixgbe_ipsec *ipsec, in ixgbe_ipsec_find_rx_state() argument
[all …]
Dixgbe.h774 struct ixgbe_ipsec *ipsec; member
Dixgbe_main.c10922 if (adapter->ipsec) in ixgbe_probe()
/drivers/net/netdevsim/
Dipsec.c17 struct nsim_ipsec *ipsec = &ns->ipsec; in nsim_dbg_netdev_ops_read() local
26 bufsize = (ipsec->count * 4 * 60) + 60; in nsim_dbg_netdev_ops_read()
34 ipsec->count, ipsec->tx); in nsim_dbg_netdev_ops_read()
37 struct nsim_sa *sap = &ipsec->sa[i]; in nsim_dbg_netdev_ops_read()
68 static int nsim_ipsec_find_empty_idx(struct nsim_ipsec *ipsec) in nsim_ipsec_find_empty_idx() argument
72 if (ipsec->count == NSIM_IPSEC_MAX_SA_COUNT) in nsim_ipsec_find_empty_idx()
77 if (!ipsec->sa[i].used) in nsim_ipsec_find_empty_idx()
130 struct nsim_ipsec *ipsec; in nsim_ipsec_add_sa() local
139 ipsec = &ns->ipsec; in nsim_ipsec_add_sa()
153 ret = nsim_ipsec_find_empty_idx(ipsec); in nsim_ipsec_add_sa()
[all …]
DMakefile14 netdevsim-objs += ipsec.o
Dnetdevsim.h74 struct nsim_ipsec ipsec; member
/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dipsec.c60 struct xfrm_state *mlx5e_ipsec_sadb_rx_lookup(struct mlx5e_ipsec *ipsec, in mlx5e_ipsec_sadb_rx_lookup() argument
67 hash_for_each_possible_rcu(ipsec->sadb_rx, sa_entry, hlist, handle) in mlx5e_ipsec_sadb_rx_lookup()
80 struct mlx5e_ipsec *ipsec = sa_entry->ipsec; in mlx5e_ipsec_sadb_rx_add() local
84 ret = ida_simple_get(&ipsec->halloc, 1, 0, GFP_KERNEL); in mlx5e_ipsec_sadb_rx_add()
88 spin_lock_irqsave(&ipsec->sadb_rx_lock, flags); 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()
91 spin_unlock_irqrestore(&ipsec->sadb_rx_lock, flags); in mlx5e_ipsec_sadb_rx_add()
98 struct mlx5e_ipsec *ipsec = sa_entry->ipsec; in mlx5e_ipsec_sadb_rx_del() local
101 spin_lock_irqsave(&ipsec->sadb_rx_lock, flags); in mlx5e_ipsec_sadb_rx_del()
103 spin_unlock_irqrestore(&ipsec->sadb_rx_lock, flags); in mlx5e_ipsec_sadb_rx_del()
[all …]
Dipsec_stats.c80 if (!priv->ipsec) in mlx5e_ipsec_get_count()
90 if (!priv->ipsec) in mlx5e_ipsec_get_strings()
108 if (!priv->ipsec) in mlx5e_ipsec_update_stats()
111 ret = mlx5_accel_ipsec_counters_read(priv->mdev, (u64 *)&priv->ipsec->stats, in mlx5e_ipsec_update_stats()
114 memset(&priv->ipsec->stats, 0, sizeof(priv->ipsec->stats)); in mlx5e_ipsec_update_stats()
121 if (!priv->ipsec) in mlx5e_ipsec_get_stats()
125 data[idx++] = MLX5E_READ_CTR64_CPU(&priv->ipsec->stats, in mlx5e_ipsec_get_stats()
129 data[idx++] = MLX5E_READ_CTR_ATOMIC64(&priv->ipsec->sw_stats, in mlx5e_ipsec_get_stats()
Dipsec_rxtx.c252 atomic64_inc(&priv->ipsec->sw_stats.ipsec_tx_drop_bundle); in mlx5e_ipsec_handle_tx_skb()
258 atomic64_inc(&priv->ipsec->sw_stats.ipsec_tx_drop_no_state); in mlx5e_ipsec_handle_tx_skb()
265 atomic64_inc(&priv->ipsec->sw_stats.ipsec_tx_drop_not_ip); in mlx5e_ipsec_handle_tx_skb()
271 atomic64_inc(&priv->ipsec->sw_stats.ipsec_tx_drop_trailer); in mlx5e_ipsec_handle_tx_skb()
276 atomic64_inc(&priv->ipsec->sw_stats.ipsec_tx_drop_metadata); in mlx5e_ipsec_handle_tx_skb()
303 atomic64_inc(&priv->ipsec->sw_stats.ipsec_rx_drop_sp_alloc); in mlx5e_ipsec_build_sp()
308 xs = mlx5e_ipsec_sadb_rx_lookup(priv->ipsec, sa_handle); in mlx5e_ipsec_build_sp()
310 atomic64_inc(&priv->ipsec->sw_stats.ipsec_rx_drop_sadb_miss); in mlx5e_ipsec_build_sp()
323 if (likely(priv->ipsec->no_trailer)) { in mlx5e_ipsec_build_sp()
335 atomic64_inc(&priv->ipsec->sw_stats.ipsec_rx_drop_syndrome); in mlx5e_ipsec_build_sp()
Dipsec.h100 struct mlx5e_ipsec *ipsec; member
/drivers/net/ethernet/mellanox/mlx5/core/fpga/
Dipsec.c190 spin_lock_irqsave(&fdev->ipsec->pending_cmds_lock, flags); in mlx5_fpga_ipsec_recv()
191 context = list_first_entry_or_null(&fdev->ipsec->pending_cmds, in mlx5_fpga_ipsec_recv()
196 spin_unlock_irqrestore(&fdev->ipsec->pending_cmds_lock, flags); in mlx5_fpga_ipsec_recv()
224 if (!fdev || !fdev->ipsec) in mlx5_fpga_ipsec_cmd_exec()
242 spin_lock_irqsave(&fdev->ipsec->pending_cmds_lock, flags); in mlx5_fpga_ipsec_cmd_exec()
243 res = mlx5_fpga_sbu_conn_sendmsg(fdev->ipsec->conn, &context->buf); in mlx5_fpga_ipsec_cmd_exec()
245 list_add_tail(&context->list, &fdev->ipsec->pending_cmds); in mlx5_fpga_ipsec_cmd_exec()
246 spin_unlock_irqrestore(&fdev->ipsec->pending_cmds_lock, flags); in mlx5_fpga_ipsec_cmd_exec()
297 if (is_v2_sadb_supported(fdev->ipsec)) in mlx5_fpga_ipsec_update_hw_sa()
336 if (!fdev->ipsec) in mlx5_fpga_ipsec_device_caps()
[all …]
Dcore.h61 struct mlx5_fpga_ipsec *ipsec; member
/drivers/net/ethernet/mellanox/mlx5/core/
DMakefile59 mlx5_core-$(CONFIG_MLX5_FPGA_IPSEC) += fpga/ipsec.o
61 mlx5_core-$(CONFIG_MLX5_ACCEL) += lib/crypto.o accel/tls.o accel/ipsec.o
65 mlx5_core-$(CONFIG_MLX5_EN_IPSEC) += en_accel/ipsec.o en_accel/ipsec_rxtx.o \
Den.h868 struct mlx5e_ipsec *ipsec; member
Den_main.c515 if (c->priv->ipsec) in mlx5e_alloc_rq()