net/mlx4: Add user mac FW update support
authorMoshe Shemesh <moshe@mellanox.com>
Mon, 28 Aug 2017 13:38:23 +0000 (16:38 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Aug 2017 21:58:32 +0000 (14:58 -0700)
commitbe59960395f86991c6599c41d8c421fe4bf7a210
tree14ff66e92cf497f6770f94eb8c76596a214b11bd
parenta434f1fd2c96f44d7483d5bd789eec2d3cbb2d20
net/mlx4: Add user mac FW update support

Adding support for updating the FW on new port mac, when port mac change
is requested by the user. This info is required by the FW as OEM
management tools require this info directly from the NIC FW.
Check device capability bit to verify the FW supports user mac.
If the FW does support it, use set_port command to notify the FW on the
new mac.
The feature is relevant only to PF port mac.

Signed-off-by: Moshe Shemesh <moshe@mellanox.com>
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_netdev.c
drivers/net/ethernet/mellanox/mlx4/fw.c
drivers/net/ethernet/mellanox/mlx4/main.c
drivers/net/ethernet/mellanox/mlx4/mlx4.h
drivers/net/ethernet/mellanox/mlx4/port.c
include/linux/mlx4/device.h