]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Expose new packet reformat capabilities
authorMark Bloch <markb@mellanox.com>
Tue, 28 Aug 2018 11:18:47 +0000 (14:18 +0300)
committerLeon Romanovsky <leonro@mellanox.com>
Wed, 5 Sep 2018 05:11:09 +0000 (08:11 +0300)
commit830a5b54a30044acb7e1bf18812761251b66f4cc
treee710511f4c501c6c617f4e27815fd529a070c608
parentc448780882a48eb727d2dd8c2f5d2d503bea319b
net/mlx5: Expose new packet reformat capabilities

Expose new abilities when creating a packet reformat context.

The new types which can be created are:
MLX5_REFORMAT_TYPE_L2_TO_L2_TUNNEL: Ability to create generic encap
operation to be done by the HW.

MLX5_REFORMAT_TYPE_L3_TUNNEL_TO_L2: Ability to create generic decap
operation where the inner packet doesn't contain L2.

MLX5_REFORMAT_TYPE_L2_TO_L3_TUNNEL: Ability to create generic encap
operation to be done by the HW. The L2 of the original packet
is dropped.

Signed-off-by: Mark Bloch <markb@mellanox.com>
Reviewed-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
include/linux/mlx5/mlx5_ifc.h