diff options
| author | Daniel Engberg <diizzy@FreeBSD.org> | 2026-06-19 17:47:11 +0000 |
|---|---|---|
| committer | Daniel Engberg <diizzy@FreeBSD.org> | 2026-06-19 19:22:26 +0000 |
| commit | 3b3739aa8b45885cb19d85d8273333dc897bebc9 (patch) | |
| tree | 92bbe0985e1e627fb2f94e587b70b26ffe6432fe | |
| parent | b7b9a19efe3642c6a87bea27129f1f35d9127458 (diff) | |
net/aoe: Remove from tree
Listed as broken for at least 6 months and upstream is gone
| -rw-r--r-- | MOVED | 1 | ||||
| -rw-r--r-- | net/Makefile | 1 | ||||
| -rw-r--r-- | net/aoe/Makefile | 29 | ||||
| -rw-r--r-- | net/aoe/distinfo | 2 | ||||
| -rw-r--r-- | net/aoe/files/aoe.in | 61 | ||||
| -rw-r--r-- | net/aoe/files/patch-aoe.h | 10 | ||||
| -rw-r--r-- | net/aoe/files/patch-aoeblk.c | 23 | ||||
| -rw-r--r-- | net/aoe/files/patch-aoecmd.c | 95 | ||||
| -rw-r--r-- | net/aoe/files/patch-aoenet.c | 228 | ||||
| -rw-r--r-- | net/aoe/pkg-descr | 1 | ||||
| -rw-r--r-- | net/aoe/pkg-message | 39 |
11 files changed, 1 insertions, 489 deletions
@@ -5357,3 +5357,4 @@ games/cgoban||2026-06-19|Broken for more than a year and upstream is dead games/valyriatear||2026-06-19|Broken for more than a year and upstream is dead multimedia/nymphcast||2026-06-19|Broken for more than 6 months multimedia/obs-streamfx||2026-06-19|Broken for more than 6 months and upstream is dead +net/aoe||2026-06-19|Broken for more than 6 months diff --git a/net/Makefile b/net/Makefile index c8cf14ce878b..95983e6a62fa 100644 --- a/net/Makefile +++ b/net/Makefile @@ -21,7 +21,6 @@ SUBDIR += amnezia-tools SUBDIR += amneziawg-go SUBDIR += amqpcat - SUBDIR += aoe SUBDIR += apache-commons-net SUBDIR += apinger SUBDIR += aprsc diff --git a/net/aoe/Makefile b/net/aoe/Makefile deleted file mode 100644 index d897862c3719..000000000000 --- a/net/aoe/Makefile +++ /dev/null @@ -1,29 +0,0 @@ -PORTNAME= aoe -PORTVERSION= 1.2.0 -PORTREVISION= 5 -CATEGORIES= net -MASTER_SITES= https://people.freebsd.org/~sson/aoe/ -DISTNAME= ${PORTNAME}-freebsd-${PORTVERSION} - -MAINTAINER= ports@FreeBSD.org -COMMENT= FreeBSD driver for ATA over Ethernet (AoE) -WWW= https://web.archive.org/web/20120420082041/http://www.coraid.com/support/freebsd/ - -LICENSE= BSD2CLAUSE - -BROKEN= aoenet.c:119:20: error: incomplete definition of type 'struct ifnet' -BROKEN_armv6= fails to compile: implicit declaration of function 'cp15_pmccntr_get' is invalid in C99 -BROKEN_FreeBSD_14= crashes dereferencing vnet_entry_ifnet - -USES= kmod uidfix -USE_RC_SUBR= aoe - -WRKSRC= ${WRKDIR}/dev/aoe - -PLIST_FILES= share/man/man4/aoe.4.gz \ - ${KMODDIR}/aoe.ko - -post-install: - ${INSTALL_MAN} ${WRKDIR}/aoe.4 ${STAGEDIR}${PREFIX}/share/man/man4/ - -.include <bsd.port.mk> diff --git a/net/aoe/distinfo b/net/aoe/distinfo deleted file mode 100644 index 2903bf20ad6d..000000000000 --- a/net/aoe/distinfo +++ /dev/null @@ -1,2 +0,0 @@ -SHA256 (aoe-freebsd-1.2.0.tar.gz) = 4fcfde7c4b758dfaba36b28e94df7c74eb7609cf26261720475c5479a8323a24 -SIZE (aoe-freebsd-1.2.0.tar.gz) = 16529 diff --git a/net/aoe/files/aoe.in b/net/aoe/files/aoe.in deleted file mode 100644 index db9573391da1..000000000000 --- a/net/aoe/files/aoe.in +++ /dev/null @@ -1,61 +0,0 @@ -#!/bin/sh - -# PROVIDE: netdisks -# REQUIRE: NETWORKING sysctl -# KEYWORD: nojail - -. /etc/rc.subr - -name="aoe" -rcvar=aoe_enable -start_cmd="aoe_start" -stop_cmd=":" - -# discover the AoE devices on requested interfaces and tell vinum -# about the disks requested -aoe_start() -{ - echo -n 1>&2 "Starting AoE:" - if [ -z "${aoe_iflist}" ]; then - echo 2>&1 " aoe_start: unset aoe_iflist." - return - fi - sysctl net.aoe > /dev/null 2>&1 - if [ $? -eq 1 ]; then - kldload aoe > /dev/null 2>&1 - fi - if [ $? -eq 0 ]; then - # Make sure the net interfaces are "up" - for i in ${aoe_iflist}; do - echo -n 1>&2 " $i" - ifconfig $i up - done - echo 1>&2 "." - - # give the interfaces a chance to come up - sleep 3 - sysctl net.aoe.wc=${aoe_wc} > /dev/null 2>&1 - sysctl net.aoe.iflist="${aoe_iflist}" > /dev/null 2>&1 - sleep 1 - sysctl net.aoe.devices - - # Needs to be updated for gvinum - #if checkyesno start_vinum; then - #if [ -n "${aoe_vinum_drives}" ]; then - # vinum read "${aoe_vinum_drives}" - #fi - #fi - echo -n 1>&2 "Mounting AoE blades:" - - for i in ${aoe_mounts}; do - echo -n 1>&2 " $i" - mount $i - done - echo 1>&2 "." - else - echo 1>&2 Failure initializing AoE - fi -} - -load_rc_config $name -run_rc_command "$1" diff --git a/net/aoe/files/patch-aoe.h b/net/aoe/files/patch-aoe.h deleted file mode 100644 index 2bd5c54f1a81..000000000000 --- a/net/aoe/files/patch-aoe.h +++ /dev/null @@ -1,10 +0,0 @@ ---- aoe.h.orig 2023-09-05 13:45:55 UTC -+++ aoe.h -@@ -167,6 +167,7 @@ struct ifnet; - struct mbuf; - struct mtx; - -+#define frame aoeframe - struct frame { - int f_tag; - int f_mlen; diff --git a/net/aoe/files/patch-aoeblk.c b/net/aoe/files/patch-aoeblk.c deleted file mode 100644 index 7c096292da89..000000000000 --- a/net/aoe/files/patch-aoeblk.c +++ /dev/null @@ -1,23 +0,0 @@ ---- aoeblk.c.orig 2024-01-03 00:56:10 UTC -+++ aoeblk.c -@@ -114,7 +114,7 @@ aoeblk_ioctl(struct disk *disk, u_long cmd, void *vp, - { - struct ata_ioc_request *iocmd; - struct aoedev *d; -- int n; -+ int error, n; - - if (cmd != IOCATAREQUEST) { - IPRINTK("cmd %ld not IOCATA.\n", cmd); -@@ -153,9 +153,9 @@ aoeblk_ioctl(struct disk *disk, u_long cmd, void *vp, - - switch (iocmd->ata_ioc_request_ata.command) { - case ATA_ATA_IDENTIFY: -- copyout(d->ad_ident, iocmd->ata_ioc_request_data, sizeof d->ad_ident); -+ error = copyout(d->ad_ident, iocmd->ata_ioc_request_data, sizeof d->ad_ident); - mtx_unlock(&d->ad_mtx); -- return (0); -+ return (error); - case ATA_SMART: - if (iocmd->ata_ioc_request_ata.feature != ATA_SMART_ATTR_AUTOSAVE) { - n = aoecmd_ata_smart(d, iocmd); diff --git a/net/aoe/files/patch-aoecmd.c b/net/aoe/files/patch-aoecmd.c deleted file mode 100644 index 7a8694ee7c81..000000000000 --- a/net/aoe/files/patch-aoecmd.c +++ /dev/null @@ -1,95 +0,0 @@ ---- aoecmd.c.orig 2006-05-25 17:13:09 UTC -+++ aoecmd.c -@@ -44,6 +44,7 @@ __FBSDID("$FreeBSD: src/sys/dev/aoe/aoecmd.c,v 1.23.2. - #include <sys/mutex.h> - #include <sys/mbuf.h> - #include <sys/sysctl.h> -+#include <sys/endian.h> - - #include <dev/aoe/aoe.h> - -@@ -197,12 +198,11 @@ rexmit(struct aoedev *d, struct frame *f) - { - /* struct mbuf *m; */ - struct aoe_hdr *h; -- struct aoe_atahdr *ah; - - h = (struct aoe_hdr *) f->f_hdr; -- ah = (struct aoe_atahdr *) (h+1); - - #ifdef AOE_DEBUG -+ struct aoe_atahdr *ah = (struct aoe_atahdr *) (h+1); - - IPRINTK("mlen=%ld verfl=%X major=%X minor=%X cmd=%X\n" - "\ttag=%lX aflags=%X errfeat=%X scnt=%X cmdstat=%X\n" -@@ -427,29 +427,6 @@ loop: - goto loop; - } - --static u_short --lhget16(u_char *p) --{ -- u_short n; -- -- n = p[1]; -- n <<= 8; -- n |= p[0]; -- return (n); --} -- --static u_long --lhget32(u_char *p) --{ -- u_long n; -- -- n = lhget16(p+2); -- n <<= 16; -- n |= lhget16(p); -- return (n); --} -- -- - static void - ataid_complete(struct aoedev *d, char *id) - { -@@ -457,13 +434,13 @@ ataid_complete(struct aoedev *d, char *id) - - memcpy(d->ad_ident, id, sizeof d->ad_ident); - -- n = lhget16(id + (83<<1)); /* Command set supported. */ -+ n = le16toh(*(uint16_t *) (id + (83<<1))); /* Command set supported. */ - if (n & (1<<10)) { /* Lba48 */ - atomic_set_32(&d->ad_flags, DEVFL_EXT); -- d->ad_nsectors = lhget32(id + (100<<1)); /* n lba48 sectors. */ -+ d->ad_nsectors = le64toh(*(uint64_t *) (id + (100<<1))); /* n lba48 sectors. */ - } else { - atomic_clear_32(&d->ad_flags, DEVFL_EXT); -- d->ad_nsectors = lhget32(id + (60<<1)); /* n lba28 sectors. */ -+ d->ad_nsectors = le32toh(*(uint32_t *) (id + (60<<1))); /* n lba28 sectors. */ - } - if (aoeblk_register(d) != 0) - IPRINTK("could not register disk\n"); -@@ -614,7 +591,7 @@ aoecmd_ata_smart(struct aoedev *d, struct ata_ioc_requ - struct aoe_hdr *h; - struct aoe_atahdr *ah; - register daddr_t lba; -- int timeout; -+ int error, timeout; - - timeout = iocmd->ata_ioc_request_timeout; - -@@ -664,10 +641,12 @@ aoecmd_ata_smart(struct aoedev *d, struct ata_ioc_requ - iocmd->ata_ioc_request_ata.lba = lba; - - if (iocmd->ata_ioc_request_flags == ATA_CMD_READ) -- copyout(ah+1, iocmd->ata_ioc_request_data, iocmd->ata_ioc_request_count); -+ error = copyout(ah+1, iocmd->ata_ioc_request_data, iocmd->ata_ioc_request_count); -+ else -+ error = 0; - - f->f_tag = FREETAG; -- return (0); -+ return (error); - } - - /* Set the write caching. */ diff --git a/net/aoe/files/patch-aoenet.c b/net/aoe/files/patch-aoenet.c deleted file mode 100644 index ff661997d8fb..000000000000 --- a/net/aoe/files/patch-aoenet.c +++ /dev/null @@ -1,228 +0,0 @@ ---- aoenet.c.orig 2006-05-25 16:10:11 UTC -+++ aoenet.c -@@ -75,13 +75,12 @@ static char *aoe_errlist[] = - }; - - #define NECODES (sizeof(aoe_errlist) / sizeof(char *) - 1) --#if (__FreeBSD_version < 600000) --#define IFPADDR(ifp) (((struct arpcom *) (ifp))->ac_enaddr) --#else --#define IFPADDR(ifp) IFP2ENADDR(ifp) --#endif -+#include <net/if_dl.h> -+#define IFPADDR(ifp) IF_LLADDR(ifp) - #define IFLISTSZ 1024 - -+#define IFNET_FOREACH(v) CK_STAILQ_FOREACH(v, &V_ifnet, if_link) -+ - static char aoe_iflist[IFLISTSZ]; - - static int sysctl_aoe_iflist(SYSCTL_HANDLER_ARGS); -@@ -91,50 +90,7 @@ SYSCTL_OID(_net_aoe, OID_AUTO, iflist, CTLTYPE_STRING| - aoe_iflist, IFLISTSZ - 1, sysctl_aoe_iflist, "A", - "Space separated list of interfaces valid for AoE"); - --#if (__FreeBSD_version < 600000) --/* FreeBSD 5.X doesn't include strspn()... */ --#include <sys/limits.h> --#define IDX(c) ((u_char)(c) / LONG_BIT) --#define BIT(c) ((u_long)1 << ((u_char)(c) % LONG_BIT)) -- --static size_t --strspn(const char *s, const char *charset) --{ -- /* -- * NB: idx and bit are temporaries whose use causes gcc 3.4.2 to -- * generate better code. Without them, gcc gets a little confused. -- */ -- const char *s1; -- u_long bit; -- u_long tbl[(UCHAR_MAX + 1) / LONG_BIT]; -- int idx; -- -- if(*s == '\0') -- return (0); -- --#if LONG_BIT == 64 /* always better to unroll on 64-bit architectures */ -- tbl[3] = tbl[2] = tbl[1] = tbl[0] = 0; --#else -- for (idx = 0; idx < sizeof(tbl) / sizeof(tbl[0]); idx++) -- tbl[idx] = 0; --#endif -- for (; *charset != '\0'; charset++) { -- idx = IDX(*charset); -- bit = BIT(*charset); -- tbl[idx] |= bit; -- } - -- for(s1 = s; ; s1++) { -- idx = IDX(*s1); -- bit = BIT(*s1); -- if ((tbl[idx] & bit) == 0) -- break; -- } -- return (s1 - s); --} --#endif /* __FreeBSD_version < 600000 */ -- -- - /* aoe_strcspn -- span the complement of a string */ - static size_t - aoe_strcspn(const char *s, const char *reject) -@@ -160,7 +116,7 @@ is_aoe_netif(struct ifnet *ifp) - register char *p, *q; - register int len; - -- switch (ifp->if_data.ifi_type) { -+ switch (ifp->if_type) { - default: - return (FALSE); - case IFT_ETHER: -@@ -191,7 +147,7 @@ is_aoe_netif(struct ifnet *ifp) - * a dummy "free" function for mbuf ext buffer - */ - static void --nilfn(void *a, void *b) -+nilfn(struct mbuf *m) - { - } - -@@ -201,7 +157,7 @@ frame_mbufinit(struct frame *f) - { - struct mbuf *m; - -- if ((m = m_gethdr(M_DONTWAIT, MT_DATA)) == NULL) -+ if ((m = m_gethdr(M_NOWAIT, MT_DATA)) == NULL) - return (NULL); - m->m_len = AOEHDRSZ; - m->m_pkthdr.len = f->f_mlen; -@@ -215,14 +171,15 @@ frame_mbufinit(struct frame *f) - u_int len; - - len = f->f_mlen - AOEHDRSZ; -- if ((m1 = m_get(M_DONTWAIT, MT_DATA)) == NULL) { -+ if ((m1 = m_get(M_NOWAIT, MT_DATA)) == NULL) { - m_freem(m); - return (NULL); - } - m->m_next = m1; - -- m1->m_ext.ref_cnt = NULL; -+ m1->m_ext.ext_cnt = NULL; - MEXTADD(m1, f->f_data, len, nilfn, -+ f->f_data, - NULL, 0, EXT_NET_DRV); - m1->m_len = len; - m1->m_next = NULL; -@@ -272,11 +229,11 @@ aoenet_xmitbcast(u_short aoemajor, u_char aoeminor) - h->ah_cmd = AOECMD_CFG; - - IFNET_RLOCK(); -- TAILQ_FOREACH(ifp, &ifnet, if_link) { -+ IFNET_FOREACH(ifp) { - if (!is_aoe_netif(ifp)) - continue; - memcpy(h->ah_src, IFPADDR(ifp), sizeof(h->ah_src)); -- m = m_copypacket(m0, M_DONTWAIT); -+ m = m_copypacket(m0, M_NOWAIT); - if (m == NULL) { - IPRINTK("m_copypacket failure\n"); - continue; -@@ -298,7 +255,7 @@ u_int - aoenet_maxsize(struct ifnet *ifp) - { - /* max payload size of packet based on interface mtu setting */ -- return ((ifp->if_data.ifi_mtu - AOEHDRSZ) & ~(DEV_BSIZE - 1)); -+ return ((ifp->if_mtu - AOEHDRSZ) & ~(DEV_BSIZE - 1)); - } - - -@@ -362,7 +319,7 @@ aoe_ether_input(struct ifnet *ifp, struct mbuf *m) - */ - if ((m->m_flags & M_PKTHDR) == 0) { - if_printf(ifp, "discard frame w/o packet header\n"); -- ifp->if_ierrors++; -+ if_inc_counter(ifp, IFCOUNTER_IERRORS, 1); - m_freem(m); - return; - } -@@ -371,7 +328,7 @@ aoe_ether_input(struct ifnet *ifp, struct mbuf *m) - if_printf(ifp, "discard frame w/o leading ethernet " - "header (len %u pkt len %u)\n", - m->m_len, m->m_pkthdr.len); -- ifp->if_ierrors++; -+ if_inc_counter(ifp, IFCOUNTER_IERRORS, 1); - m_freem(m); - return; - } -@@ -384,17 +341,17 @@ aoe_ether_input(struct ifnet *ifp, struct mbuf *m) - if (m->m_pkthdr.len > - ETHER_MAX_FRAME(ifp, etype, m->m_flags & M_HASFCS)) { - if_printf(ifp, "discard oversize frame " -- "(ether type %x flags %x len %u > max %lu)\n", -+ "(ether type %x flags %x len %u > max %u)\n", - etype, m->m_flags, m->m_pkthdr.len, -- ETHER_MAX_FRAME(ifp, etype, -+ (int) ETHER_MAX_FRAME(ifp, etype, - m->m_flags & M_HASFCS)); -- ifp->if_ierrors++; -+ if_inc_counter(ifp, IFCOUNTER_IERRORS, 1); - m_freem(m); - return; - } - if (m->m_pkthdr.rcvif == NULL) { - if_printf(ifp, "discard frame w/o interface pointer\n"); -- ifp->if_ierrors++; -+ if_inc_counter(ifp, IFCOUNTER_IERRORS, 1); - m_freem(m); - return; - } -@@ -417,7 +374,7 @@ aoe_ether_input(struct ifnet *ifp, struct mbuf *m) - m->m_flags &= ~M_HASFCS; - } - -- ifp->if_ibytes += m->m_pkthdr.len; -+ if_inc_counter(ifp, IFCOUNTER_IBYTES, m->m_pkthdr.len); - - if (ETHER_IS_MULTICAST(eh->ether_dhost)) { - if (bcmp(etherbroadcastaddr, eh->ether_dhost, -@@ -427,7 +384,7 @@ aoe_ether_input(struct ifnet *ifp, struct mbuf *m) - m->m_flags |= M_MCAST; - } - if (m->m_flags & (M_BCAST|M_MCAST)) -- ifp->if_imcasts++; -+ if_inc_counter(ifp, IFCOUNTER_IMCASTS, 1); - - aoeintr(m); - /* netisr_dispatch(NETISR_AOE, m); */ -@@ -446,7 +403,7 @@ sysctl_aoe_iflist(SYSCTL_HANDLER_ARGS) - - #ifdef FORCE_NETWORK_HOOK - IFNET_RLOCK(); -- TAILQ_FOREACH(ifp, &ifnet, if_link) { -+ IFNET_FOREACH(ifp) { - if (!is_aoe_netif(ifp)) { - if (ifp->if_input == aoe_ether_input) - ifp->if_input = old_ether_input; -@@ -471,8 +428,8 @@ aoenet_init(void) - struct ifnet *ifp; - - IFNET_RLOCK(); -- TAILQ_FOREACH(ifp, &ifnet, if_link) { -- switch (ifp->if_data.ifi_type) { -+ IFNET_FOREACH(ifp) { -+ switch (ifp->if_type) { - case IFT_ETHER: - case IFT_FASTETHER: - case IFT_GIGABITETHERNET: -@@ -500,8 +457,8 @@ aoenet_exit(void) - struct ifnet *ifp; - - IFNET_RLOCK(); -- TAILQ_FOREACH(ifp, &ifnet, if_link) { -- switch (ifp->if_data.ifi_type) { -+ IFNET_FOREACH(ifp) { -+ switch (ifp->if_type) { - case IFT_ETHER: - case IFT_FASTETHER: - case IFT_GIGABITETHERNET: diff --git a/net/aoe/pkg-descr b/net/aoe/pkg-descr deleted file mode 100644 index 75a30a1fcde5..000000000000 --- a/net/aoe/pkg-descr +++ /dev/null @@ -1 +0,0 @@ -FreeBSD driver for ATA over Ethernet (AoE) diff --git a/net/aoe/pkg-message b/net/aoe/pkg-message deleted file mode 100644 index 42870c7f8777..000000000000 --- a/net/aoe/pkg-message +++ /dev/null @@ -1,39 +0,0 @@ -[ -{ type: install - message: <<EOM -Please remember to reinstall this port after kernel source update. Using AoE -devices on boot is a little tricky because the network must be up before the -system can access an AoE device. The current rc boot method for automounting -filesystems will not work with AoE devices; vinum and mount -a are both run -before bringing up the network. - -In order to use AoE devices on boot a few rc.conf variables have been defined -that permit the boot script (/etc/rc.d/aoe) to initialize systems using AoE -devices after the network is up. They are as follows: - - aoe_enable Set to "Yes" to enable the aoe startup script. - aoe_iflist A space separated string of interfaces valid for AoE. - aoe_wc Set to "1" to enable write cache on AoE device. - aoe_mounts A space seperated string of AoE device nodes to be mounted. - (An entry for each needs to be in /etc/fstab as well with the - "noauto" option.) - -For example, the following added to /etc/rc.conf: - - aoe_enable="Yes" - aoe_iflist="em0 em1" - aoe_wc="1" - aoe_mounts="/dev/aoed0s1a /dev/aoed1s1a" - -and the following added to /etc/fstab: - - # Device Mountpoint FStype Options Dump Pass# - /dev/aoed0s1a /mnt/a ufs rw,noauto 0 0 - /dev/aoed1s1a /mnt/b ufs rw,noauto 0 0 - -will automatically start the AoE driver and mount the /mnt/a and /mnt/b -"blades". See aoe(4) and http://www.coraid.com/support/freebsd/usingaoe.html -for more information. -EOM -} -] |
