net/mlx5: Break encap/decap into two separated flow table creation flags
authorMark Bloch <markb@mellanox.com>
Tue, 28 Aug 2018 11:18:44 +0000 (14:18 +0300)
committerLeon Romanovsky <leonro@mellanox.com>
Wed, 5 Sep 2018 04:58:00 +0000 (07:58 +0300)
commit61444b458b01c95e55003d6f0b4d4c936fde51cb
tree545e45fb685f6140f172b120721dd8b8387c5f75
parentc3c062f8066504bc38b28266f4b71ff90c3ab8be
net/mlx5: Break encap/decap into two separated flow table creation flags

Today we are able to attach encap and decap actions only to the FDB. In
preparation to enable those actions on the NIC flow tables, break the
single flag into two. Those flags control whatever a decap or encap
operations can be attached to the flow table created. For FDB, if
encapsulation is required, we set both of them.

Signed-off-by: Mark Bloch <markb@mellanox.com>
Reviewed-by: Saeed Mahameed <saeedm@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
drivers/net/ethernet/mellanox/mlx5/core/fs_cmd.c
include/linux/mlx5/fs.h