net/mlx5_core: Break down the vport mac address query function
authorAchiad Shochat <achiad@mellanox.com>
Wed, 23 Dec 2015 16:47:18 +0000 (18:47 +0200)
committerDoug Ledford <dledford@redhat.com>
Wed, 23 Dec 2015 17:07:36 +0000 (12:07 -0500)
commite5f6175c5b66ce4986df7a69baae9913e8d4a430
tree71666ec9fec8be72e75664cd9dc8d7405ab4e142
parentfc24fc5e9530a4fde7feddaa543f5885af013461
net/mlx5_core: Break down the vport mac address query function

Introduce a new function called mlx5_query_nic_vport_context().
This function gets all the NIC vport attributes from the device.

The MAC address is just one of the NIC vport attributes, so
mlx5_query_nic_vport_mac_address() is now just a wrapper function
above mlx5_query_nic_vport_context().

More NIC vport attributes will be used in following commits.

Signed-off-by: Achiad Shochat <achiad@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/net/ethernet/mellanox/mlx5/core/vport.c