git: fcac5719a183 - main - lagg(4): Make lagg_list and lagg_detach_cookie static
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 29 Mar 2023 16:32:38 UTC
The branch main has been updated by zlei:
URL: https://cgit.FreeBSD.org/src/commit/?id=fcac5719a1833ad865ac0a7960ff18319a40dfff
commit fcac5719a1833ad865ac0a7960ff18319a40dfff
Author: Zhenlei Huang <zlei@FreeBSD.org>
AuthorDate: 2023-03-29 16:13:02 +0000
Commit: Zhenlei Huang <zlei@FreeBSD.org>
CommitDate: 2023-03-29 16:14:44 +0000
lagg(4): Make lagg_list and lagg_detach_cookie static
They are used internally only.
No functional change intended.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D39250
---
sys/net/if_lagg.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sys/net/if_lagg.c b/sys/net/if_lagg.c
index 27ebed8e135a..42c194233a89 100644
--- a/sys/net/if_lagg.c
+++ b/sys/net/if_lagg.c
@@ -103,7 +103,7 @@ struct lagg_snd_tag {
struct m_snd_tag *tag;
};
-VNET_DEFINE(SLIST_HEAD(__trhead, lagg_softc), lagg_list); /* list of laggs */
+VNET_DEFINE_STATIC(SLIST_HEAD(__trhead, lagg_softc), lagg_list); /* list of laggs */
#define V_lagg_list VNET(lagg_list)
VNET_DEFINE_STATIC(struct mtx, lagg_list_mtx);
#define V_lagg_list_mtx VNET(lagg_list_mtx)
@@ -112,7 +112,7 @@ VNET_DEFINE_STATIC(struct mtx, lagg_list_mtx);
#define LAGG_LIST_LOCK_DESTROY(x) mtx_destroy(&V_lagg_list_mtx)
#define LAGG_LIST_LOCK(x) mtx_lock(&V_lagg_list_mtx)
#define LAGG_LIST_UNLOCK(x) mtx_unlock(&V_lagg_list_mtx)
-eventhandler_tag lagg_detach_cookie = NULL;
+static eventhandler_tag lagg_detach_cookie = NULL;
static int lagg_clone_create(struct if_clone *, char *, size_t,
struct ifc_data *, struct ifnet **);