net/mlx5: remove netlink dependency in shared code
authorOphir Munk <ophirmu@mellanox.com>
Tue, 25 Aug 2020 09:31:09 +0000 (09:31 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 18 Sep 2020 16:55:06 +0000 (18:55 +0200)
commitf00f6562e1b92e22515d1830d1f8709dcddeaeff
tree8102537da0a8ce54b99b9e6fa0e6ccfda6a6b6e3
parentf2e8b4556f89f8bb940612bfad5602801b5715e4
net/mlx5: remove netlink dependency in shared code

This commit adds Linux implementation of routine mlx5_os_mac_addr_flush
as wrapper to Netlink API to avoid direct calls under non-Linux
operating systems.

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