]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1d1007a1a4551a49ba921730418674be0ffe86c8
tree1e3fc4ceae30f8d7140cb4b76e47140e1fafff63
parent4037ef25df914b8dc772e0f9620b7f68c02e58fc
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