net/mlx5e: Take SW parser code to a separate function
authorMoshe Shemesh <moshe@mellanox.com>
Thu, 21 Mar 2019 22:51:37 +0000 (15:51 -0700)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 22 Mar 2019 19:09:31 +0000 (12:09 -0700)
commitcac018b8c7ee8510b00d0d2ffdaef5c38c34129b
tree1e3fc4ceae30f8d7140cb4b76e47140e1fafff63
parent974eff2b5793eeaa2eb433bca7eba9640d890c4a
net/mlx5e: Take SW parser code to a separate function

Refactor mlx5e_ipsec_set_swp() code, split the part which sets the eseg
software parser (SWP) offsets and flags, so it can be used in a
downstream patch by other mlx5e functionality which needs to set eseg
SWP.
The new function mlx5e_set_eseg_swp() is useful for setting swp for both
outer and inner headers. It also handles the special ipsec case of xfrm
mode transfer.

Signed-off-by: Moshe Shemesh <moshe@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_rxtx.c