net/mlx5: move Linux ifname function
authorOphir Munk <ophirmu@mellanox.com>
Tue, 25 Aug 2020 09:31:07 +0000 (09:31 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 18 Sep 2020 16:55:06 +0000 (18:55 +0200)
commite9c0b96e35268cc1533144ff6bfb4a2efeae9639
tree8f853609baee9cbff05ddf25d4073a60e0c40007
parent5d5a26f26d1ea0f84976f3847917115e1e4e1ee5
net/mlx5: move Linux ifname function

mlx5_get_ifname() prototype includes 'IF_NAMESIZE' definition from Linux
file net/if.h. Since this API is only used under Linux and to enable
compilation under non-Linux OS - move this prototype from shared file
mlx5.h to file linux/mlx5_os.h.

Signed-off-by: Ophir Munk <ophirmu@mellanox.com>
Acked-by: Matan Azrad <matan@mellanox.com>
drivers/net/mlx5/linux/mlx5_os.h
drivers/net/mlx5/mlx5.c
drivers/net/mlx5/mlx5.h