mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07:00
net: remove HIPPI support and RoadRunner HIPPI driver
HIPPI has not been relevant for over two decades. It was rapidly eclipsed by Fibre Channel, and even when it was new, it was confined to very high-end hardware. The HIPPI code has only received tree-wide changes and fixes by inspection in the entire Git history. Remove HIPPI support and the rrunner HIPPI driver, and move the former maintainer to the CREDITS file. Keep the include/uapi/linux/if_hippi.h header because it is used by the TUN code, and to avoid breaking userspace, however unlikely that may be. Signed-off-by: Ethan Nelson-Moore <enelsonmoore@gmail.com> Link: https://patch.msgid.link/20260119022451.22344-1-enelsonmoore@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
670ade3bfa
commit
d8f87aa5fa
@@ -3801,6 +3801,10 @@ S: Post Office Box 500
|
||||
S: Batavia, Illinois 60510
|
||||
S: USA
|
||||
|
||||
N: Jes Sorensen
|
||||
E: jes@trained-monkey.org
|
||||
D: HIPPI support and Essential RoadRunner driver
|
||||
|
||||
N: Leo Spiekman
|
||||
E: leo@netlabs.net
|
||||
W: http://www.netlabs.net/hp/leo/
|
||||
|
||||
@@ -11312,14 +11312,6 @@ S: Maintained
|
||||
F: Documentation/devicetree/bindings/input/touchscreen/himax,hx852es.yaml
|
||||
F: drivers/input/touchscreen/himax_hx852x.c
|
||||
|
||||
HIPPI
|
||||
M: Jes Sorensen <jes@trained-monkey.org>
|
||||
S: Maintained
|
||||
F: drivers/net/hippi/
|
||||
F: include/linux/hippidevice.h
|
||||
F: include/uapi/linux/if_hippi.h
|
||||
F: net/802/hippi.c
|
||||
|
||||
HIRSCHMANN HELLCREEK ETHERNET SWITCH DRIVER
|
||||
M: Kurt Kanzenbach <kurt@linutronix.de>
|
||||
L: netdev@vger.kernel.org
|
||||
|
||||
@@ -310,8 +310,6 @@ CONFIG_PCMCIA_XIRC2PS=m
|
||||
CONFIG_FDDI=y
|
||||
CONFIG_DEFXX=m
|
||||
CONFIG_SKFP=m
|
||||
CONFIG_HIPPI=y
|
||||
CONFIG_ROADRUNNER=m
|
||||
CONFIG_CICADA_PHY=m
|
||||
CONFIG_DAVICOM_PHY=m
|
||||
CONFIG_LXT_PHY=m
|
||||
|
||||
@@ -516,8 +516,6 @@ source "drivers/net/ethernet/Kconfig"
|
||||
|
||||
source "drivers/net/fddi/Kconfig"
|
||||
|
||||
source "drivers/net/hippi/Kconfig"
|
||||
|
||||
source "drivers/net/ipa/Kconfig"
|
||||
|
||||
source "drivers/net/phy/Kconfig"
|
||||
|
||||
@@ -55,7 +55,6 @@ obj-y += dsa/
|
||||
endif
|
||||
obj-$(CONFIG_ETHERNET) += ethernet/
|
||||
obj-$(CONFIG_FDDI) += fddi/
|
||||
obj-$(CONFIG_HIPPI) += hippi/
|
||||
obj-$(CONFIG_HAMRADIO) += hamradio/
|
||||
obj-$(CONFIG_QCOM_IPA) += ipa/
|
||||
obj-$(CONFIG_PLIP) += plip/
|
||||
|
||||
@@ -1,40 +0,0 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
#
|
||||
# HIPPI network device configuration
|
||||
#
|
||||
|
||||
config HIPPI
|
||||
bool "HIPPI driver support"
|
||||
depends on INET && PCI
|
||||
help
|
||||
HIgh Performance Parallel Interface (HIPPI) is a 800Mbit/sec and
|
||||
1600Mbit/sec dual-simplex switched or point-to-point network. HIPPI
|
||||
can run over copper (25m) or fiber (300m on multi-mode or 10km on
|
||||
single-mode). HIPPI networks are commonly used for clusters and to
|
||||
connect to super computers. If you are connected to a HIPPI network
|
||||
and have a HIPPI network card in your computer that you want to use
|
||||
under Linux, say Y here (you must also remember to enable the driver
|
||||
for your HIPPI card below). Most people will say N here.
|
||||
|
||||
if HIPPI
|
||||
|
||||
config ROADRUNNER
|
||||
tristate "Essential RoadRunner HIPPI PCI adapter support"
|
||||
depends on PCI
|
||||
help
|
||||
Say Y here if this is your PCI HIPPI network card.
|
||||
|
||||
To compile this driver as a module, choose M here: the module
|
||||
will be called rrunner. If unsure, say N.
|
||||
|
||||
config ROADRUNNER_LARGE_RINGS
|
||||
bool "Use large TX/RX rings"
|
||||
depends on ROADRUNNER
|
||||
help
|
||||
If you say Y here, the RoadRunner driver will preallocate up to 2 MB
|
||||
of additional memory to allow for fastest operation, both for
|
||||
transmitting and receiving. This memory cannot be used by any other
|
||||
kernel code or by user space programs. Say Y here only if you have
|
||||
the memory.
|
||||
|
||||
endif # HIPPI
|
||||
@@ -1,6 +0,0 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
#
|
||||
# Makefile for the HIPPI network device drivers.
|
||||
#
|
||||
|
||||
obj-$(CONFIG_ROADRUNNER) += rrunner.o
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,40 +0,0 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
||||
/*
|
||||
* INET An implementation of the TCP/IP protocol suite for the LINUX
|
||||
* operating system. INET is implemented using the BSD Socket
|
||||
* interface as the means of communication with the user level.
|
||||
*
|
||||
* Definitions for the HIPPI handlers.
|
||||
*
|
||||
* Version: @(#)hippidevice.h 1.0.0 05/26/97
|
||||
*
|
||||
* Author: Jes Sorensen, <Jes.Sorensen@cern.ch>
|
||||
*
|
||||
* hippidevice.h is based on previous fddidevice.h work by
|
||||
* Ross Biro
|
||||
* Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>
|
||||
* Alan Cox, <gw4pts@gw4pts.ampr.org>
|
||||
* Lawrence V. Stefani, <stefani@lkg.dec.com>
|
||||
*/
|
||||
#ifndef _LINUX_HIPPIDEVICE_H
|
||||
#define _LINUX_HIPPIDEVICE_H
|
||||
|
||||
#include <linux/if_hippi.h>
|
||||
|
||||
#ifdef __KERNEL__
|
||||
|
||||
struct neigh_parms;
|
||||
struct net_device;
|
||||
struct sk_buff;
|
||||
|
||||
struct hippi_cb {
|
||||
__u32 ifield;
|
||||
};
|
||||
|
||||
__be16 hippi_type_trans(struct sk_buff *skb, struct net_device *dev);
|
||||
int hippi_mac_addr(struct net_device *dev, void *p);
|
||||
int hippi_neigh_setup_dev(struct net_device *dev, struct neigh_parms *p);
|
||||
struct net_device *alloc_hippi_dev(int sizeof_priv);
|
||||
#endif
|
||||
|
||||
#endif /* _LINUX_HIPPIDEVICE_H */
|
||||
@@ -1733,9 +1733,6 @@
|
||||
#define PCI_DEVICE_ID_PC300_TE_M_2 0x0320
|
||||
#define PCI_DEVICE_ID_PC300_TE_M_1 0x0321
|
||||
|
||||
#define PCI_VENDOR_ID_ESSENTIAL 0x120f
|
||||
#define PCI_DEVICE_ID_ESSENTIAL_ROADRUNNER 0x0001
|
||||
|
||||
#define PCI_VENDOR_ID_O2 0x1217
|
||||
#define PCI_DEVICE_ID_O2_6729 0x6729
|
||||
#define PCI_DEVICE_ID_O2_6730 0x673a
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
obj-$(CONFIG_LLC) += psnap.o
|
||||
obj-$(CONFIG_NET_FC) += fc.o
|
||||
obj-$(CONFIG_FDDI) += fddi.o
|
||||
obj-$(CONFIG_HIPPI) += hippi.o
|
||||
obj-$(CONFIG_ATALK) += psnap.o
|
||||
obj-$(CONFIG_STP) += stp.o
|
||||
obj-$(CONFIG_GARP) += garp.o
|
||||
|
||||
-193
@@ -1,193 +0,0 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
/*
|
||||
* INET An implementation of the TCP/IP protocol suite for the LINUX
|
||||
* operating system. INET is implemented using the BSD Socket
|
||||
* interface as the means of communication with the user level.
|
||||
*
|
||||
* HIPPI-type device handling.
|
||||
*
|
||||
* Version: @(#)hippi.c 1.0.0 05/29/97
|
||||
*
|
||||
* Authors: Ross Biro
|
||||
* Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>
|
||||
* Mark Evans, <evansmp@uhura.aston.ac.uk>
|
||||
* Florian La Roche, <rzsfl@rz.uni-sb.de>
|
||||
* Alan Cox, <gw4pts@gw4pts.ampr.org>
|
||||
* Jes Sorensen, <Jes.Sorensen@cern.ch>
|
||||
*/
|
||||
|
||||
#include <linux/module.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/string.h>
|
||||
#include <linux/mm.h>
|
||||
#include <linux/socket.h>
|
||||
#include <linux/in.h>
|
||||
#include <linux/inet.h>
|
||||
#include <linux/netdevice.h>
|
||||
#include <linux/hippidevice.h>
|
||||
#include <linux/skbuff.h>
|
||||
#include <linux/errno.h>
|
||||
#include <net/arp.h>
|
||||
#include <net/sock.h>
|
||||
#include <linux/uaccess.h>
|
||||
|
||||
/*
|
||||
* Create the HIPPI MAC header for an arbitrary protocol layer
|
||||
*
|
||||
* saddr=NULL means use device source address
|
||||
* daddr=NULL means leave destination address (eg unresolved arp)
|
||||
*/
|
||||
|
||||
static int hippi_header(struct sk_buff *skb, struct net_device *dev,
|
||||
unsigned short type,
|
||||
const void *daddr, const void *saddr, unsigned int len)
|
||||
{
|
||||
struct hippi_hdr *hip = skb_push(skb, HIPPI_HLEN);
|
||||
struct hippi_cb *hcb = (struct hippi_cb *) skb->cb;
|
||||
|
||||
if (!len){
|
||||
len = skb->len - HIPPI_HLEN;
|
||||
printk("hippi_header(): length not supplied\n");
|
||||
}
|
||||
|
||||
/*
|
||||
* Due to the stupidity of the little endian byte-order we
|
||||
* have to set the fp field this way.
|
||||
*/
|
||||
hip->fp.fixed = htonl(0x04800018);
|
||||
hip->fp.d2_size = htonl(len + 8);
|
||||
hip->le.fc = 0;
|
||||
hip->le.double_wide = 0; /* only HIPPI 800 for the time being */
|
||||
hip->le.message_type = 0; /* Data PDU */
|
||||
|
||||
hip->le.dest_addr_type = 2; /* 12 bit SC address */
|
||||
hip->le.src_addr_type = 2; /* 12 bit SC address */
|
||||
|
||||
memcpy(hip->le.src_switch_addr, dev->dev_addr + 3, 3);
|
||||
memset_startat(&hip->le, 0, reserved);
|
||||
|
||||
hip->snap.dsap = HIPPI_EXTENDED_SAP;
|
||||
hip->snap.ssap = HIPPI_EXTENDED_SAP;
|
||||
hip->snap.ctrl = HIPPI_UI_CMD;
|
||||
hip->snap.oui[0] = 0x00;
|
||||
hip->snap.oui[1] = 0x00;
|
||||
hip->snap.oui[2] = 0x00;
|
||||
hip->snap.ethertype = htons(type);
|
||||
|
||||
if (daddr)
|
||||
{
|
||||
memcpy(hip->le.dest_switch_addr, daddr + 3, 3);
|
||||
memcpy(&hcb->ifield, daddr + 2, 4);
|
||||
return HIPPI_HLEN;
|
||||
}
|
||||
hcb->ifield = 0;
|
||||
return -((int)HIPPI_HLEN);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Determine the packet's protocol ID.
|
||||
*/
|
||||
|
||||
__be16 hippi_type_trans(struct sk_buff *skb, struct net_device *dev)
|
||||
{
|
||||
struct hippi_hdr *hip;
|
||||
|
||||
/*
|
||||
* This is actually wrong ... question is if we really should
|
||||
* set the raw address here.
|
||||
*/
|
||||
skb->dev = dev;
|
||||
skb_reset_mac_header(skb);
|
||||
hip = (struct hippi_hdr *)skb_mac_header(skb);
|
||||
skb_pull(skb, HIPPI_HLEN);
|
||||
|
||||
/*
|
||||
* No fancy promisc stuff here now.
|
||||
*/
|
||||
|
||||
return hip->snap.ethertype;
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(hippi_type_trans);
|
||||
|
||||
/*
|
||||
* For HIPPI we will actually use the lower 4 bytes of the hardware
|
||||
* address as the I-FIELD rather than the actual hardware address.
|
||||
*/
|
||||
int hippi_mac_addr(struct net_device *dev, void *p)
|
||||
{
|
||||
struct sockaddr *addr = p;
|
||||
if (netif_running(dev))
|
||||
return -EBUSY;
|
||||
dev_addr_set(dev, addr->sa_data);
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL(hippi_mac_addr);
|
||||
|
||||
int hippi_neigh_setup_dev(struct net_device *dev, struct neigh_parms *p)
|
||||
{
|
||||
/* Never send broadcast/multicast ARP messages */
|
||||
NEIGH_VAR_INIT(p, MCAST_PROBES, 0);
|
||||
|
||||
/* In IPv6 unicast probes are valid even on NBMA,
|
||||
* because they are encapsulated in normal IPv6 protocol.
|
||||
* Should be a generic flag.
|
||||
*/
|
||||
if (p->tbl->family != AF_INET6)
|
||||
NEIGH_VAR_INIT(p, UCAST_PROBES, 0);
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL(hippi_neigh_setup_dev);
|
||||
|
||||
static const struct header_ops hippi_header_ops = {
|
||||
.create = hippi_header,
|
||||
};
|
||||
|
||||
|
||||
static void hippi_setup(struct net_device *dev)
|
||||
{
|
||||
dev->header_ops = &hippi_header_ops;
|
||||
|
||||
/*
|
||||
* We don't support HIPPI `ARP' for the time being, and probably
|
||||
* never will unless someone else implements it. However we
|
||||
* still need a fake ARPHRD to make ifconfig and friends play ball.
|
||||
*/
|
||||
dev->type = ARPHRD_HIPPI;
|
||||
dev->hard_header_len = HIPPI_HLEN;
|
||||
dev->mtu = 65280;
|
||||
dev->min_mtu = 68;
|
||||
dev->max_mtu = 65280;
|
||||
dev->addr_len = HIPPI_ALEN;
|
||||
dev->tx_queue_len = 25 /* 5 */;
|
||||
memset(dev->broadcast, 0xFF, HIPPI_ALEN);
|
||||
|
||||
|
||||
/*
|
||||
* HIPPI doesn't support broadcast+multicast and we only use
|
||||
* static ARP tables. ARP is disabled by hippi_neigh_setup_dev.
|
||||
*/
|
||||
dev->flags = 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* alloc_hippi_dev - Register HIPPI device
|
||||
* @sizeof_priv: Size of additional driver-private structure to be allocated
|
||||
* for this HIPPI device
|
||||
*
|
||||
* Fill in the fields of the device structure with HIPPI-generic values.
|
||||
*
|
||||
* Constructs a new net device, complete with a private data area of
|
||||
* size @sizeof_priv. A 32-byte (not bit) alignment is enforced for
|
||||
* this private data area.
|
||||
*/
|
||||
|
||||
struct net_device *alloc_hippi_dev(int sizeof_priv)
|
||||
{
|
||||
return alloc_netdev(sizeof_priv, "hip%d", NET_NAME_UNKNOWN,
|
||||
hippi_setup);
|
||||
}
|
||||
|
||||
EXPORT_SYMBOL(alloc_hippi_dev);
|
||||
@@ -416,7 +416,6 @@ define_all_pci_vendors! {
|
||||
MICROSEMI = bindings::PCI_VENDOR_ID_MICROSEMI, // 0x11f8
|
||||
RP = bindings::PCI_VENDOR_ID_RP, // 0x11fe
|
||||
CYCLADES = bindings::PCI_VENDOR_ID_CYCLADES, // 0x120e
|
||||
ESSENTIAL = bindings::PCI_VENDOR_ID_ESSENTIAL, // 0x120f
|
||||
O2 = bindings::PCI_VENDOR_ID_O2, // 0x1217
|
||||
THREEDX = bindings::PCI_VENDOR_ID_3DFX, // 0x121a
|
||||
AVM = bindings::PCI_VENDOR_ID_AVM, // 0x1244
|
||||
|
||||
Reference in New Issue
Block a user