OSDN Git Service

IB/mlx5: Simplify netdev unbinding
authorOr Gerlitz <ogerlitz@mellanox.com>
Tue, 11 Dec 2018 16:10:43 +0000 (18:10 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 20 Dec 2018 22:18:24 +0000 (15:18 -0700)
commit842a9c837e2017127250a93204368f13e660ed9d
tree8db6d54c5e1ff08e76becf2897cc4817efe3ede7
parent641d1207d2ed0ef21ff5ad61e067d630028e2f62
IB/mlx5: Simplify netdev unbinding

When dealing with netdev unregister events, we just need to know that this
is our currently bounded netdev. There's no need to do any further
checks/queries.

This patch doesn't change any functionality.

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Reviewed-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/main.c