net/mlx5e: Added common function for to_ipsec_sa_entry
authorAviad Yehezkel <aviadye@mellanox.com>
Thu, 18 Jan 2018 14:31:55 +0000 (16:31 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 7 Mar 2018 23:54:35 +0000 (15:54 -0800)
commit75ef3f551572822a392ca9b03486bf09163cc668
tree7edf94884cc4f3bb4fe4cc4877a246ff00e4b3e9
parent05564d0ae075b7a73339eaa05296c3034e439c32
net/mlx5e: Added common function for to_ipsec_sa_entry

New function for getting driver internal sa entry from xfrm state.
All checks are done in one function.

Signed-off-by: Aviad Yehezkel <aviadye@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c