mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 06:03:36 -04:00
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>
This commit is contained in:
parent
e6b6a23163
commit
2cccb9e4f3
3 changed files with 43 additions and 0 deletions
|
|
@ -34,6 +34,7 @@
|
|||
#define MLX4_CMD_H
|
||||
|
||||
#include <linux/dma-mapping.h>
|
||||
#include <linux/if_link.h>
|
||||
|
||||
enum {
|
||||
/* initialization and general commands */
|
||||
|
|
@ -235,6 +236,7 @@ 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_vlan(struct mlx4_dev *dev, int port, int vf, u16 vlan, u8 qos);
|
||||
int mlx4_set_vf_spoofchk(struct mlx4_dev *dev, int port, int vf, bool setting);
|
||||
int mlx4_get_vf_config(struct mlx4_dev *dev, int port, int vf, struct ifla_vf_info *ivf);
|
||||
|
||||
|
||||
#define MLX4_COMM_GET_IF_REV(cmd_chan_ver) (u8)((cmd_chan_ver) >> 8)
|
||||
|
|
|
|||
Loading…
Reference in a new issue