net/mlx5: Update access functions to Query/Modify vport MAC address
authorSaeed Mahameed <saeedm@mellanox.com>
Tue, 1 Dec 2015 16:03:11 +0000 (18:03 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Dec 2015 17:08:44 +0000 (12:08 -0500)
commite1d7d349c69d12721c420f1fe673ce9aa462aadd
tree33d8e48e72dae9efc22d3218b4dd93e7fb2fb59c
parent54f0a411ec72cb437d57d0c9654dcbd0f198ff3a
net/mlx5: Update access functions to Query/Modify vport MAC address

In preparation for SR-IOV we add here an API to enable each e-switch
client (PF/VF) to configure its L2 MAC addresses and for the e-switch
manager (usually the PF) to access them in order to be able to
configure them into the e-switch.
Therefore we now pass vport num parameter to
mlx5_query_nic_vport_context, so PF can access other vports contexts.

preperation for ethernet sriov and l2 table management.

Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/vport.c
include/linux/mlx5/vport.h