aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/mlx4/mlx4.h
diff options
context:
space:
mode:
authorEli Cohen <eli@mellanox.co.il>2011-03-22 18:38:41 -0400
committerDavid S. Miller <davem@davemloft.net>2011-03-23 15:24:23 -0400
commitc1b43dca137f2154845122417fba86d4bae67182 (patch)
tree36237582bfd5baf0e9a3ccea5377b949be289440 /drivers/net/mlx4/mlx4.h
parent1679200f91da6a054b06954c9bd3eeed29b6731f (diff)
mlx4: Add blue flame support for kernel consumers
Using blue flame can improve latency by allowing the HW to more efficiently access the WQE. This patch presents two functions that are used to allocate or release HW resources for using blue flame; the caller need to supply a struct mlx4_bf object when allocating resources. Consumers that make use of this API should post doorbells to the UAR object pointed by the initialized struct mlx4_bf; Signed-off-by: Eli Cohen <eli@mellanox.co.il> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/mlx4/mlx4.h')
-rw-r--r--drivers/net/mlx4/mlx4.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/mlx4/mlx4.h b/drivers/net/mlx4/mlx4.h
index d8bb4418581b..bc9a21657a4f 100644
--- a/drivers/net/mlx4/mlx4.h
+++ b/drivers/net/mlx4/mlx4.h
@@ -353,6 +353,9 @@ struct mlx4_priv {
353 struct mutex port_mutex; 353 struct mutex port_mutex;
354 struct mlx4_msix_ctl msix_ctl; 354 struct mlx4_msix_ctl msix_ctl;
355 struct mlx4_steer *steer; 355 struct mlx4_steer *steer;
356 struct list_head bf_list;
357 struct mutex bf_mutex;
358 struct io_mapping *bf_mapping;
356}; 359};
357 360
358static inline struct mlx4_priv *mlx4_priv(struct mlx4_dev *dev) 361static inline struct mlx4_priv *mlx4_priv(struct mlx4_dev *dev)