net/mlx5: Relocate vport macros to the vport header file
authorBodong Wang <bodong@mellanox.com>
Wed, 13 Feb 2019 06:55:41 +0000 (22:55 -0800)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 14 Feb 2019 20:14:42 +0000 (12:14 -0800)
commitbf3e4d387daed36aad2cfd4f493b07714ac0cd5e
tree9ab3d05b79f658aa0fcecbd80a2c49e55f5d435e
parentb05af6aacdb920dc3bfd27d53ade7f680d43265c
net/mlx5: Relocate vport macros to the vport header file

These are two macros in the driver general header which deal with the
number of total vports and if a vport is vport manager. Such macros
are vport entities, better to place them at the vport header file.

This patch doesn't change any functionality.

Signed-off-by: Bodong Wang <bodong@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/eq.c
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c
include/linux/mlx5/driver.h
include/linux/mlx5/vport.h