diff options
author | Rony Efraim <ronye@mellanox.com> | 2013-04-25 07:22:27 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-04-27 05:29:13 +0200 |
commit | 8f7ba3ca12f6f16526fa4a8aaf2cae91563eee69 (patch) | |
tree | 4bf50f09e298b484003cd545b9ffa5d656915a98 /include | |
parent | net/mlx4: Add structures to keep VF Ethernet ports information (diff) | |
download | linux-8f7ba3ca12f6f16526fa4a8aaf2cae91563eee69.tar.xz linux-8f7ba3ca12f6f16526fa4a8aaf2cae91563eee69.zip |
net/mlx4: Add set VF mac address support
Add ndo_set_vf_mac support which allows to set the MAC address
for mlx4 VF Ethernet NICs from the host.
Signed-off-by: Rony Efraim <ronye@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mlx4/cmd.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mlx4/cmd.h b/include/linux/mlx4/cmd.h index 260695186256..f21ddc6203bd 100644 --- a/include/linux/mlx4/cmd.h +++ b/include/linux/mlx4/cmd.h @@ -232,6 +232,7 @@ struct mlx4_cmd_mailbox *mlx4_alloc_cmd_mailbox(struct mlx4_dev *dev); void mlx4_free_cmd_mailbox(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox); u32 mlx4_comm_get_version(void); +int mlx4_set_vf_mac(struct mlx4_dev *dev, int port, int vf, u64 mac); #define MLX4_COMM_GET_IF_REV(cmd_chan_ver) (u8)((cmd_chan_ver) >> 8) |