Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net/lagg remove unused ioctl command named SIOCGLAGGPORT
details: https://anonhg.NetBSD.org/src/rev/949c29169cc1
branches: trunk
changeset: 1025165:949c29169cc1
user: yamaguchi <yamaguchi%NetBSD.org@localhost>
date: Mon Nov 08 06:29:16 2021 +0000
description:
remove unused ioctl command named SIOCGLAGGPORT
to get status of l2tp(4) added to lagg
NOTE:
SIOCGLAGGPORT is based on FreeBSD implementation.
And, currently, it is not used in NetBSD kernel/userland.
diffstat:
sys/net/lagg/if_lagg.c | 37 ++-----------------------------------
sys/net/lagg/if_lagg.h | 3 +--
2 files changed, 3 insertions(+), 37 deletions(-)
diffs (83 lines):
diff -r bfc702a4c104 -r 949c29169cc1 sys/net/lagg/if_lagg.c
--- a/sys/net/lagg/if_lagg.c Mon Nov 08 06:24:11 2021 +0000
+++ b/sys/net/lagg/if_lagg.c Mon Nov 08 06:29:16 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_lagg.c,v 1.19 2021/11/08 06:22:16 yamaguchi Exp $ */
+/* $NetBSD: if_lagg.c,v 1.20 2021/11/08 06:29:16 yamaguchi Exp $ */
/*
* Copyright (c) 2005, 2006 Reyk Floeter <reyk%openbsd.org@localhost>
@@ -20,7 +20,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_lagg.c,v 1.19 2021/11/08 06:22:16 yamaguchi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_lagg.c,v 1.20 2021/11/08 06:29:16 yamaguchi Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -2645,15 +2645,9 @@
static int
lagg_port_ioctl(struct ifnet *ifp, u_long cmd, void *data)
{
- struct ifreq *ifr = (struct ifreq *)data;
struct lagg_softc *sc;
- struct lagg_variant *var;
struct lagg_port *lp;
- struct lagg_req laggreq;
- struct laggreqport *rp;
- struct psref psref;
int error = 0;
- int bound;
u_int ifflags;
if ((lp = ifp->if_lagg) == NULL ||
@@ -2662,33 +2656,6 @@
}
switch (cmd) {
- case SIOCGLAGGPORT:
- error = copyin(ifr->ifr_data, &laggreq, sizeof(laggreq));
- if (error != 0)
- break;
-
- if (laggreq.lrq_nports != 1) {
- error = EINVAL;
- break;
- }
-
- rp = &laggreq.lrq_reqports[0];
-
- if (rp->rp_portname[0] == '\0' ||
- ifunit(rp->rp_portname) != ifp) {
- error = EINVAL;
- break;
- }
-
- bound = curlwp_bind();
- var = lagg_variant_getref(sc, &psref);
-
- rp->rp_prio = lp->lp_prio;
- rp->rp_flags = lp->lp_flags;
- lagg_proto_portstat(var, lp, rp);
- lagg_variant_putref(var, &psref);
- curlwp_bindx(bound);
- break;
case SIOCSIFCAP:
case SIOCSIFMTU:
case SIOCSETHERCAP:
diff -r bfc702a4c104 -r 949c29169cc1 sys/net/lagg/if_lagg.h
--- a/sys/net/lagg/if_lagg.h Mon Nov 08 06:24:11 2021 +0000
+++ b/sys/net/lagg/if_lagg.h Mon Nov 08 06:29:16 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_lagg.h,v 1.2 2021/05/24 06:08:28 yamaguchi Exp $ */
+/* $NetBSD: if_lagg.h,v 1.3 2021/11/08 06:29:16 yamaguchi Exp $ */
/*
* Copyright (c) 2005, 2006 Reyk Floeter <reyk%openbsd.org@localhost>
@@ -189,5 +189,4 @@
#define SIOCGLAGG SIOCGIFGENERIC
#define SIOCSLAGG SIOCSIFGENERIC
-#define SIOCGLAGGPORT SIOCGIFGENERIC
#endif
Home |
Main Index |
Thread Index |
Old Index