1
0
Fork 0
remarkable-linux/drivers/infiniband
Eran Ben Elisha 2ac1797da0 {net,ib}/mlx5: Don't disable local loopback multicast traffic when needed
[ Upstream commit 8978cc921f ]

There are systems platform information management interfaces (such as
HOST2BMC) for which we cannot disable local loopback multicast traffic.

Separate disable_local_lb_mc and disable_local_lb_uc capability bits so
driver will not disable multicast loopback traffic if not supported.
(It is expected that Firmware will not set disable_local_lb_mc if
HOST2BMC is running for example.)

Function mlx5_nic_vport_update_local_lb will do best effort to
disable/enable UC/MC loopback traffic and return success only in case it
succeeded to changed all allowed by Firmware.

Adapt mlx5_ib and mlx5e to support the new cap bits.

Fixes: 2c43c5a036 ("net/mlx5e: Enable local loopback in loopback selftest")
Fixes: c85023e153 ("IB/mlx5: Add raw ethernet local loopback support")
Fixes: bded747bb4 ("net/mlx5: Add raw ethernet local loopback firmware command")
Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com>
Cc: kernel-team@fb.com
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-01-31 14:03:46 +01:00
..
core IB/core: Verify that QP is security enabled in create and destroy 2018-01-02 20:31:04 +01:00
hw {net,ib}/mlx5: Don't disable local loopback multicast traffic when needed 2018-01-31 14:03:46 +01:00
sw IB/rxe: check for allocation failure on elem 2017-12-25 14:26:26 +01:00
ulp iser-target: Fix possible use-after-free in connection establishment error 2018-01-23 19:58:12 +01:00
Kconfig IB/core: Expose ioctl interface through experimental Kconfig 2017-08-31 08:35:14 -04:00
Makefile IB/rdmavt: Create module framework and handle driver registration 2016-03-10 20:37:04 -05:00