mlx4: trigger IB events needed by SMC
authorUrsula Braun <ubraun@linux.ibm.com>
Mon, 12 Nov 2018 11:41:55 +0000 (12:41 +0100)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 22 Nov 2018 18:57:31 +0000 (11:57 -0700)
commitfc6526fba130dcbd496b96a9abf75a9382da95da
tree775f6f552653c7fd7fbdc9eac9ca4fb9c669fd7c
parent9828ca654b52848e7eb7dcc9b0994ff130dd4546
mlx4: trigger IB events needed by SMC

The mlx4 driver does not trigger an IB_EVENT_PORT_ACTIVE when the RoCE
network interface is activated. When SMC determines the RoCE device port
to be used, it checks the port states. This patch triggers IB events for
NETDEV_UP and NETDEV_DOWN.

Signed-off-by: Ursula Braun <ubraun@linux.ibm.com>
Acked-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx4/main.c
drivers/infiniband/hw/mlx4/mlx4_ib.h