summaryrefslogtreecommitdiffstats
path: root/include/linux/mlx4/driver.h
diff options
context:
space:
mode:
authorAleksey Senin <alex@senin.name>2010-12-02 11:44:49 +0000
committerRoland Dreier <rolandd@cisco.com>2011-01-12 14:49:17 -0800
commitda995a8aee044bc5d0847e19e351cd48a2cb8bcc (patch)
tree000cb11c5e49e1bc91a2212ed5a2299f279c990b /include/linux/mlx4/driver.h
parent4979d18fe105297f8f065743f31f8f735da8df2d (diff)
downloadlinux-da995a8aee044bc5d0847e19e351cd48a2cb8bcc.tar.gz
linux-da995a8aee044bc5d0847e19e351cd48a2cb8bcc.tar.bz2
linux-da995a8aee044bc5d0847e19e351cd48a2cb8bcc.zip
IB/mlx4: Handle protocol field in multicast table
The newest device firmware stores IB vs. Ethernet protocol in two bits in members_count field of multicast group table (0: Infiniband, 1: Ethernet). When changing the QP members count for a multicast group, it important not to reset this information. When calling multicast attach first time, the protocol type should be specified. In this patch we always set it IB, but in the future we will handle Ethernet too. When looking for a QP, the protocol type shoud be checked too. Signed-off-by: Aleksey Senin <alekseys@voltaire.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'include/linux/mlx4/driver.h')
-rw-r--r--include/linux/mlx4/driver.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/include/linux/mlx4/driver.h b/include/linux/mlx4/driver.h
index f407cd4bfb34..e1eebf78caba 100644
--- a/include/linux/mlx4/driver.h
+++ b/include/linux/mlx4/driver.h
@@ -34,6 +34,7 @@
#define MLX4_DRIVER_H
#include <linux/device.h>
+#include <linux/mlx4/device.h>
struct mlx4_dev;
@@ -44,11 +45,6 @@ enum mlx4_dev_event {
MLX4_DEV_EVENT_PORT_REINIT,
};
-enum mlx4_protocol {
- MLX4_PROTOCOL_IB,
- MLX4_PROTOCOL_EN,
-};
-
struct mlx4_interface {
void * (*add) (struct mlx4_dev *dev);
void (*remove)(struct mlx4_dev *dev, void *context);