net/mlx5: Expose eswitch encap mode
authorMaor Gottlieb <maorg@mellanox.com>
Wed, 12 Jun 2019 12:20:12 +0000 (15:20 +0300)
committerLeon Romanovsky <leonro@mellanox.com>
Sun, 16 Jun 2019 12:41:43 +0000 (15:41 +0300)
commit82b11f071936a11094e1c44730030cd3d894e0b4
treeb65a272add173817b32a7981fa29e9e8afa11da0
parent98fdbea550378e0153092bce21261df86a8ccc57
net/mlx5: Expose eswitch encap mode

Add API to get the current Eswitch encap mode.
It will be used in downstream patches to check if
flow table can be created with encap support or not.

Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Reviewed-by: Petr Vorel <pvorel@suse.cz>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Parav Pandit <parav@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
include/linux/mlx5/eswitch.h