diff options
author | Eugenia Emantayev | 2017-02-23 11:02:42 +0100 |
---|---|---|
committer | David S. Miller | 2017-02-23 16:57:56 +0100 |
commit | 745d8ae4622c6808b22e33a944c7decb30074be4 (patch) | |
tree | 56b55f8e44f2678025ad8551d0e8d8e983f31ab1 /include/linux/mlx4/cmd.h | |
parent | net/mlx4: Change ENOTSUPP to EOPNOTSUPP (diff) | |
download | kernel-qcow2-linux-745d8ae4622c6808b22e33a944c7decb30074be4.tar.gz kernel-qcow2-linux-745d8ae4622c6808b22e33a944c7decb30074be4.tar.xz kernel-qcow2-linux-745d8ae4622c6808b22e33a944c7decb30074be4.zip |
net/mlx4: Spoofcheck and zero MAC can't coexist
Spoofcheck can't be enabled if VF MAC is zero.
Vice versa, can't zero MAC if spoofcheck is on.
Fixes: 8f7ba3ca12f6 ('net/mlx4: Add set VF mac address support')
Signed-off-by: Eugenia Emantayev <eugenia@mellanox.com>
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/mlx4/cmd.h')
-rw-r--r-- | include/linux/mlx4/cmd.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mlx4/cmd.h b/include/linux/mlx4/cmd.h index 1f3568694a57..7b74afcbbab2 100644 --- a/include/linux/mlx4/cmd.h +++ b/include/linux/mlx4/cmd.h @@ -308,7 +308,7 @@ int mlx4_get_counter_stats(struct mlx4_dev *dev, int counter_index, int mlx4_get_vf_stats(struct mlx4_dev *dev, int port, int vf_idx, struct ifla_vf_stats *vf_stats); u32 mlx4_comm_get_version(void); -int mlx4_set_vf_mac(struct mlx4_dev *dev, int port, int vf, u64 mac); +int mlx4_set_vf_mac(struct mlx4_dev *dev, int port, int vf, u8 *mac); int mlx4_set_vf_vlan(struct mlx4_dev *dev, int port, int vf, u16 vlan, u8 qos, __be16 proto); int mlx4_set_vf_rate(struct mlx4_dev *dev, int port, int vf, int min_tx_rate, |