git: b452382e5c00 - stable/13 - lagg(4): Make lagg_list and lagg_detach_cookie static
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 10 Apr 2023 04:16:43 UTC
The branch stable/13 has been updated by zlei:
URL: https://cgit.FreeBSD.org/src/commit/?id=b452382e5c00facd0fab8a8b0bd53d9564689e55
commit b452382e5c00facd0fab8a8b0bd53d9564689e55
Author: Zhenlei Huang <zlei@FreeBSD.org>
AuthorDate: 2023-03-29 16:13:02 +0000
Commit: Zhenlei Huang <zlei@FreeBSD.org>
CommitDate: 2023-04-10 04:15:04 +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
(cherry picked from commit fcac5719a1833ad865ac0a7960ff18319a40dfff)
---
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 e559371f2d37..cf332ea529e9 100644
--- a/sys/net/if_lagg.c
+++ b/sys/net/if_lagg.c
@@ -106,7 +106,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)
@@ -115,7 +115,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 *, int, caddr_t);
static void lagg_clone_destroy(struct ifnet *);