net/mlx5e: Factor out IPsec ASO update function
authorLeon Romanovsky <leonro@nvidia.com>
Thu, 30 Mar 2023 08:02:22 +0000 (11:02 +0300)
committerLeon Romanovsky <leonro@nvidia.com>
Mon, 3 Apr 2023 06:29:47 +0000 (09:29 +0300)
commit509541b440e64e155201dd304411e2daa152fe8f
tree30cc8f89016e79f2483bcdd1522478aff751925c
parent5a6cddb89b51d99a7702e63829644a5860dd9c41
net/mlx5e: Factor out IPsec ASO update function

The ASO update is common operation which is going to be used in next
patch, so as a preparation, let's refactor the code for future reuse.

As part of this refactoring, not used function argument was removed too.

Link: https://lore.kernel.org/r/d04770b959822fed51c22c13e798f04d760a682e.1680162300.git.leonro@nvidia.com
Reviewed-by: Raed Salem <raeds@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_offload.c