Make deletion of RoCE GID entries synchronous in ibcore.
When a network device is departing, the RoCE GID entries should be cleared before the default L2 link layer address is freed. Else a NULL pointer access may happen. MFC after: 1 week Sponsored by: Mellanox Technologies
This commit is contained in:
parent
42fa341d9c
commit
703ea406d5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=330493
@ -362,6 +362,9 @@ roce_gid_delete_all_event(struct net_device *ndev)
|
||||
dev_hold(ndev);
|
||||
work->ndev = ndev;
|
||||
queue_work(roce_gid_mgmt_wq, &work->work);
|
||||
|
||||
/* make sure job is complete before returning */
|
||||
flush_workqueue(roce_gid_mgmt_wq);
|
||||
}
|
||||
|
||||
static int
|
||||
|
Loading…
Reference in New Issue
Block a user