git: 9d269938e300 - main - ipsec_offload: ifconfig support

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Fri, 12 Jul 2024 11:25:06 UTC
The branch main has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=9d269938e300a99481e4d28d3a49122201f9bc4f

commit 9d269938e300a99481e4d28d3a49122201f9bc4f
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2023-03-30 22:49:08 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2024-07-12 03:29:32 +0000

    ipsec_offload: ifconfig support
    
    Sponsored by:   NVIDIA networking
---
 sbin/ifconfig/ifconfig.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c
index 615de5d4ae14..e6ed9015b34b 100644
--- a/sbin/ifconfig/ifconfig.c
+++ b/sbin/ifconfig/ifconfig.c
@@ -2144,6 +2144,8 @@ static struct cmd basic_cmds[] = {
 	    setifcapnv),
 	DEF_CMD_SARG("-rxtls",	"-"IFCAP2_RXTLS4_NAME ",-" IFCAP2_RXTLS6_NAME,
 	    setifcapnv),
+	DEF_CMD_SARG("ipsec",	IFCAP2_IPSEC_OFFLOAD_NAME, setifcapnv),
+	DEF_CMD_SARG("-ipsec",	"-"IFCAP2_IPSEC_OFFLOAD_NAME, setifcapnv),
 	DEF_CMD("wol",		IFCAP_WOL,	setifcap),
 	DEF_CMD("-wol",		IFCAP_WOL,	clearifcap),
 	DEF_CMD("wol_ucast",	IFCAP_WOL_UCAST,	setifcap),