diff options
| author | Rony Efraim <ronye@mellanox.com> | 2013-04-25 01:22:30 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2013-04-26 23:29:14 -0400 |
| commit | 2cccb9e4f3476da916146c2ec571c4f3eff738b1 (patch) | |
| tree | 79524a1d906c0ab14331dea45e364f600c42b355 /include/linux/mlx4 | |
| parent | e6b6a2316379feebebacec0979b3ebc5743e7502 (diff) | |
net/mlx4: Add support to get VF config
Support getting VF config.
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 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mlx4/cmd.h b/include/linux/mlx4/cmd.h index 95c3223719fa..adf6e0648f20 100644 --- a/include/linux/mlx4/cmd.h +++ b/include/linux/mlx4/cmd.h | |||
| @@ -34,6 +34,7 @@ | |||
| 34 | #define MLX4_CMD_H | 34 | #define MLX4_CMD_H |
| 35 | 35 | ||
| 36 | #include <linux/dma-mapping.h> | 36 | #include <linux/dma-mapping.h> |
| 37 | #include <linux/if_link.h> | ||
| 37 | 38 | ||
| 38 | enum { | 39 | enum { |
| 39 | /* initialization and general commands */ | 40 | /* initialization and general commands */ |
| @@ -235,6 +236,7 @@ u32 mlx4_comm_get_version(void); | |||
| 235 | int mlx4_set_vf_mac(struct mlx4_dev *dev, int port, int vf, u64 mac); | 236 | 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); | 237 | 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); | 238 | int mlx4_set_vf_spoofchk(struct mlx4_dev *dev, int port, int vf, bool setting); |
| 239 | int mlx4_get_vf_config(struct mlx4_dev *dev, int port, int vf, struct ifla_vf_info *ivf); | ||
| 238 | 240 | ||
| 239 | 241 | ||
| 240 | #define MLX4_COMM_GET_IF_REV(cmd_chan_ver) (u8)((cmd_chan_ver) >> 8) | 242 | #define MLX4_COMM_GET_IF_REV(cmd_chan_ver) (u8)((cmd_chan_ver) >> 8) |
