git: 61b95bcb4299 - main - wg: change module name to if_wg

From: Kristof Provost <kp_at_FreeBSD.org>
Date: Sat, 29 Apr 2023 16:31:40 UTC
The branch main has been updated by kp:

URL: https://cgit.FreeBSD.org/src/commit/?id=61b95bcb42993b24633b280791438266d78f2747

commit 61b95bcb42993b24633b280791438266d78f2747
Author:     Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2023-04-27 15:35:12 +0000
Commit:     Kristof Provost <kp@FreeBSD.org>
CommitDate: 2023-04-29 16:30:24 +0000

    wg: change module name to if_wg
    
    Other virtual interface drivers (e.g. if_gif, if_stf, if_ovpn) all start
    with if_. The wireguard file is also named if_wg, but the module name
    was 'wg'.
    
    Fix this inconsistency.
    
    Reported by:    Christian McDonald <cmcdonald@netgate.com>
    Reviewed by:    zlei, kevans
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
    Differential Revision:  https://reviews.freebsd.org/D39853
---
 sys/dev/wg/if_wg.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/sys/dev/wg/if_wg.c b/sys/dev/wg/if_wg.c
index 6a99061cac54..d2403792cec8 100644
--- a/sys/dev/wg/if_wg.c
+++ b/sys/dev/wg/if_wg.c
@@ -3055,11 +3055,11 @@ wg_module_event_handler(module_t mod, int what, void *arg)
 }
 
 static moduledata_t wg_moduledata = {
-	wgname,
+	"if_wg",
 	wg_module_event_handler,
 	NULL
 };
 
-DECLARE_MODULE(wg, wg_moduledata, SI_SUB_PSEUDO, SI_ORDER_ANY);
-MODULE_VERSION(wg, WIREGUARD_VERSION);
-MODULE_DEPEND(wg, crypto, 1, 1, 1);
+DECLARE_MODULE(if_wg, wg_moduledata, SI_SUB_PSEUDO, SI_ORDER_ANY);
+MODULE_VERSION(if_wg, WIREGUARD_VERSION);
+MODULE_DEPEND(if_wg, crypto, 1, 1, 1);