aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mellanox/mlx4/mlx4.h
diff options
context:
space:
mode:
authorJack Morgenstein <jackm@dev.mellanox.co.il>2011-12-12 23:13:48 -0500
committerDavid S. Miller <davem@davemloft.net>2011-12-13 13:56:06 -0500
commitea51b377abcdf0f3fab0119879be373bda69afb1 (patch)
tree6b2b991009896c58305dde3469641c96fbafb006 /drivers/net/ethernet/mellanox/mlx4/mlx4.h
parentd7233386b21775a8b099d7d5dcc36d1e4642b896 (diff)
mlx4_core: mtt modifications for SRIOV
MTTs are resources which are allocated and tracked by the PF driver. In multifunction mode, the allocation and icm mapping is done in the resource tracker (later patch in this sequence). To accomplish this, we have "work" functions whose names start with "__", and "request" functions (same name, no __). If we are operating in multifunction mode, the request function actually results in comm-channel commands being sent (ALLOC_RES or FREE_RES). The PF-driver comm-channel handler will ultimately invoke the "work" (__) function and return the result. If we are not in multifunction mode, the "work" handler is invoked immediately. Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il> 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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/mlx4.h b/drivers/net/ethernet/mellanox/mlx4/mlx4.h
index ab06e2c8ad77..23701a25daa9 100644
--- a/drivers/net/ethernet/mellanox/mlx4/mlx4.h
+++ b/drivers/net/ethernet/mellanox/mlx4/mlx4.h
@@ -612,6 +612,7 @@ struct mlx4_priv {
612 struct list_head bf_list; 612 struct list_head bf_list;
613 struct mutex bf_mutex; 613 struct mutex bf_mutex;
614 struct io_mapping *bf_mapping; 614 struct io_mapping *bf_mapping;
615 int reserved_mtts;
615}; 616};
616 617
617static inline struct mlx4_priv *mlx4_priv(struct mlx4_dev *dev) 618static inline struct mlx4_priv *mlx4_priv(struct mlx4_dev *dev)