diff options
author | Saeed Mahameed <saeedm@mellanox.com> | 2015-12-01 19:03:13 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-12-03 20:08:44 +0300 |
commit | e75465148b7df7f2796c75bf98bf33f171edeb2b (patch) | |
tree | 2fe8a3ca9c1a4d8754143568185f630eb74926d2 /include/linux/mlx5/vport.h | |
parent | e16aea2744abea612c27ee0eef606c6a6a8204de (diff) | |
download | linux-e75465148b7df7f2796c75bf98bf33f171edeb2b.tar.xz |
net/mlx5: Introduce access functions to modify/query vport state
In preparation for SR-IOV we add here an API to enable each e-switch
manager (PF) to configure its VFs link states in e-switch
preparation for ethernet sriov.
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/mlx5/vport.h')
-rw-r--r-- | include/linux/mlx5/vport.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/mlx5/vport.h b/include/linux/mlx5/vport.h index 00bbec8d9527..c1bba5948851 100644 --- a/include/linux/mlx5/vport.h +++ b/include/linux/mlx5/vport.h @@ -36,7 +36,11 @@ #include <linux/mlx5/driver.h> #include <linux/mlx5/device.h> -u8 mlx5_query_vport_state(struct mlx5_core_dev *mdev, u8 opmod); +u8 mlx5_query_vport_state(struct mlx5_core_dev *mdev, u8 opmod, u16 vport); +u8 mlx5_query_vport_admin_state(struct mlx5_core_dev *mdev, u8 opmod, + u16 vport); +int mlx5_modify_vport_admin_state(struct mlx5_core_dev *mdev, u8 opmod, + u16 vport, u8 state); int mlx5_query_nic_vport_mac_address(struct mlx5_core_dev *mdev, u16 vport, u8 *addr); int mlx5_modify_nic_vport_mac_address(struct mlx5_core_dev *dev, |