aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx4/mlx4.h
diff options
context:
space:
mode:
authorOr Gerlitz <ogerlitz@mellanox.com>2014-03-27 08:02:02 -0400
committerDavid S. Miller <davem@davemloft.net>2014-03-28 16:29:35 -0400
commitb74757944d69f8cd7de5284fc7e8649d965361ab (patch)
treee0355259b27d8b72610b04ac5236ced8971d1a50 /drivers/net/ethernet/mellanox/mlx4/mlx4.h
parentdae98cadf743daa480c357b7ba4410423c5f905f (diff)
net/mlx4: USe one wrapper that returns -EPERM
When a VF issues a firmware command which is disallowed for them, the PF rerturns -EPERM from that command wrapper. Move to use one such wrapper instance, instead of repeating the same code on such commands. Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx4/mlx4.h')
-rw-r--r--drivers/net/ethernet/mellanox/mlx4/mlx4.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/mlx4.h b/drivers/net/ethernet/mellanox/mlx4/mlx4.h
index 9fca6c150de3..cf8be41abb36 100644
--- a/drivers/net/ethernet/mellanox/mlx4/mlx4.h
+++ b/drivers/net/ethernet/mellanox/mlx4/mlx4.h
@@ -1247,11 +1247,6 @@ int mlx4_QP_FLOW_STEERING_DETACH_wrapper(struct mlx4_dev *dev, int slave,
1247 struct mlx4_cmd_mailbox *inbox, 1247 struct mlx4_cmd_mailbox *inbox,
1248 struct mlx4_cmd_mailbox *outbox, 1248 struct mlx4_cmd_mailbox *outbox,
1249 struct mlx4_cmd_info *cmd); 1249 struct mlx4_cmd_info *cmd);
1250int mlx4_FLOW_STEERING_IB_UC_QP_RANGE_wrapper(struct mlx4_dev *dev, int slave,
1251 struct mlx4_vhcr *vhcr,
1252 struct mlx4_cmd_mailbox *inbox,
1253 struct mlx4_cmd_mailbox *outbox,
1254 struct mlx4_cmd_info *cmd);
1255 1250
1256int mlx4_get_mgm_entry_size(struct mlx4_dev *dev); 1251int mlx4_get_mgm_entry_size(struct mlx4_dev *dev);
1257int mlx4_get_qp_per_mgm(struct mlx4_dev *dev); 1252int mlx4_get_qp_per_mgm(struct mlx4_dev *dev);