Searched refs:xfrm (Results 1 – 6 of 6) sorted by relevance
/drivers/net/ethernet/mellanox/mlx5/core/accel/ |
D | ipsec.c | 107 struct mlx5_accel_esp_xfrm *xfrm, in mlx5_accel_esp_create_hw_context() argument 116 if (!xfrm->attrs.is_ipv6) { in mlx5_accel_esp_create_hw_context() 117 saddr[3] = xfrm->attrs.saddr.a4; in mlx5_accel_esp_create_hw_context() 118 daddr[3] = xfrm->attrs.daddr.a4; in mlx5_accel_esp_create_hw_context() 120 memcpy(saddr, xfrm->attrs.saddr.a6, sizeof(saddr)); in mlx5_accel_esp_create_hw_context() 121 memcpy(daddr, xfrm->attrs.daddr.a6, sizeof(daddr)); in mlx5_accel_esp_create_hw_context() 124 return ipsec_ops->create_hw_context(mdev, xfrm, saddr, daddr, xfrm->attrs.spi, in mlx5_accel_esp_create_hw_context() 125 xfrm->attrs.is_ipv6, sa_handle); in mlx5_accel_esp_create_hw_context() 144 struct mlx5_accel_esp_xfrm *xfrm; in mlx5_accel_esp_create_xfrm() local 149 xfrm = ipsec_ops->esp_create_xfrm(mdev, attrs, flags); in mlx5_accel_esp_create_xfrm() [all …]
|
D | ipsec.h | 50 struct mlx5_accel_esp_xfrm *xfrm, 62 struct mlx5_accel_esp_xfrm *xfrm, 71 int (*esp_modify_xfrm)(struct mlx5_accel_esp_xfrm *xfrm, 73 void (*esp_destroy_xfrm)(struct mlx5_accel_esp_xfrm *xfrm); 82 struct mlx5_accel_esp_xfrm *xfrm, in mlx5_accel_esp_create_hw_context() argument
|
D | ipsec_offload.c | 118 static void mlx5_ipsec_offload_esp_destroy_xfrm(struct mlx5_accel_esp_xfrm *xfrm) in mlx5_ipsec_offload_esp_destroy_xfrm() argument 120 struct mlx5_ipsec_esp_xfrm *mxfrm = container_of(xfrm, struct mlx5_ipsec_esp_xfrm, in mlx5_ipsec_offload_esp_destroy_xfrm() 330 static int mlx5_ipsec_offload_esp_modify_xfrm(struct mlx5_accel_esp_xfrm *xfrm, in mlx5_ipsec_offload_esp_modify_xfrm() argument 334 struct mlx5_core_dev *mdev = xfrm->mdev; in mlx5_ipsec_offload_esp_modify_xfrm() 339 if (!memcmp(&xfrm->attrs, attrs, sizeof(xfrm->attrs))) in mlx5_ipsec_offload_esp_modify_xfrm() 345 mxfrm = container_of(xfrm, struct mlx5_ipsec_esp_xfrm, accel_xfrm); in mlx5_ipsec_offload_esp_modify_xfrm() 363 memcpy(&xfrm->attrs, attrs, sizeof(xfrm->attrs)); in mlx5_ipsec_offload_esp_modify_xfrm()
|
/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
D | ipsec.c | 290 return mlx5e_accel_ipsec_fs_add_rule(priv, &sa_entry->xfrm->attrs, in mlx5e_xfrm_fs_add_rule() 301 mlx5e_accel_ipsec_fs_del_rule(priv, &sa_entry->xfrm->attrs, in mlx5e_xfrm_fs_del_rule() 334 sa_entry->xfrm = in mlx5e_xfrm_add_state() 337 if (IS_ERR(sa_entry->xfrm)) { in mlx5e_xfrm_add_state() 338 err = PTR_ERR(sa_entry->xfrm); in mlx5e_xfrm_add_state() 345 sa_entry->xfrm, in mlx5e_xfrm_add_state() 374 mlx5_accel_esp_destroy_xfrm(sa_entry->xfrm); in mlx5e_xfrm_add_state() 404 mlx5_accel_esp_free_hw_context(sa_entry->xfrm->mdev, sa_entry->hw_context); in mlx5e_xfrm_free_state() 405 mlx5_accel_esp_destroy_xfrm(sa_entry->xfrm); in mlx5e_xfrm_free_state() 486 ret = mlx5_accel_esp_modify_xfrm(sa_entry->xfrm, in _update_xfrm_state()
|
D | ipsec.h | 111 struct mlx5_accel_esp_xfrm *xfrm; member
|
/drivers/net/ethernet/mellanox/mlx5/core/fpga/ |
D | ipsec.c | 1481 static void mlx5_fpga_esp_destroy_xfrm(struct mlx5_accel_esp_xfrm *xfrm) in mlx5_fpga_esp_destroy_xfrm() argument 1484 container_of(xfrm, struct mlx5_fpga_esp_xfrm, in mlx5_fpga_esp_destroy_xfrm() 1490 static int mlx5_fpga_esp_modify_xfrm(struct mlx5_accel_esp_xfrm *xfrm, in mlx5_fpga_esp_modify_xfrm() argument 1493 struct mlx5_core_dev *mdev = xfrm->mdev; in mlx5_fpga_esp_modify_xfrm() 1501 if (!memcmp(&xfrm->attrs, attrs, sizeof(xfrm->attrs))) in mlx5_fpga_esp_modify_xfrm() 1514 fpga_xfrm = container_of(xfrm, struct mlx5_fpga_esp_xfrm, accel_xfrm); in mlx5_fpga_esp_modify_xfrm() 1529 mlx5_fpga_ipsec_build_hw_xfrm(xfrm->mdev, attrs, in mlx5_fpga_esp_modify_xfrm() 1558 memcpy(&xfrm->attrs, attrs, sizeof(xfrm->attrs)); in mlx5_fpga_esp_modify_xfrm()
|