net/mlx5: Declare more strictly devlink encap mode
authorLeon Romanovsky <leonro@mellanox.com>
Wed, 12 Jun 2019 12:20:11 +0000 (15:20 +0300)
committerLeon Romanovsky <leonro@mellanox.com>
Sun, 16 Jun 2019 12:40:03 +0000 (15:40 +0300)
commit98fdbea550378e0153092bce21261df86a8ccc57
treee9ba26de732702957a6ed96bbf17720fa9928d11
parent1f8a7bee27e63d7c5287719049941e285e54d370
net/mlx5: Declare more strictly devlink encap mode

Devlink has UAPI declaration for encap mode, so there is no
need to be loose on the data get/set by drivers.

Update call sites to use enum devlink_eswitch_encap_mode
instead of plain u8.

Suggested-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Petr Vorel <pvorel@suse.cz>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
include/net/devlink.h
net/core/devlink.c