mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
1 changed files with 3 additions and 0 deletions
|
|
@ -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 a new issue