diff options
author | Saeed Mahameed <saeedm@mellanox.com> | 2015-12-01 16:03:13 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-12-03 17:08:44 (GMT) |
commit | e75465148b7df7f2796c75bf98bf33f171edeb2b (patch) | |
tree | 2fe8a3ca9c1a4d8754143568185f630eb74926d2 /drivers/net/ethernet/mellanox/mlx5/core/en_main.c | |
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 'drivers/net/ethernet/mellanox/mlx5/core/en_main.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_main.c b/drivers/net/ethernet/mellanox/mlx5/core/en_main.c index 2ef717f..007e464 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_main.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_main.c @@ -63,7 +63,7 @@ static void mlx5e_update_carrier(struct mlx5e_priv *priv) u8 port_state; port_state = mlx5_query_vport_state(mdev, - MLX5_QUERY_VPORT_STATE_IN_OP_MOD_VNIC_VPORT); + MLX5_QUERY_VPORT_STATE_IN_OP_MOD_VNIC_VPORT, 0); if (port_state == VPORT_STATE_UP) netif_carrier_on(priv->netdev); |