diff options
author | Rony Efraim <ronye@mellanox.com> | 2013-04-25 01:22:29 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-04-26 23:29:14 -0400 |
commit | e6b6a2316379feebebacec0979b3ebc5743e7502 (patch) | |
tree | 2b9c6722ba3191afad8e7d3eb9c937202ed53cee /include/linux/mlx4 | |
parent | 3f7fb021d081c8aaac1d0cf69a288d21625e872e (diff) |
net/mlx4: Add VF MAC spoof checking support
Add ndo_set_vf_spoofchk support
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/linux/mlx4')
-rw-r--r-- | include/linux/mlx4/cmd.h | 1 | ||||
-rw-r--r-- | include/linux/mlx4/device.h | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/mlx4/cmd.h b/include/linux/mlx4/cmd.h index 7daead75a6f5..95c3223719fa 100644 --- a/include/linux/mlx4/cmd.h +++ b/include/linux/mlx4/cmd.h | |||
@@ -234,6 +234,7 @@ void mlx4_free_cmd_mailbox(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbo | |||
234 | u32 mlx4_comm_get_version(void); | 234 | u32 mlx4_comm_get_version(void); |
235 | int mlx4_set_vf_mac(struct mlx4_dev *dev, int port, int vf, u64 mac); | 235 | int mlx4_set_vf_mac(struct mlx4_dev *dev, int port, int vf, u64 mac); |
236 | int mlx4_set_vf_vlan(struct mlx4_dev *dev, int port, int vf, u16 vlan, u8 qos); | 236 | int mlx4_set_vf_vlan(struct mlx4_dev *dev, int port, int vf, u16 vlan, u8 qos); |
237 | int mlx4_set_vf_spoofchk(struct mlx4_dev *dev, int port, int vf, bool setting); | ||
237 | 238 | ||
238 | 239 | ||
239 | #define MLX4_COMM_GET_IF_REV(cmd_chan_ver) (u8)((cmd_chan_ver) >> 8) | 240 | #define MLX4_COMM_GET_IF_REV(cmd_chan_ver) (u8)((cmd_chan_ver) >> 8) |
diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h index 6606d8f5862a..53acaf64189f 100644 --- a/include/linux/mlx4/device.h +++ b/include/linux/mlx4/device.h | |||
@@ -156,7 +156,8 @@ enum { | |||
156 | MLX4_DEV_CAP_FLAG2_FS_EN = 1LL << 3, | 156 | MLX4_DEV_CAP_FLAG2_FS_EN = 1LL << 3, |
157 | MLX4_DEV_CAP_FLAGS2_REASSIGN_MAC_EN = 1LL << 4, | 157 | MLX4_DEV_CAP_FLAGS2_REASSIGN_MAC_EN = 1LL << 4, |
158 | MLX4_DEV_CAP_FLAG2_TS = 1LL << 5, | 158 | MLX4_DEV_CAP_FLAG2_TS = 1LL << 5, |
159 | MLX4_DEV_CAP_FLAG2_VLAN_CONTROL = 1LL << 6 | 159 | MLX4_DEV_CAP_FLAG2_VLAN_CONTROL = 1LL << 6, |
160 | MLX4_DEV_CAP_FLAG2_FSM = 1LL << 7 | ||
160 | }; | 161 | }; |
161 | 162 | ||
162 | enum { | 163 | enum { |