diff options
author | Yevgeny Petrilin <yevgenyp@mellanox.co.il> | 2011-03-22 18:38:17 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-23 15:24:21 -0400 |
commit | 0345584e0b8be3735a950d17c7e463db20c6ce27 (patch) | |
tree | f49fd3824c1f3b620d456c40539f9b1b88832b69 /drivers/infiniband | |
parent | 725c89997e03d71b09ea3c17c997da0712b9d835 (diff) |
mlx4: generalization of multicast steering.
The same packet steering mechanism would be used both for IB and Ethernet,
Both multicasts and unicasts.
This commit prepares the general infrastructure for this.
Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/hw/mlx4/main.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/infiniband/hw/mlx4/main.c b/drivers/infiniband/hw/mlx4/main.c index 66e3eecfd0db..fbe1973f77b0 100644 --- a/drivers/infiniband/hw/mlx4/main.c +++ b/drivers/infiniband/hw/mlx4/main.c | |||
@@ -625,7 +625,7 @@ static int mlx4_ib_mcg_attach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) | |||
625 | 625 | ||
626 | err = mlx4_multicast_attach(mdev->dev, &mqp->mqp, gid->raw, | 626 | err = mlx4_multicast_attach(mdev->dev, &mqp->mqp, gid->raw, |
627 | !!(mqp->flags & MLX4_IB_QP_BLOCK_MULTICAST_LOOPBACK), | 627 | !!(mqp->flags & MLX4_IB_QP_BLOCK_MULTICAST_LOOPBACK), |
628 | MLX4_PROTOCOL_IB); | 628 | MLX4_PROT_IB_IPV6); |
629 | if (err) | 629 | if (err) |
630 | return err; | 630 | return err; |
631 | 631 | ||
@@ -636,7 +636,7 @@ static int mlx4_ib_mcg_attach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) | |||
636 | return 0; | 636 | return 0; |
637 | 637 | ||
638 | err_add: | 638 | err_add: |
639 | mlx4_multicast_detach(mdev->dev, &mqp->mqp, gid->raw, MLX4_PROTOCOL_IB); | 639 | mlx4_multicast_detach(mdev->dev, &mqp->mqp, gid->raw, MLX4_PROT_IB_IPV6); |
640 | return err; | 640 | return err; |
641 | } | 641 | } |
642 | 642 | ||
@@ -666,7 +666,7 @@ static int mlx4_ib_mcg_detach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid) | |||
666 | struct mlx4_ib_gid_entry *ge; | 666 | struct mlx4_ib_gid_entry *ge; |
667 | 667 | ||
668 | err = mlx4_multicast_detach(mdev->dev, | 668 | err = mlx4_multicast_detach(mdev->dev, |
669 | &mqp->mqp, gid->raw, MLX4_PROTOCOL_IB); | 669 | &mqp->mqp, gid->raw, MLX4_PROT_IB_IPV6); |
670 | if (err) | 670 | if (err) |
671 | return err; | 671 | return err; |
672 | 672 | ||
@@ -953,7 +953,7 @@ static int mlx4_ib_netdev_event(struct notifier_block *this, unsigned long event | |||
953 | mlx4_foreach_ib_transport_port(port, ibdev->dev) { | 953 | mlx4_foreach_ib_transport_port(port, ibdev->dev) { |
954 | oldnd = iboe->netdevs[port - 1]; | 954 | oldnd = iboe->netdevs[port - 1]; |
955 | iboe->netdevs[port - 1] = | 955 | iboe->netdevs[port - 1] = |
956 | mlx4_get_protocol_dev(ibdev->dev, MLX4_PROTOCOL_EN, port); | 956 | mlx4_get_protocol_dev(ibdev->dev, MLX4_PROT_ETH, port); |
957 | if (oldnd != iboe->netdevs[port - 1]) { | 957 | if (oldnd != iboe->netdevs[port - 1]) { |
958 | if (iboe->netdevs[port - 1]) | 958 | if (iboe->netdevs[port - 1]) |
959 | netdev_added(ibdev, port); | 959 | netdev_added(ibdev, port); |
@@ -1206,7 +1206,7 @@ static struct mlx4_interface mlx4_ib_interface = { | |||
1206 | .add = mlx4_ib_add, | 1206 | .add = mlx4_ib_add, |
1207 | .remove = mlx4_ib_remove, | 1207 | .remove = mlx4_ib_remove, |
1208 | .event = mlx4_ib_event, | 1208 | .event = mlx4_ib_event, |
1209 | .protocol = MLX4_PROTOCOL_IB | 1209 | .protocol = MLX4_PROT_IB_IPV6 |
1210 | }; | 1210 | }; |
1211 | 1211 | ||
1212 | static int __init mlx4_ib_init(void) | 1212 | static int __init mlx4_ib_init(void) |