atm: remove more dead code
Subsystems (4)
Jakub Kicinski
maintainerv2 cover atm: remove more dead code
Commit 6deb53595092 ("net: remove unused ATM protocols and legacy ATM device drivers") removed a good chunk of old ATM drivers. Our goal going forward is to limit the ATM support to PPPoATM used in ADSL deployments.
A recent burst of AI generated fixes for net/atm/signaling.c and net/atm/svc.c made me look closer at the remaining code. PPPoATM runs over permanent virtual circuits (PF_ATMPVC) with a statically configured VPI/VCI. We can drop switched virtual circuits (SVCs) and user-space signaling (atmsigd) support. While digging around I noticed a few more obviously dead pieces of code.
Annoyingly, I have applied one "fix" to QoS config which will now make net conflict with this series :/
v2:
- fix build warning on patch 4
v1: https://lore.kernel.org/[email protected]
Jakub Kicinski (9):
atm: remove AAL3/4 transport support
atm: remove the unused send_oam / push_oam callbacks
atm: remove dead SONET PHY ioctls
atm: remove the local ATM (NSAP) address registry
atm: remove SVC socket support and the signaling daemon interface
atm: remove the unused change_qos device operation
atm: remove the unused pre_send and send_bh device operations
atm: remove unused ATM PHY operations
atm: remove orphaned uAPI for deleted drivers, protocols and SVCs
net/atm/Makefile | 2 +- include/linux/atm_tcp.h | 24 -- include/linux/atmdev.h | 70 +-- include/uapi/linux/atm_eni.h | 24 -- include/uapi/linux/atm_he.h | 21 - include/uapi/linux/atm_idt77105.h | 29 -- include/uapi/linux/atm_nicstar.h | 54 --- include/uapi/linux/atm_tcp.h | 62 --- include/uapi/linux/atm_zatm.h | 47 -- include/uapi/linux/atmarp.h | 42 -- include/uapi/linux/atmclip.h | 22 - include/uapi/linux/atmdev.h | 18 - include/uapi/linux/atmlec.h | 92 ---- include/uapi/linux/atmmpc.h | 127 ------ include/uapi/linux/atmsvc.h | 56 --- net/atm/addr.h | 21 - net/atm/common.h | 5 - net/atm/protocols.h | 1 - net/atm/signaling.h | 31 -- drivers/atm/solos-pci.c | 4 - net/atm/addr.c | 162 ------- net/atm/atm_sysfs.c | 25 -- net/atm/br2684.c | 3 +- net/atm/common.c | 73 +--- net/atm/ioctl.c | 58 --- net/atm/pppoatm.c | 3 +- net/atm/proc.c | 56 --- net/atm/raw.c | 21 +- net/atm/resources.c | 59 +-- net/atm/signaling.c | 297 ------------- net/atm/svc.c | 695 ------------------------------ 31 files changed, 15 insertions(+), 2189 deletions(-) delete mode 100644 include/linux/atm_tcp.h delete mode 100644 include/uapi/linux/atm_eni.h delete mode 100644 include/uapi/linux/atm_he.h delete mode 100644 include/uapi/linux/atm_idt77105.h delete mode 100644 include/uapi/linux/atm_nicstar.h delete mode 100644 include/uapi/linux/atm_tcp.h delete mode 100644 include/uapi/linux/atm_zatm.h delete mode 100644 include/uapi/linux/atmarp.h delete mode 100644 include/uapi/linux/atmclip.h delete mode 100644 include/uapi/linux/atmlec.h delete mode 100644 include/uapi/linux/atmmpc.h delete mode 100644 include/uapi/linux/atmsvc.h delete mode 100644 net/atm/addr.h delete mode 100644 net/atm/signaling.h delete mode 100644 net/atm/addr.c delete mode 100644 net/atm/signaling.c delete mode 100644 net/atm/svc.c
Signature · 1 line
2.54.0
Jakub Kicinski
maintainerPATCH v2 1/9 atm: remove AAL3/4 transport support
AAL3/4 is an obsolete connection-oriented ATM adaptation layer that has seen no real use since the SMDS-era hardware it was designed for (90s?). We are only maintaining ATM support in-tree to keep PPPoATM running, and PPPoATM runs over AAL5.
Drop the "raw" AAL3/4 transport (atm_init_aal34()) and the ATM_AAL34 cases in the connect and traffic-parameter paths. A vcc_connect() with qos.aal == ATM_AAL34 now fails with -EPROTOTYPE.
uAPI cleanup is performed later, separately.
--- net/atm/protocols.h | 1 - net/atm/common.c | 7 ------- net/atm/raw.c | 12 ------------ 3 files changed, 20 deletions(-)
net/atm/protocols.h +0 -1
@@ -8,7 +8,6 @@#define NET_ATM_PROTOCOLS_H int atm_init_aal0 (struct atm_vcc *vcc);/* "raw" AAL0 */ -int atm_init_aal34 (struct atm_vcc *vcc);/* "raw" AAL3/4 transport */ int atm_init_aal5 (struct atm_vcc *vcc);/* "raw" AAL5 transport */ #endif
net/atm/common.c +0 -7
@@ -293,9 +293,6 @@ static int adjust_tp(struct atm_trafprm *tp, unsigned char aal)case ATM_AAL0 : max_sdu =ATM_CELL_SIZE -1 ;break ; -case ATM_AAL34 : - max_sdu =ATM_MAX_AAL34_PDU ; -break ;default :pr_warn ("AAL problems ... (%d)\n" , aal); fallthrough;
@@ -411,10 +408,6 @@ static int __vcc_connect(struct atm_vcc *vcc, struct atm_dev *dev, short vpi, error =atm_init_aal0 (vcc); vcc->stats = &dev->stats.aal0;break ; -case ATM_AAL34 : - error =atm_init_aal34 (vcc); - vcc->stats = &dev->stats.aal34; -break ;case ATM_NO_AAL :/* ATM_AAL5 is also used in the "0 for default" case */ vcc->qos.aal =ATM_AAL5 ;
net/atm/raw.c +0 -12
@@ -68,18 +68,6 @@ int atm_init_aal0(struct atm_vcc *vcc)return 0 ; } -int atm_init_aal34 (struct atm_vcc *vcc) -{ - vcc->push = atm_push_raw; - vcc->pop = atm_pop_raw; - vcc->push_oam =NULL ; -if (vcc->dev->ops->send_bh) - vcc->send = vcc->dev->ops->send_bh; -else - vcc->send = vcc->dev->ops->send; -return 0 ; -} -int atm_init_aal5 (struct atm_vcc *vcc) { vcc->push = atm_push_raw;
Signature · 1 line
2.54.0
Jakub Kicinski
maintainerPATCH v2 2/9 atm: remove the unused send_oam / push_oam callbacks
In reply to Jakub KicinskiThe atmdev_ops::send_oam device operation and the atm_vcc::push_oam callback were the kernel's interface for raw F4/F5 OAM cell exchange. Nothing assigns them a non-NULL value and nothing ever invokes them:
the core only ever initialises push_oam to NULL (in vcc_create() and the AAL init helpers) and the Solos driver only lists send_oam = NULL for documentation. The drivers that actually drove OAM through these hooks were removed along with the legacy ATM adapters.
Drop both callbacks and the NULL initialisers.
--- include/linux/atmdev.h | 8 -------- drivers/atm/solos-pci.c | 1 - net/atm/common.c | 1 - net/atm/raw.c | 2 -- 4 files changed, 12 deletions(-)
include/linux/atmdev.h +0 -8
@@ -104,7 +104,6 @@ struct atm_vcc {void (*release_cb)(struct atm_vcc *vcc);/* release_sock callback */ void (*push)(struct atm_vcc *vcc,struct sk_buff *skb);void (*pop)(struct atm_vcc *vcc,struct sk_buff *skb);/* optional */ -int (*push_oam)(struct atm_vcc *vcc,void *cell);int (*send)(struct atm_vcc *vcc,struct sk_buff *skb);void *dev_data;/* per-device data */ void *proto_data;/* per-protocol data */
@@ -170,12 +169,6 @@ struct atm_dev {struct list_head dev_list;/* linkage */ }; - -/* OF: send_Oam Flags */ - -#define ATM_OF_IMMED 1/* Attempt immediate delivery */ -#define ATM_OF_INRATE 2/* Attempt in-rate delivery */ -struct atmdev_ops {/* only send is required */ void (*dev_close)(struct atm_dev *dev);int (*open)(struct atm_vcc *vcc);
@@ -188,7 +181,6 @@ struct atmdev_ops { /* only send is required */int (*pre_send)(struct atm_vcc *vcc,struct sk_buff *skb);int (*send)(struct atm_vcc *vcc,struct sk_buff *skb);int (*send_bh)(struct atm_vcc *vcc,struct sk_buff *skb); -int (*send_oam)(struct atm_vcc *vcc,void *cell,int flags);void (*phy_put)(struct atm_dev *dev,unsigned char value,unsigned long addr);unsigned char (*phy_get)(struct atm_dev *dev,unsigned long addr);
drivers/atm/solos-pci.c +0 -1
@@ -1180,7 +1180,6 @@ static const struct atmdev_ops fpga_ops = { .close = pclose, .ioctl = NULL, .send = psend, - .send_oam = NULL, .phy_put = NULL, .phy_get = NULL, .change_qos = NULL,
net/atm/common.c +0 -1
@@ -163,7 +163,6 @@ int vcc_create(struct net *net, struct socket *sock, int protocol, int family, i vcc->push =NULL ; vcc->pop =NULL ; vcc->owner =NULL ; - vcc->push_oam =NULL ; vcc->release_cb =NULL ; vcc->vpi = vcc->vci =0 ;/* no VCI/VPI yet */ vcc->atm_options = vcc->aal_options =0 ;
net/atm/raw.c +0 -2
@@ -63,7 +63,6 @@ int atm_init_aal0(struct atm_vcc *vcc) { vcc->push = atm_push_raw; vcc->pop = atm_pop_raw; - vcc->push_oam =NULL ; vcc->send = atm_send_aal0;return 0 ; }
@@ -72,7 +71,6 @@ int atm_init_aal5(struct atm_vcc *vcc) { vcc->push = atm_push_raw; vcc->pop = atm_pop_raw; - vcc->push_oam =NULL ;if (vcc->dev->ops->send_bh) vcc->send = vcc->dev->ops->send_bh;else
Signature · 1 line
2.54.0
Jakub Kicinski
maintainerPATCH v2 3/9 atm: remove dead SONET PHY ioctls
In reply to Jakub KicinskiThe SONET_* ioctls are SONET/SDH PHY controls that atm_dev_ioctl() and the compat path only ever forwarded to the driver's ->ioctl() handler. The PHY drivers that implemented them (the S/UNI library and the framers on the removed PCI/SBUS adapters) are gone, and neither surviving driver services them: solos-pci has no ->ioctl, and usbatm handles only ATM_QUERYLOOP. They now uniformly return an error regardless.
Drop the SONET compat passthrough and the SONET cases in atm_dev_ioctl(), along with the now-unused linux/sonet.h includes. The SONET_* uAPI definitions are untouched.
--- net/atm/ioctl.c | 13 ------------- net/atm/resources.c | 5 ----- 2 files changed, 18 deletions(-)
net/atm/ioctl.c +0 -13
@@ -13,7 +13,6 @@#include <linux/atmdev.h> #include <linux/atmarp.h> /* manifest constants */ #include <linux/capability.h> -#include <linux/sonet.h> /* for ioctls */ #include <linux/atmsvc.h> #include <linux/mutex.h> #include <asm/ioctls.h>
@@ -290,18 +289,6 @@ static int do_atm_ioctl(struct socket *sock, unsigned int cmd32,int i;unsigned int cmd =0 ; -switch (cmd32) { -case SONET_GETSTAT : -case SONET_GETSTATZ : -case SONET_GETDIAG : -case SONET_SETDIAG : -case SONET_CLRDIAG : -case SONET_SETFRAMING : -case SONET_GETFRAMING : -case SONET_GETFRSENSE : -return do_atmif_sioc (sock, cmd32, arg); - } -for (i =0 ; i <NR_ATM_IOCTL ; i++) {if (cmd32 == atm_ioctl_map[i].cmd32) { cmd = atm_ioctl_map[i].cmd;
net/atm/resources.c +0 -5
@@ -13,7 +13,6 @@#include <linux/ctype.h> #include <linux/string.h> #include <linux/atmdev.h> -#include <linux/sonet.h> #include <linux/kernel.h> /* for barrier */ #include <linux/module.h> #include <linux/bitops.h>
@@ -361,10 +360,6 @@ int atm_dev_ioctl(unsigned int cmd, void __user *buf, int __user *sioc_len, } fallthrough;case ATM_SETCIRANGE : -case SONET_GETSTATZ : -case SONET_SETDIAG : -case SONET_CLRDIAG : -case SONET_SETFRAMING :if (!capable (CAP_NET_ADMIN )) { error = -EPERM ; goto done;
Signature · 1 line
2.54.0
Jakub Kicinski
maintainerPATCH v2 4/9 atm: remove the local ATM (NSAP) address registry
In reply to Jakub Kicinskinet/atm/addr.c maintained the per-device lists of local NSAP addresses (dev->local) and ILMI-learned LECS addresses (dev->lecs). These exist solely to serve SVC signaling: the lists are populated through the ATM_{ADD,DEL,RST}ADDR / ATM_{ADD,DEL,GET}LECSADDR ioctls used by the atmsigd / ILMI daemons, and consumed when registering addresses with the signaling daemon. The LECS list belonged to LAN Emulation, which has been removed.
With no SVC users in a DSL-only configuration these lists are always empty, so drop the registry entirely:
- remove the ADDR/LECSADDR/RSTADDR ioctls
- drop the now-always-empty "atmaddress" sysfs attribute
- remove the dev->local / dev->lecs lists, structs and enums
- delete net/atm/addr.c and net/atm/addr.h
The device ESI ("MAC" address) and its ATM_{G,S}ETESI ioctls and "address" sysfs attribute are retained - the USB DSL modems populate the ESI.
---
v2:
- delete the get_user(sioc_len), technically this is a behavior change since we no longer validate the access to sioc_len before executing the ioctl, but I suspect this level of bug-wards compatibility is theoretical
v1: https://lore.kernel.org/[email protected]
--- net/atm/Makefile | 2 +- include/linux/atmdev.h | 9 --- net/atm/addr.h | 21 ------ net/atm/addr.c | 162 ----------------------------------------- net/atm/atm_sysfs.c | 25 ------- net/atm/common.c | 1 - net/atm/ioctl.c | 12 --- net/atm/resources.c | 53 +------------- net/atm/svc.c | 1 - 9 files changed, 2 insertions(+), 284 deletions(-) delete mode 100644 net/atm/addr.h delete mode 100644 net/atm/addr.c
net/atm/Makefile +1 -1
@@ -3,7 +3,7 @@ # Makefile for the ATM Protocol Families. # -atm-y := addr.o pvc.o signaling.o svc.o ioctl.o common.o atm_misc.o raw.o resources.o atm_sysfs.o +atm-y := pvc.o signaling.o svc.o ioctl.o common.o atm_misc.o raw.o resources.o atm_sysfs.o obj-$(CONFIG_ATM) += atm.o obj-$(CONFIG_ATM_BR2684) += br2684.o
include/linux/atmdev.h +0 -9
@@ -136,13 +136,6 @@ static inline struct sock *sk_atm(struct atm_vcc *vcc)return (struct sock *)vcc; } -struct atm_dev_addr { -struct sockaddr_atmsvc addr;/* ATM address */ -struct list_head entry;/* next address */ -}; - -enum atm_addr_type_t {ATM_ADDR_LOCAL ,ATM_ADDR_LECS }; -struct atm_dev {const struct atmdev_ops *ops;/* device operations; NULL if unused */ const struct atmphy_ops *phy;/* PHY operations, may be undefined */
@@ -152,8 +145,6 @@ struct atm_dev {void *dev_data;/* per-device data */ void *phy_data;/* private PHY data */ unsigned long flags;/* device flags (ATM_DF_*) */ -struct list_head local;/* local ATM addresses */ -struct list_head lecs;/* LECS ATM addresses learned via ILMI */ unsigned char esi[ESI_LEN ];/* ESI ("MAC" addr) */ struct atm_cirange ci_range;/* VPI/VCI range */ struct k_atm_dev_stats stats;/* statistics */
net/atm/addr.h deleted +0 -21
@@ -1,21 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -/* net/atm/addr.h - Local ATM address registry */ - -/* Written 1995-2000 by Werner Almesberger, EPFL LRC/ICA */ - - -#ifndef NET_ATM_ADDR_H -#define NET_ATM_ADDR_H - -#include <linux/atm.h> -#include <linux/atmdev.h> - -void atm_reset_addr (struct atm_dev *dev,enum atm_addr_type_t type); -int atm_add_addr (struct atm_dev *dev,const struct sockaddr_atmsvc *addr, -enum atm_addr_type_t type); -int atm_del_addr (struct atm_dev *dev,const struct sockaddr_atmsvc *addr, -enum atm_addr_type_t type); -int atm_get_addr (struct atm_dev *dev,struct sockaddr_atmsvc __user *buf, -size_t size,enum atm_addr_type_t type); - -#endif
net/atm/addr.c deleted +0 -162
162 lines not on this page · raw message
net/atm/atm_sysfs.c +0 -25
@@ -27,29 +27,6 @@ static ssize_t address_show(struct device *cdev,return scnprintf (buf,PAGE_SIZE ,"%pM\n" , adev->esi); } -static ssize_t atmaddress_show (struct device *cdev, -struct device_attribute *attr,char *buf) -{ -unsigned long flags; -struct atm_dev *adev =to_atm_dev (cdev); -struct atm_dev_addr *aaddr; -int count =0 ; - -spin_lock_irqsave (&adev->lock, flags); -list_for_each_entry (aaddr, &adev->local, entry) { - count +=scnprintf (buf + count,PAGE_SIZE - count, -"%1phN.%2phN.%10phN.%6phN.%1phN\n" , - &aaddr->addr.sas_addr.prv[0 ], - &aaddr->addr.sas_addr.prv[1 ], - &aaddr->addr.sas_addr.prv[3 ], - &aaddr->addr.sas_addr.prv[13 ], - &aaddr->addr.sas_addr.prv[19 ]); - } -spin_unlock_irqrestore (&adev->lock, flags); - -return count; -} -static ssize_t atmindex_show (struct device *cdev,struct device_attribute *attr,char *buf) {
@@ -91,14 +68,12 @@ static ssize_t link_rate_show(struct device *cdev, }static DEVICE_ATTR_RO (address); -static DEVICE_ATTR_RO (atmaddress);static DEVICE_ATTR_RO (atmindex);static DEVICE_ATTR_RO (carrier);static DEVICE_ATTR_RO (type);static DEVICE_ATTR_RO (link_rate);static struct device_attribute *atm_attrs[] = { - &dev_attr_atmaddress, &dev_attr_address, &dev_attr_atmindex, &dev_attr_carrier,
net/atm/common.c +0 -1
@@ -30,7 +30,6 @@#include "resources.h" /* atm_find_dev */ #include "common.h" /* prototypes */ #include "protocols.h" /* atm_init_<transport> */ -#include "addr.h" /* address registry */ #include "signaling.h" /* for WAITING and sigd_attach */ struct hlist_head vcc_hash[VCC_HTABLE_SIZE ];
net/atm/ioctl.c +0 -12
@@ -220,10 +220,6 @@ int vcc_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)#define ATM_GETNAMES32 _IOW('a', ATMIOC_ITF+3, struct compat_atm_iobuf)#define ATM_GETTYPE32 _IOW('a', ATMIOC_ITF+4, struct compat_atmif_sioc)#define ATM_GETESI32 _IOW('a', ATMIOC_ITF+5, struct compat_atmif_sioc) -#define ATM_GETADDR32 _IOW('a', ATMIOC_ITF+6, struct compat_atmif_sioc) -#define ATM_RSTADDR32 _IOW('a', ATMIOC_ITF+7, struct compat_atmif_sioc) -#define ATM_ADDADDR32 _IOW('a', ATMIOC_ITF+8, struct compat_atmif_sioc) -#define ATM_DELADDR32 _IOW('a', ATMIOC_ITF+9, struct compat_atmif_sioc)#define ATM_GETCIRANGE32 _IOW('a', ATMIOC_ITF+10, struct compat_atmif_sioc)#define ATM_SETCIRANGE32 _IOW('a', ATMIOC_ITF+11, struct compat_atmif_sioc)#define ATM_SETESI32 _IOW('a', ATMIOC_ITF+12, struct compat_atmif_sioc)
@@ -242,10 +238,6 @@ static struct { { ATM_GETNAMES32, ATM_GETNAMES }, { ATM_GETTYPE32, ATM_GETTYPE }, { ATM_GETESI32, ATM_GETESI }, - { ATM_GETADDR32, ATM_GETADDR }, - { ATM_RSTADDR32, ATM_RSTADDR }, - { ATM_ADDADDR32, ATM_ADDADDR }, - { ATM_DELADDR32, ATM_DELADDR }, { ATM_GETCIRANGE32, ATM_GETCIRANGE }, { ATM_SETCIRANGE32, ATM_SETCIRANGE }, { ATM_SETESI32, ATM_SETESI },
@@ -305,10 +297,6 @@ static int do_atm_ioctl(struct socket *sock, unsigned int cmd32,case ATM_GETLINKRATE :case ATM_GETTYPE :case ATM_GETESI : -case ATM_GETADDR : -case ATM_RSTADDR : -case ATM_ADDADDR : -case ATM_DELADDR :case ATM_GETCIRANGE :case ATM_SETCIRANGE :case ATM_SETESI :
net/atm/resources.c +1 -52
78 lines not on this page · raw message
net/atm/svc.c +0 -1
@@ -27,7 +27,6 @@#include "resources.h" #include "common.h" /* common for PVCs and SVCs */ #include "signaling.h" -#include "addr.h" #ifdef CONFIG_COMPAT /* It actually takes struct sockaddr_atmsvc, not struct atm_iobuf */
Signature · 1 line
2.54.0
Jakub Kicinski
maintainerPATCH v2 5/9 atm: remove SVC socket support and the signaling daemon interface
In reply to Jakub KicinskiATM switched virtual circuits (SVCs) are set up and torn down by a user-space signaling daemon (atmsigd) which the kernel talks to over a dedicated "sigd" socket: the kernel marshals Q.2931-style requests (as_connect, as_listen, as_accept, as_close, ...) to the daemon and applies the results to PF_ATMSVC sockets. This is the machinery behind classical SVC use and was the foundation for LANE / MPOA, all of which have been removed.
DSL deployments do not use any of this. PPPoATM and BR2684 run over permanent virtual circuits (PF_ATMPVC) with a statically configured VPI/VCI; no atmsigd, no Q.2931. Neither remaining ATM driver (solos-pci, the USB DSL modems) is reachable through the SVC path.
Remove the SVC socket family and the signaling interface:
- delete net/atm/svc.c, net/atm/signaling.c and signaling.h
- drop atmsvc_init()/atmsvc_exit() and the PF_ATMSVC registration and module alias
- drop the ATMSIGD_CTRL ioctl (sigd_attach) and the /proc/net/atm/svc file
- fold the SVC branch out of atm_change_qos(); all sockets are PVCs now
The obsolete ATM_SETSC ioctl stub is left in place (it already just warns and returns 0), as is the struct atm_vcc SVC bookkeeping shared with the queueing layer.
--- net/atm/Makefile | 2 +- include/linux/atmdev.h | 38 +-- net/atm/common.h | 5 - net/atm/signaling.h | 31 -- net/atm/br2684.c | 3 +- net/atm/common.c | 35 +-- net/atm/ioctl.c | 32 -- net/atm/pppoatm.c | 3 +- net/atm/proc.c | 56 ---- net/atm/resources.c | 1 - net/atm/signaling.c | 297 ------------------ net/atm/svc.c | 694 ----------------------------------------- 12 files changed, 12 insertions(+), 1185 deletions(-) delete mode 100644 net/atm/signaling.h delete mode 100644 net/atm/signaling.c delete mode 100644 net/atm/svc.c
net/atm/Makefile +1 -1
@@ -3,7 +3,7 @@ # Makefile for the ATM Protocol Families. # -atm-y := pvc.o signaling.o svc.o ioctl.o common.o atm_misc.o raw.o resources.o atm_sysfs.o +atm-y := pvc.o ioctl.o common.o atm_misc.o raw.o resources.o atm_sysfs.o obj-$(CONFIG_ATM) += atm.o obj-$(CONFIG_ATM_BR2684) += br2684.o
include/linux/atmdev.h +3 -35
@@ -51,33 +51,11 @@ enum {driver, cleared by anybody. */ ATM_VF_PARTIAL ,/* resources are bound to PVC (partial PVC setup), controlled by socket layer */ -ATM_VF_REGIS ,/* registered with demon, controlled by SVC -socket layer */ -ATM_VF_BOUND ,/* local SAP is set, controlled by SVC socket -layer */ -ATM_VF_RELEASED ,/* demon has indicated/requested release, -controlled by SVC socket layer */ ATM_VF_HASQOS ,/* QOS parameters have been set */ -ATM_VF_LISTEN ,/* socket is used for listening */ -ATM_VF_META ,/* SVC socket isn't used for normal data -traffic and doesn't depend on signaling -to be available */ -ATM_VF_SESSION ,/* VCC is p2mp session control descriptor */ -ATM_VF_HASSAP ,/* SAP has been set */ -ATM_VF_CLOSE ,/* asynchronous close - treat like VF_RELEASED*/ -ATM_VF_WAITING ,/* waiting for reply from sigd */ - ATM_VF_IS_CLIP, /* in use by CLIP protocol */ + ATM_VF_CLOSE, /* asynchronous close - VC is being torn down */ }; -#define ATM_VF2VS (flags) \ - (test_bit(ATM_VF_READY,&(flags)) ? ATM_VS_CONNECTED : \ - test_bit(ATM_VF_RELEASED,&(flags)) ? ATM_VS_CLOSING : \ - test_bit(ATM_VF_LISTEN,&(flags)) ? ATM_VS_LISTEN : \ - test_bit(ATM_VF_REGIS,&(flags)) ? ATM_VS_INUSE : \ - test_bit(ATM_VF_BOUND,&(flags)) ? ATM_VS_BOUND : ATM_VS_IDLE) - -enum {ATM_DF_REMOVED ,/* device was removed from atm_devs list */ };
@@ -100,7 +78,6 @@ struct atm_vcc {unsigned long atm_options;/* ATM layer options */ struct atm_dev *dev;/* device back pointer */ struct atm_qos qos;/* QOS */ -struct atm_sap sap;/* SAP */ void (*release_cb)(struct atm_vcc *vcc);/* release_sock callback */ void (*push)(struct atm_vcc *vcc,struct sk_buff *skb);void (*pop)(struct atm_vcc *vcc,struct sk_buff *skb);/* optional */
@@ -109,16 +86,8 @@ struct atm_vcc {void *proto_data;/* per-protocol data */ struct k_atm_aal_stats *stats;/* pointer to AAL stats group */ struct module *owner;/* owner of ->push function */ -/* SVC part --- may move later ------------------------------------- */ -short itf;/* interface number */ -struct sockaddr_atmsvc local; -struct sockaddr_atmsvc remote; -/* Multipoint part ------------------------------------------------- */ -struct atm_vcc *session;/* session VCC descriptor */ -/* Other stuff ----------------------------------------------------- */ -void *user_back;/* user backlink - not touched by */ -/* native ATM stack. Currently used */ -/* by CLIP and sch_atm. */ +void *user_back;/* user backlink - not touched by the */ +/* native ATM stack, used by sch_atm */ };static inline struct atm_vcc *atm_sk (struct sock *sk)
@@ -151,7 +120,6 @@ struct atm_dev {char signal;/* signal status (ATM_PHY_SIG_*) */ int link_rate;/* link rate (default: OC3) */ refcount_t refcnt;/* reference count */ -spinlock_t lock;/* protect internal members */ #ifdef CONFIG_PROC_FS struct proc_dir_entry *proc_entry;/* proc entry */ char *proc_name;/* proc entry name */
net/atm/common.h +0 -5
@@ -28,8 +28,6 @@ void vcc_process_recv_queue(struct atm_vcc *vcc);int atmpvc_init (void );void atmpvc_exit (void ); -int atmsvc_init (void ); -void atmsvc_exit (void );int atm_sysfs_init (void );void atm_sysfs_exit (void );
@@ -48,9 +46,6 @@ static inline void atm_proc_exit(void) }#endif /* CONFIG_PROC_FS */ -/* SVC */ -int svc_change_qos (struct atm_vcc *vcc,struct atm_qos *qos); -void atm_dev_release_vccs (struct atm_dev *dev);#endif
net/atm/signaling.h deleted +0 -31
@@ -1,31 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -/* net/atm/signaling.h - ATM signaling */ - -/* Written 1995-2000 by Werner Almesberger, EPFL LRC/ICA */ - - -#ifndef NET_ATM_SIGNALING_H -#define NET_ATM_SIGNALING_H - -#include <linux/atm.h> -#include <linux/atmdev.h> -#include <linux/atmsvc.h> - - -extern struct atm_vcc *sigd;/* needed in svc_release */ - - -/* -* sigd_enq is a wrapper for sigd_enq2, covering the more common cases, and -* avoiding huge lists of null values. -*/ - -void sigd_enq2 (struct atm_vcc *vcc,enum atmsvc_msg_type type, -struct atm_vcc *listen_vcc,const struct sockaddr_atmpvc *pvc, -const struct sockaddr_atmsvc *svc,const struct atm_qos *qos,int reply); -void sigd_enq (struct atm_vcc *vcc,enum atmsvc_msg_type type, -struct atm_vcc *listen_vcc,const struct sockaddr_atmpvc *pvc, -const struct sockaddr_atmsvc *svc); -int sigd_attach (struct atm_vcc *vcc); - -#endif
net/atm/br2684.c +1 -2
@@ -311,8 +311,7 @@ static netdev_tx_t br2684_start_xmit(struct sk_buff *skb,bh_lock_sock (sk_atm (atmvcc)); -if (test_bit (ATM_VF_RELEASED , &atmvcc->flags) || -test_bit (ATM_VF_CLOSE , &atmvcc->flags) || +if (test_bit (ATM_VF_CLOSE , &atmvcc->flags) || !test_bit (ATM_VF_READY , &atmvcc->flags)) { dev->stats.tx_dropped++;dev_kfree_skb (skb);
net/atm/common.c +6 -29
@@ -30,7 +30,6 @@#include "resources.h" /* atm_find_dev */ #include "common.h" /* prototypes */ #include "protocols.h" /* atm_init_<transport> */ -#include "signaling.h" /* for WAITING and sigd_attach */ struct hlist_head vcc_hash[VCC_HTABLE_SIZE ];EXPORT_SYMBOL (vcc_hash);
@@ -154,8 +153,6 @@ int vcc_create(struct net *net, struct socket *sock, int protocol, int family, i vcc =atm_sk (sk); vcc->dev =NULL ; -memset (&vcc->local,0 ,sizeof (struct sockaddr_atmsvc )); -memset (&vcc->remote,0 ,sizeof (struct sockaddr_atmsvc )); vcc->qos.txtp.max_sdu =1 <<16 ;/* for meta VCs */ refcount_set (&sk->sk_wmem_alloc,SK_WMEM_ALLOC_BIAS );atomic_set (&sk->sk_rmem_alloc,0 );
@@ -216,7 +213,6 @@ void vcc_release_async(struct atm_vcc *vcc, int reply)set_bit (ATM_VF_CLOSE , &vcc->flags); sk->sk_shutdown |=RCV_SHUTDOWN ; sk->sk_err = -reply; -clear_bit (ATM_VF_WAITING , &vcc->flags); sk->sk_state_change (sk); }EXPORT_SYMBOL (vcc_release_async);
@@ -527,8 +523,7 @@ int vcc_recvmsg(struct socket *sock, struct msghdr *msg, size_t size,return -EOPNOTSUPP ; vcc =ATM_SD (sock); -if (test_bit (ATM_VF_RELEASED , &vcc->flags) || -test_bit (ATM_VF_CLOSE , &vcc->flags) || +if (test_bit (ATM_VF_CLOSE , &vcc->flags) || !test_bit (ATM_VF_READY , &vcc->flags))return 0 ;
@@ -575,8 +570,7 @@ int vcc_sendmsg(struct socket *sock, struct msghdr *m, size_t size) goto out; } vcc =ATM_SD (sock); -if (test_bit (ATM_VF_RELEASED , &vcc->flags) || -test_bit (ATM_VF_CLOSE , &vcc->flags) || +if (test_bit (ATM_VF_CLOSE , &vcc->flags) || !test_bit (ATM_VF_READY , &vcc->flags)) { error = -EPIPE ;send_sig (SIGPIPE , current,0 );
@@ -604,8 +598,7 @@ int vcc_sendmsg(struct socket *sock, struct msghdr *m, size_t size) error = -ERESTARTSYS ;break ; } -if (test_bit (ATM_VF_RELEASED , &vcc->flags) || -test_bit (ATM_VF_CLOSE , &vcc->flags) || +if (test_bit (ATM_VF_CLOSE , &vcc->flags) || !test_bit (ATM_VF_READY , &vcc->flags)) { error = -EPIPE ;send_sig (SIGPIPE , current,0 );
@@ -665,8 +658,7 @@ __poll_t vcc_poll(struct file *file, struct socket *sock, poll_table *wait)if (sk->sk_err) mask =EPOLLERR ; -if (test_bit (ATM_VF_RELEASED , &vcc->flags) || -test_bit (ATM_VF_CLOSE , &vcc->flags)) +if (test_bit (ATM_VF_CLOSE , &vcc->flags)) mask |=EPOLLHUP ;/* readable? */
@@ -674,10 +666,6 @@ __poll_t vcc_poll(struct file *file, struct socket *sock, poll_table *wait) mask |=EPOLLIN |EPOLLRDNORM ;/* writable? */ -if (sock->state ==SS_CONNECTING && -test_bit (ATM_VF_WAITING , &vcc->flags)) -return mask; -if (vcc->qos.txtp.traffic_class !=ATM_NONE &&vcc_writable (sk)) mask |=EPOLLOUT |EPOLLWRNORM |EPOLLWRBAND ;
@@ -704,9 +692,7 @@ static int atm_change_qos(struct atm_vcc *vcc, struct atm_qos *qos)return error;if (!vcc->dev->ops->change_qos)return -EOPNOTSUPP ; -if (sk_atm (vcc)->sk_family ==AF_ATMPVC ) -return vcc->dev->ops->change_qos (vcc, qos,ATM_MF_SET ); -return svc_change_qos (vcc, qos); +return vcc->dev->ops->change_qos (vcc, qos,ATM_MF_SET ); }static int check_tp (const struct atm_trafprm *tp)
@@ -854,15 +840,10 @@ static int __init atm_init(void)pr_err ("atmpvc_init() failed with %d\n" , error); goto out_unregister_vcc_proto; } - error =atmsvc_init (); -if (error <0 ) { -pr_err ("atmsvc_init() failed with %d\n" , error); - goto out_atmpvc_exit; - } error =atm_proc_init ();if (error <0 ) {pr_err ("atm_proc_init() failed with %d\n" , error); - goto out_atmsvc_exit; + goto out_atmpvc_exit; } error =atm_sysfs_init ();if (error <0 ) {
@@ -873,8 +854,6 @@ static int __init atm_init(void)return error; out_atmproc_exit:atm_proc_exit (); -out_atmsvc_exit: -atmsvc_exit (); out_atmpvc_exit:atmpvc_exit (); out_unregister_vcc_proto:
@@ -886,7 +865,6 @@ static void __exit atm_exit(void) {atm_proc_exit ();atm_sysfs_exit (); -atmsvc_exit ();atmpvc_exit ();proto_unregister (&vcc_proto); }
@@ -898,4 +876,3 @@ module_exit(atm_exit);MODULE_DESCRIPTION ("Asynchronous Transfer Mode (ATM) networking core" );MODULE_LICENSE ("GPL" );MODULE_ALIAS_NETPROTO (PF_ATMPVC ); -MODULE_ALIAS_NETPROTO (PF_ATMSVC );
net/atm/ioctl.c +0 -32
@@ -13,13 +13,11 @@#include <linux/atmdev.h> #include <linux/atmarp.h> /* manifest constants */ #include <linux/capability.h> -#include <linux/atmsvc.h> #include <linux/mutex.h> #include <asm/ioctls.h> #include <net/compat.h> #include "resources.h" -#include "signaling.h" /* for WAITING and sigd_attach */ #include "common.h"
@@ -86,36 +84,6 @@ static int do_vcc_ioctl(struct socket *sock, unsigned int cmd, current->comm, task_pid_nr(current)); error =0 ; goto done; -case ATMSIGD_CTRL : -if (!capable (CAP_NET_ADMIN )) { - error = -EPERM ; - goto done; - } -/* -* The user/kernel protocol for exchanging signalling -* info uses kernel pointers as opaque references, -* so the holder of the file descriptor can scribble -* on the kernel... so we should make sure that we -* have the same privileges that /proc/kcore needs -*/ -if (!capable (CAP_SYS_RAWIO )) { - error = -EPERM ; - goto done; - } -#ifdef CONFIG_COMPAT -/* WTF? I don't even want to _think_ about making this -work for 32-bit userspace. TBH I don't really want -to think about it at all. dwmw2. */ -if (compat) { -net_warn_ratelimited ("32-bit task cannot be atmsigd\n" ); - error = -EINVAL ; - goto done; - } -#endif - error =sigd_attach (vcc); -if (!error) - sock->state =SS_CONNECTED ; - goto done;case ATM_SETBACKEND :case ATM_NEWBACKENDIF : {
net/atm/pppoatm.c +1 -2
@@ -308,8 +308,7 @@ static int pppoatm_send(struct ppp_channel *chan, struct sk_buff *skb)test_and_set_bit (BLOCKED , &pvcc->blocked); goto nospace; } -if (test_bit (ATM_VF_RELEASED , &vcc->flags) || -test_bit (ATM_VF_CLOSE , &vcc->flags) || +if (test_bit (ATM_VF_CLOSE , &vcc->flags) || !test_bit (ATM_VF_READY , &vcc->flags)) {bh_unlock_sock (sk_atm (vcc));kfree_skb (skb);
net/atm/proc.c +0 -56
92 lines not on this page · raw message
net/atm/resources.c +0 -1
@@ -40,7 +40,6 @@ static struct atm_dev *__alloc_atm_dev(const char *type) dev->type = type; dev->signal =ATM_PHY_SIG_UNKNOWN ; dev->link_rate =ATM_OC3_PCR ; -spin_lock_init (&dev->lock);return dev; }
net/atm/signaling.c deleted +0 -297
297 lines not on this page · raw message
net/atm/svc.c deleted +0 -694
694 lines not on this page · raw message
Signature · 1 line
2.54.0
Jakub Kicinski
maintainerPATCH v2 6/9 atm: remove the unused change_qos device operation
In reply to Jakub Kicinskiatmdev_ops::change_qos() was the hook for renegotiating the traffic parameters of an already-connected VCC, driven from SO_ATMQOS on a connected socket (and previously from the SVC as_modify path, now gone). None of the ATM drivers left in tree implement it - solos-pci only listed change_qos = NULL - so atm_change_qos() always returned -EOPNOTSUPP.
Drop the operation and return -EOPNOTSUPP directly.
--- include/linux/atmdev.h | 1 - drivers/atm/solos-pci.c | 1 - net/atm/common.c | 25 ++----------------------- 3 files changed, 2 insertions(+), 25 deletions(-)
include/linux/atmdev.h +0 -1
@@ -143,7 +143,6 @@ struct atmdev_ops { /* only send is required */void (*phy_put)(struct atm_dev *dev,unsigned char value,unsigned long addr);unsigned char (*phy_get)(struct atm_dev *dev,unsigned long addr); -int (*change_qos)(struct atm_vcc *vcc,struct atm_qos *qos,int flags);int (*proc_read)(struct atm_dev *dev,loff_t *pos,char *page);struct module *owner; };
drivers/atm/solos-pci.c +0 -1
@@ -1182,7 +1182,6 @@ static const struct atmdev_ops fpga_ops = { .send = psend, .phy_put = NULL, .phy_get = NULL, - .change_qos = NULL, .proc_read = NULL, .owner = THIS_MODULE };
net/atm/common.c +2 -23
@@ -673,28 +673,6 @@ __poll_t vcc_poll(struct file *file, struct socket *sock, poll_table *wait)return mask; } -static int atm_change_qos (struct atm_vcc *vcc,struct atm_qos *qos) -{ -int error; - -/* -* Don't let the QoS change the already connected AAL type nor the -* traffic class. -*/ -if (qos->aal != vcc->qos.aal || - qos->rxtp.traffic_class != vcc->qos.rxtp.traffic_class || - qos->txtp.traffic_class != vcc->qos.txtp.traffic_class) -return -EINVAL ; - error =adjust_tp (&qos->txtp, qos->aal); -if (!error) - error =adjust_tp (&qos->rxtp, qos->aal); -if (error) -return error; -if (!vcc->dev->ops->change_qos) -return -EOPNOTSUPP ; -return vcc->dev->ops->change_qos (vcc, qos,ATM_MF_SET ); -} -static int check_tp (const struct atm_trafprm *tp) {/* @@@ Should be merged with adjust_tp */
@@ -753,8 +731,9 @@ int vcc_setsockopt(struct socket *sock, int level, int optname, error =check_qos (&qos);if (error)return error; +/* QoS cannot be renegotiated on an already connected VCC. */ if (sock->state ==SS_CONNECTED ) -return atm_change_qos (vcc, &qos); +return -EOPNOTSUPP ;if (sock->state !=SS_UNCONNECTED )return -EBADFD ; vcc->qos = qos;
Signature · 1 line
2.54.0
Jakub Kicinski
maintainerPATCH v2 7/9 atm: remove the unused pre_send and send_bh device operations
In reply to Jakub Kicinskiatmdev_ops::pre_send (a TX pre-processing hook) and ::send_bh (a bottom-half capable send variant) have no implementation behind them:
no remaining ATM driver sets either, so vcc_sendmsg() always skipped pre_send and the raw AAL0/AAL5 paths always fell back to ->send(). The drivers that used these hooks were removed with the legacy ATM adapters.
Drop both operations and the dead branches that tested for them.
--- include/linux/atmdev.h | 2 -- net/atm/common.c | 6 ------ net/atm/raw.c | 7 +------ 3 files changed, 1 insertion(+), 14 deletions(-)
include/linux/atmdev.h +0 -2
@@ -137,9 +137,7 @@ struct atmdev_ops { /* only send is required */int (*compat_ioctl)(struct atm_dev *dev,unsigned int cmd,void __user *arg);#endif -int (*pre_send)(struct atm_vcc *vcc,struct sk_buff *skb);int (*send)(struct atm_vcc *vcc,struct sk_buff *skb); -int (*send_bh)(struct atm_vcc *vcc,struct sk_buff *skb);void (*phy_put)(struct atm_dev *dev,unsigned char value,unsigned long addr);unsigned char (*phy_get)(struct atm_dev *dev,unsigned long addr);
net/atm/common.c +0 -6
@@ -626,12 +626,6 @@ int vcc_sendmsg(struct socket *sock, struct msghdr *m, size_t size)if (eff != size)memset (skb->data + size,0 , eff-size); -if (vcc->dev->ops->pre_send) { - error = vcc->dev->ops->pre_send (vcc, skb); -if (error) - goto free_skb; - } - error = vcc->dev->ops->send (vcc, skb); error = error ? error : size; out:
net/atm/raw.c +1 -6
@@ -54,8 +54,6 @@ static int atm_send_aal0(struct atm_vcc *vcc, struct sk_buff *skb)kfree_skb (skb);return -EADDRNOTAVAIL ; } -if (vcc->dev->ops->send_bh) -return vcc->dev->ops->send_bh (vcc, skb);return vcc->dev->ops->send (vcc, skb); }
@@ -71,10 +69,7 @@ int atm_init_aal5(struct atm_vcc *vcc) { vcc->push = atm_push_raw; vcc->pop = atm_pop_raw; -if (vcc->dev->ops->send_bh) - vcc->send = vcc->dev->ops->send_bh; -else - vcc->send = vcc->dev->ops->send; + vcc->send = vcc->dev->ops->send;return 0 ; }EXPORT_SYMBOL (atm_init_aal5);
Signature · 1 line
2.54.0
Jakub Kicinski
maintainerPATCH v2 8/9 atm: remove unused ATM PHY operations
In reply to Jakub KicinskiThe PHY operations are vestiges of the SAR/framer split used by the removed PCI/SBUS ATM adapters:
- atmdev_ops::phy_put / ::phy_get (register accessors) are never called by the core and solos-pci only listed them as NULL
- struct atmphy_ops and atm_dev::phy have no users at all - nothing assigns or dereferences them
Remove all of them. atm_dev::phy_data is kept: solos-pci repurposes it to stash its per-port channel index.
--- include/linux/atmdev.h | 12 ------------ drivers/atm/solos-pci.c | 2 -- 2 files changed, 14 deletions(-)
include/linux/atmdev.h +0 -12
@@ -107,8 +107,6 @@ static inline struct sock *sk_atm(struct atm_vcc *vcc)struct atm_dev {const struct atmdev_ops *ops;/* device operations; NULL if unused */ -const struct atmphy_ops *phy;/* PHY operations, may be undefined */ -/* (NULL) */ const char *type;/* device type name */ int number;/* device index */ void *dev_data;/* per-device data */
@@ -138,20 +136,10 @@ struct atmdev_ops { /* only send is required */ void __user *arg);#endif int (*send)(struct atm_vcc *vcc,struct sk_buff *skb); -void (*phy_put)(struct atm_dev *dev,unsigned char value, -unsigned long addr); -unsigned char (*phy_get)(struct atm_dev *dev,unsigned long addr);int (*proc_read)(struct atm_dev *dev,loff_t *pos,char *page);struct module *owner; }; -struct atmphy_ops { -int (*start)(struct atm_dev *dev); -int (*ioctl)(struct atm_dev *dev,unsigned int cmd,void __user *arg); -void (*interrupt)(struct atm_dev *dev); -int (*stop)(struct atm_dev *dev); -}; -struct atm_skb_data {struct atm_vcc *vcc;/* ATM VCC */ unsigned long atm_options;/* ATM layer options */
drivers/atm/solos-pci.c +0 -2
@@ -1180,8 +1180,6 @@ static const struct atmdev_ops fpga_ops = { .close = pclose, .ioctl = NULL, .send = psend, - .phy_put = NULL, - .phy_get = NULL, .proc_read = NULL, .owner = THIS_MODULE };
Signature · 1 line
2.54.0
Jakub Kicinski
maintainerPATCH v2 9/9 atm: remove orphaned uAPI for deleted drivers, protocols and SVCs
In reply to Jakub KicinskiATM removals have left a number of uAPI headers and ioctl definitions with no in-kernel implementation behind them:
- device headers for adapters deleted with the legacy PCI/SBUS drivers:
atm_eni.h, atm_he.h, atm_idt77105.h, atm_nicstar.h, atm_zatm.h and the atmtcp pair atm_tcp.h / <linux/atm_tcp.h>
- protocol headers for the removed CLIP, LANE and MPOA stacks:
atmarp.h, atmclip.h, atmlec.h, atmmpc.h
- atmsvc.h and the SVC / p2mp / local-address ioctls in atmdev.h (ATM_{GET,RST,ADD,DEL}ADDR, ATM_{ADD,DEL,GET}LECSADDR, ATM_{ADD,DROP}PARTY) left behind by the SVC and address-registry removals
None of these are referenced by any remaining in-tree code. Let's try to delete all this. Chances are nobody cares about these headers any more. I'm keeping this separate from the kernel side code changes for ease of revert, in case I am proven wrong...
--- include/linux/atm_tcp.h | 24 ------ include/uapi/linux/atm_eni.h | 24 ------ include/uapi/linux/atm_he.h | 21 ----- include/uapi/linux/atm_idt77105.h | 29 ------- include/uapi/linux/atm_nicstar.h | 54 ------------- include/uapi/linux/atm_tcp.h | 62 --------------- include/uapi/linux/atm_zatm.h | 47 ----------- include/uapi/linux/atmarp.h | 42 ---------- include/uapi/linux/atmclip.h | 22 ------ include/uapi/linux/atmdev.h | 18 ----- include/uapi/linux/atmlec.h | 92 ---------------------- include/uapi/linux/atmmpc.h | 127 ------------------------------ include/uapi/linux/atmsvc.h | 56 ------------- net/atm/ioctl.c | 1 - 14 files changed, 619 deletions(-) delete mode 100644 include/linux/atm_tcp.h delete mode 100644 include/uapi/linux/atm_eni.h delete mode 100644 include/uapi/linux/atm_he.h delete mode 100644 include/uapi/linux/atm_idt77105.h delete mode 100644 include/uapi/linux/atm_nicstar.h delete mode 100644 include/uapi/linux/atm_tcp.h delete mode 100644 include/uapi/linux/atm_zatm.h delete mode 100644 include/uapi/linux/atmarp.h delete mode 100644 include/uapi/linux/atmclip.h delete mode 100644 include/uapi/linux/atmlec.h delete mode 100644 include/uapi/linux/atmmpc.h delete mode 100644 include/uapi/linux/atmsvc.h
include/linux/atm_tcp.h deleted +0 -24
@@ -1,24 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ -/* atm_tcp.h - Driver-specific declarations of the ATMTCP driver (for use by -driver-specific utilities) */ - -/* Written 1997-2000 by Werner Almesberger, EPFL LRC/ICA */ - -#ifndef LINUX_ATM_TCP_H -#define LINUX_ATM_TCP_H - -#include <uapi/linux/atm_tcp.h> - -struct atm_vcc ; -struct module ; - -struct atm_tcp_ops { -int (*attach)(struct atm_vcc *vcc,int itf); -int (*create_persistent)(int itf); -int (*remove_persistent)(int itf); -struct module *owner; -}; - -extern struct atm_tcp_ops atm_tcp_ops; - -#endif
include/uapi/linux/atm_eni.h deleted +0 -24
@@ -1,24 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -/* atm_eni.h - Driver-specific declarations of the ENI driver (for use by -driver-specific utilities) */ - -/* Written 1995-2000 by Werner Almesberger, EPFL LRC/ICA */ - - -#ifndef LINUX_ATM_ENI_H -#define LINUX_ATM_ENI_H - -#include <linux/atmioc.h> - - -struct eni_multipliers { -int tx,rx;/* values are in percent and must be > 100 */ -}; - - -#define ENI_MEMDUMP _IOW('a',ATMIOC_SARPRV,struct atmif_sioc) -/* printk memory map */ -#define ENI_SETMULT _IOW('a',ATMIOC_SARPRV+7,struct atmif_sioc) -/* set buffer multipliers */ - -#endif
include/uapi/linux/atm_he.h deleted +0 -21
@@ -1,21 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -/* atm_he.h */ - -#ifndef LINUX_ATM_HE_H -#define LINUX_ATM_HE_H - -#include <linux/atmioc.h> - -#define HE_GET_REG _IOW('a', ATMIOC_SARPRV, struct atmif_sioc) - -#define HE_REGTYPE_PCI 1 -#define HE_REGTYPE_RCM 2 -#define HE_REGTYPE_TCM 3 -#define HE_REGTYPE_MBOX 4 - -struct he_ioctl_reg { -unsigned addr, val; -char type; -}; - -#endif /* LINUX_ATM_HE_H */
include/uapi/linux/atm_idt77105.h deleted +0 -29
@@ -1,29 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -/* atm_idt77105.h - Driver-specific declarations of the IDT77105 driver (for -* use by driver-specific utilities) */ - -/* Written 1999 by Greg Banks <[email protected]>. Copied from atm_suni.h. */ - - -#ifndef LINUX_ATM_IDT77105_H -#define LINUX_ATM_IDT77105_H - -#include <linux/types.h> -#include <linux/atmioc.h> -#include <linux/atmdev.h> - -/* -* Structure for IDT77105_GETSTAT and IDT77105_GETSTATZ ioctls. -* Pointed to by `arg' in atmif_sioc. -*/ -struct idt77105_stats { -__u32 symbol_errors;/* wire symbol errors */ -__u32 tx_cells;/* cells transmitted */ -__u32 rx_cells;/* cells received */ -__u32 rx_hec_errors;/* Header Error Check errors on receive */ -}; - -#define IDT77105_GETSTAT _IOW('a',ATMIOC_PHYPRV+2,struct atmif_sioc)/* get stats */ -#define IDT77105_GETSTATZ _IOW('a',ATMIOC_PHYPRV+3,struct atmif_sioc)/* get stats and zero */ - -#endif
include/uapi/linux/atm_nicstar.h deleted +0 -54
54 lines not on this page · raw message
include/uapi/linux/atm_tcp.h deleted +0 -62
62 lines not on this page · raw message
include/uapi/linux/atm_zatm.h deleted +0 -47
47 lines not on this page · raw message
include/uapi/linux/atmarp.h deleted +0 -42
42 lines not on this page · raw message
include/uapi/linux/atmclip.h deleted +0 -22
@@ -1,22 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -/* atmclip.h - Classical IP over ATM */ - -/* Written 1995-1998 by Werner Almesberger, EPFL LRC/ICA */ - - -#ifndef LINUX_ATMCLIP_H -#define LINUX_ATMCLIP_H - -#include <linux/sockios.h> -#include <linux/atmioc.h> - - -#define RFC1483LLC_LEN 8/* LLC+OUI+PID = 8 */ -#define RFC1626_MTU 9180/* RFC1626 default MTU */ - -#define CLIP_DEFAULT_IDLETIMER 1200/* 20 minutes, see RFC1755 */ -#define CLIP_CHECK_INTERVAL 10/* check every ten seconds */ - -#define SIOCMKCLIP _IO('a',ATMIOC_CLIP)/* create IP interface */ - -#endif
include/uapi/linux/atmdev.h +0 -18
@@ -60,14 +60,6 @@ struct atm_dev_stats {/* get interface type name */ #define ATM_GETESI _IOW('a',ATMIOC_ITF+5,struct atmif_sioc)/* get interface ESI */ -#define ATM_GETADDR _IOW('a',ATMIOC_ITF+6,struct atmif_sioc) -/* get itf's local ATM addr. list */ -#define ATM_RSTADDR _IOW('a',ATMIOC_ITF+7,struct atmif_sioc) -/* reset itf's ATM address list */ -#define ATM_ADDADDR _IOW('a',ATMIOC_ITF+8,struct atmif_sioc) -/* add a local ATM address */ -#define ATM_DELADDR _IOW('a',ATMIOC_ITF+9,struct atmif_sioc) -/* remove a local ATM address */ #define ATM_GETCIRANGE _IOW('a',ATMIOC_ITF+10,struct atmif_sioc)/* get connection identifier range */ #define ATM_SETCIRANGE _IOW('a',ATMIOC_ITF+11,struct atmif_sioc)
@@ -76,12 +68,6 @@ struct atm_dev_stats {/* set interface ESI */ #define ATM_SETESIF _IOW('a',ATMIOC_ITF+13,struct atmif_sioc)/* force interface ESI */ -#define ATM_ADDLECSADDR _IOW('a', ATMIOC_ITF+14, struct atmif_sioc) -/* register a LECS address */ -#define ATM_DELLECSADDR _IOW('a', ATMIOC_ITF+15, struct atmif_sioc) -/* unregister a LECS address */ -#define ATM_GETLECSADDR _IOW('a', ATMIOC_ITF+16, struct atmif_sioc) -/* retrieve LECS address(es) */ #define ATM_GETSTAT _IOW('a',ATMIOC_SARCOM+0,struct atmif_sioc)/* get AAL layer statistics */
@@ -99,10 +85,6 @@ struct atm_dev_stats {/* set backend handler */ #define ATM_NEWBACKENDIF _IOW('a',ATMIOC_SPECIAL+3,atm_backend_t)/* use backend to make new if */ -#define ATM_ADDPARTY _IOW('a', ATMIOC_SPECIAL+4,struct atm_iobuf) -/* add party to p2mp call */ -#define ATM_DROPPARTY _IOW('a', ATMIOC_SPECIAL+5,int) -/* drop party from p2mp call */ /* * These are backend handkers that can be set via the ATM_SETBACKEND call
include/uapi/linux/atmlec.h deleted +0 -92
92 lines not on this page · raw message
include/uapi/linux/atmmpc.h deleted +0 -127
127 lines not on this page · raw message
include/uapi/linux/atmsvc.h deleted +0 -56
56 lines not on this page · raw message
net/atm/ioctl.c +0 -1
@@ -11,7 +11,6 @@#include <linux/net.h> /* struct socket, struct proto_ops */ #include <linux/atm.h> /* ATM stuff */ #include <linux/atmdev.h> -#include <linux/atmarp.h> /* manifest constants */ #include <linux/capability.h> #include <linux/mutex.h> #include <asm/ioctls.h>
Signature · 1 line
2.54.0
This series was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This series was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 5 lines · On Mon, 15 Jun 2026 12:44:07 -0700 you wrote:
Commit
6deb53595092("net: remove unused ATM protocols and legacy ATM device drivers") removed a good chunk of old ATM drivers. Our goal going forward is to limit the ATM support to PPPoATM used in ADSL deployments.
Quoted 8 lines
A recent burst of AI generated fixes for
net/atm/signaling.candnet/atm/svc.cmade me look closer at the remaining code. PPPoATM runs over permanent virtual circuits (PF_ATMPVC) with a statically configured VPI/VCI. We can drop switched virtual circuits (SVCs) and user-space signaling (atmsigd) support. While digging around I noticed a few more obviously dead pieces of code.[...]
Here is the summary with links:
- [net-next,v2,1/9] atm: remove AAL3/4 transport support
https://git.kernel.org/netdev/net-next/c/c1468145ce75 - [net-next,v2,2/9] atm: remove the unused send_oam / push_oam callbacks https://git.kernel.org/netdev/net-next/c/b20aa9eded10 - [net-next,v2,3/9] atm: remove dead SONET PHY ioctls https://git.kernel.org/netdev/net-next/c/277fb497d101 - [net-next,v2,4/9] atm: remove the local ATM (NSAP) address registry https://git.kernel.org/netdev/net-next/c/a5a12d76d2cb - [net-next,v2,5/9] atm: remove SVC socket support and the signaling daemon interface https://git.kernel.org/netdev/net-next/c/aa582dc25ace - [net-next,v2,6/9] atm: remove the unused change_qos device operation https://git.kernel.org/netdev/net-next/c/6719d57ee047 - [net-next,v2,7/9] atm: remove the unused pre_send and send_bh device operations https://git.kernel.org/netdev/net-next/c/ae6e653514d1 - [net-next,v2,8/9] atm: remove unused ATM PHY operations https://git.kernel.org/netdev/net-next/c/e44e224e2f44 - [net-next,v2,9/9] atm: remove orphaned uAPI for deleted drivers, protocols and SVCs https://git.kernel.org/netdev/net-next/c/8f9616500c59
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html