IFNET_RLOCK() is not sufficient, the epoch needs entered.
Details
Details
- Reviewers
glebius • hselasky - Group Reviewers
network - Commits
- rG70510800d1ad: mlx5: Enter network epoch when using if_foreach()
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Hi,
I'm not sure if that will work, because there is a write_lock() inside mlx5_enable_roce_if_cb(), and that cannot be used inside an EPOCH section!
#define write_lock(_l) rw_wlock(&(_l)->rw)
Comment Actions
It's OK to use rwlocks/mutexes (and basically anything that don't sleep) in the (network) epoch.