]> 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)
commit9a540add966a03a31939b2c280c8f659d755ca70
tree1e3fc4ceae30f8d7140cb4b76e47140e1fafff63
parent3b44e307f3ac2733e805213ee44975f9ce743daa
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