diff options
author | Shiraz Saleem <shiraz.saleem@intel.com> | 2017-12-22 16:46:58 +0100 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2017-12-22 21:39:07 +0100 |
commit | 3020f252c3aa7bd59c5df38671f1ef13a0426e40 (patch) | |
tree | 2e037c60cc87fbbb290fc0cfe6c46cf1644ad898 /drivers/infiniband/hw/i40iw/i40iw_main.c | |
parent | i40iw: Add notifier for network device events (diff) | |
download | linux-3020f252c3aa7bd59c5df38671f1ef13a0426e40.tar.xz linux-3020f252c3aa7bd59c5df38671f1ef13a0426e40.zip |
i40iw: Selectively teardown QPs on IP addr change event
On IP address change event, all connected QPs are torn down
irrespective of whether IP address is involved in a connection.
Only teardown connections those source or destination address
matches the netdev interface IP address being changed, and if
they are on the same VLAN as the netdev.
Fixes: e5e74b61b165 ("i40iw: Add IP addr handling on netdev events")
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to '')
-rw-r--r-- | drivers/infiniband/hw/i40iw/i40iw_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/i40iw/i40iw_main.c b/drivers/infiniband/hw/i40iw/i40iw_main.c index a4a845825565..8a9815e43282 100644 --- a/drivers/infiniband/hw/i40iw/i40iw_main.c +++ b/drivers/infiniband/hw/i40iw/i40iw_main.c @@ -1800,7 +1800,7 @@ static void i40iw_close(struct i40e_info *ldev, struct i40e_client *client, bool if (reset) iwdev->reset = true; - i40iw_cm_disconnect_all(iwdev); + i40iw_cm_teardown_connections(iwdev, NULL, NULL, true); destroy_workqueue(iwdev->virtchnl_wq); i40iw_deinit_device(iwdev); } |