Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

freebsd: remove no ifnet_lock that collides CTX_LOCK in iflib_netmap_… #786

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
freebsd: remove no ifnet_lock that collides CTX_LOCK in iflib_netmap_…
…register
Michio Honda committed Apr 7, 2021
commit 91b82dec408871fc0b866bda9eb4ee0676f459b7
4 changes: 4 additions & 0 deletions sys/dev/netmap/netmap.c
Original file line number Diff line number Diff line change
@@ -3983,7 +3983,9 @@ netmap_hw_reg(struct netmap_adapter *na, int onoff)
(struct netmap_hw_adapter*)na;
int error = 0;

#ifndef __FreeBSD__
nm_os_ifnet_lock();
#endif /* __FreeBSD__ */

if (nm_iszombie(na)) {
if (onoff) {
@@ -3997,7 +3999,9 @@ netmap_hw_reg(struct netmap_adapter *na, int onoff)
error = hwna->nm_hw_register(na, onoff);

out:
#ifndef __FreeBSD__
nm_os_ifnet_unlock();
#endif /* __FreeBSD__ */

return error;
}