aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Chagin <dchagin@FreeBSD.org>2023-03-04 09:11:38 +0000
committerDmitry Chagin <dchagin@FreeBSD.org>2023-03-04 09:11:38 +0000
commit8d6dd96d50d2e6fea4cbbdb30ff12cc5730b7fbd (patch)
tree5b90959ef6193a3edd4ead0e024dc26530e18d9f
parentf9b0675b014d06995e5337b71129fc94bd1cedd0 (diff)
downloadsrc-8d6dd96d50d2e6fea4cbbdb30ff12cc5730b7fbd.tar.gz
src-8d6dd96d50d2e6fea4cbbdb30ff12cc5730b7fbd.zip
linux(4): Add net epoch assert to the linux_ifhwaddr, linux_ifflags
Now this functions are intended to use in the net epoch. Reviewed by: emaste, melifaro Differential Revision: https://reviews.freebsd.org/D38795
-rw-r--r--sys/compat/linux/linux.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/compat/linux/linux.c b/sys/compat/linux/linux.c
index 2e6e52f7490c..273e2a0295c1 100644
--- a/sys/compat/linux/linux.c
+++ b/sys/compat/linux/linux.c
@@ -477,6 +477,8 @@ int
linux_ifhwaddr(struct ifnet *ifp, struct l_sockaddr *lsa)
{
+ NET_EPOCH_ASSERT();
+
if (IFP_IS_LOOP(ifp)) {
bzero(lsa, sizeof(*lsa));
lsa->sa_family = LINUX_ARPHRD_LOOPBACK;