]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx4: Always use the correct port for mirrored multicast attachments
authorMoni Shoua <monis@mellanox.com>
Sun, 8 Feb 2015 09:49:33 +0000 (11:49 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Feb 2015 22:03:53 +0000 (14:03 -0800)
commitfd5a8ef4db4070bd3a28576f031fe27d0d7fe38c
tree7d4ea49587626baab5d863717c98504e5cc698e2
parented433e6037ee339da6dbe8dcc622b0f2ee4b964f
IB/mlx4: Always use the correct port for mirrored multicast attachments

When attaching a QP to a multicast address in bonded mode, there was an
assumption that the port of the QP must be #1. This assumption isn't the
case under the flow which enables maximal usage of the physical ports.

Fix it by always checking the port of the original flow and create the
mirrored flow on the other port.

Fixes: 92ce16a6d760 ('IB/mlx4: Load balance ports in port aggregation mode')
Signed-off-by: Moni Shoua <monis@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/infiniband/hw/mlx4/main.c