NgATM: deprecate

Support for ATM NICs was removed prior to FreeBSD 12.  At the time it
was unclear if this code was still useful without it.  Now the time has
come to finish removing support.

Add DREPRECATION NOTICEs to the manpages and gone_in(14, ...) warnings
in the constructors (or module init for ngatmbase).

MFC after:	3 days
Relnotes:	yes

Reviewed by:	manu, emaste
Differential Revision:	https://reviews.freebsd.org/D38877
This commit is contained in:
Brooks Davis 2023-03-03 16:20:18 +00:00
parent f0c4b42c60
commit 211c302f10
10 changed files with 40 additions and 5 deletions

View File

@ -31,7 +31,7 @@
.\"
.\" $FreeBSD$
.\"
.Dd March 10, 2005
.Dd March 3, 2023
.Dt NG_CCATM 4
.Os
.Sh NAME
@ -47,6 +47,11 @@
.In netgraph.h
.In netgraph/ng_uni.h
.In netgraph/ng_ccatm.h
.Sh DEPRECATION NOTICE
.Nm
is deprecated and may not be available in
.Fx 14.0
and later.
.Sh DESCRIPTION
The
.Nm

View File

@ -30,7 +30,7 @@
.\"
.\" ng_sscfu(4) man page
.\"
.Dd October 24, 2003
.Dd March 3, 2023
.Dt NG_SSCFU 4
.Os
.Sh NAME
@ -40,6 +40,11 @@
.In netnatm/saal/sscopdef.h
.In netnatm/saal/sscfudef.h
.In netgraph/atm/ng_sscfu.h
.Sh DEPRECATION NOTICE
.Nm
is deprecated and may not be available in
.Fx 14.0
and later.
.Sh DESCRIPTION
The
.Nm sscfu

View File

@ -30,7 +30,7 @@
.\"
.\" ng_sscop(4) man page
.\"
.Dd October 24, 2003
.Dd March 3, 2023
.Dt NG_SSCOP 4
.Os
.Sh NAME
@ -39,6 +39,11 @@
.Sh SYNOPSIS
.In netnatm/saal/sscopdef.h
.In netgraph/atm/ng_sscop.h
.Sh DEPRECATION NOTICE
.Nm
is deprecated and may not be available in
.Fx 14.0
and later.
.Sh DESCRIPTION
The
.Nm sscop

View File

@ -28,7 +28,7 @@
.\"
.\" $FreeBSD$
.\"
.Dd October 6, 2003
.Dd March 3, 2023
.Dt NG_UNI 4
.Os
.Sh NAME
@ -38,6 +38,11 @@
.In netnatm/msg/unistruct.h
.In netnatm/sig/unidef.h
.In netgraph/atm/ng_uni.h
.Sh DEPRECATION NOTICE
.Nm
is deprecated and may not be available in
.Fx 14.0
and later.
.Sh DESCRIPTION
The
.Nm uni

View File

@ -30,9 +30,14 @@
.\"
.\" ngatmbase(4) man page
.\"
.Dd August 24, 2004
.Dd March 3, 2023
.Dt NGATMBASE 4
.Os
.Sh DEPRECATION NOTICE
.Nm
is deprecated and may not be available in
.Fx 14.0
and later.
.Sh NAME
.Nm ngatmbase
.Nd netgraph ATM utility module

View File

@ -348,6 +348,8 @@ ng_ccatm_constructor(node_p node)
{
struct ccnode *priv;
gone_in(14, "ng_ccatm: netgraph ATM modules");
priv = malloc(sizeof(*priv), M_NG_CCATM, M_WAITOK | M_ZERO);
priv->node = node;

View File

@ -77,6 +77,8 @@ static struct mtx ngatm_unilist_mtx;
static void
uni_msg_init(void)
{
gone_in(14, "ngatmbase: netgraph ATM modules");
mtx_init(&ngatm_unilist_mtx, "netgraph UNI msg header lists", NULL,
MTX_DEF);
}

View File

@ -536,6 +536,8 @@ ng_sscfu_constructor(node_p node)
{
struct priv *priv;
gone_in(14, "ng_sscfu: netgraph ATM modules");
priv = malloc(sizeof(*priv), M_NG_SSCFU, M_WAITOK | M_ZERO);
if ((priv->sscf = sscfu_create(node, &sscfu_funcs)) == NULL) {

View File

@ -246,6 +246,8 @@ ng_sscop_constructor(node_p node)
{
struct priv *p;
gone_in(14, "ng_sscop: netgraph ATM modules");
p = malloc(sizeof(*p), M_NG_SSCOP, M_WAITOK | M_ZERO);
if ((p->sscop = sscop_create(node, &sscop_funcs)) == NULL) {

View File

@ -225,6 +225,8 @@ ng_uni_constructor(node_p node)
{
struct priv *priv;
gone_in(14, "ng_uni: netgraph ATM modules");
priv = malloc(sizeof(*priv), M_NG_UNI, M_WAITOK | M_ZERO);
if ((priv->uni = uni_create(node, &uni_funcs)) == NULL) {