net/mlx5: support adding MAC address on Windows
authorTal Shnaiderman <talshn@nvidia.com>
Mon, 28 Dec 2020 09:54:35 +0000 (11:54 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Jan 2021 15:03:07 +0000 (16:03 +0100)
commitd36bb662dfc4764946a2aaf01d210a29ca158196
treeaff8d36e1ae1bd415c27f3a39dbde1bfd55b4f11
parent59f102074f0f19c36afcd66a22d2ef22f3edf808
net/mlx5: support adding MAC address on Windows

Get the list of MAC addresses and verify if the input mac parameter
already exists. If not - return -ENOTSUP (as Windows does not support
adding new MAC addresses). If the MAC address exists (EEXIST) return 0
(the equivalent of Linux implementation of this API).

Signed-off-by: Tal Shnaiderman <talshn@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/net/mlx5/windows/mlx5_os.c