summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2006-05-12 05:04:46 +0000
committerjhb <jhb@FreeBSD.org>2006-05-12 05:04:46 +0000
commit0f921e0992f543c4aafd5604a99a6edaa059ff36 (patch)
tree9e7fa374ce86cf10beca9d2dca94fc077a700745 /sys/net
parent95826ec6b414b9b651fe4cf4b08cf9e0e16a11f2 (diff)
downloadFreeBSD-src-0f921e0992f543c4aafd5604a99a6edaa059ff36.zip
FreeBSD-src-0f921e0992f543c4aafd5604a99a6edaa059ff36.tar.gz
Remove various bits of conditional Alpha code and fixup a few comments.
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if.h3
-rw-r--r--sys/net/if_loop.c8
2 files changed, 5 insertions, 6 deletions
diff --git a/sys/net/if.h b/sys/net/if.h
index 4e97601..f669017 100644
--- a/sys/net/if.h
+++ b/sys/net/if.h
@@ -103,9 +103,6 @@ struct if_data {
u_long ifi_noproto; /* destined for unsupported protocol */
u_long ifi_hwassist; /* HW offload capabilities */
time_t ifi_epoch; /* uptime at attach or stat reset */
-#ifdef __alpha__
- u_int ifi_timepad; /* time_t is int, not long on alpha */
-#endif
struct timeval ifi_lastchange; /* time of last administrative change */
};
diff --git a/sys/net/if_loop.c b/sys/net/if_loop.c
index 94f1c3e..7698ffd 100644
--- a/sys/net/if_loop.c
+++ b/sys/net/if_loop.c
@@ -273,9 +273,11 @@ if_simloop(ifp, m, af, hlen)
/* Strip away media header */
if (hlen > 0) {
m_adj(m, hlen);
-#if defined(__alpha__) || defined(__ia64__) || defined(__sparc64__)
- /* The alpha doesn't like unaligned data.
- * We move data down in the first mbuf */
+#if defined(__ia64__) || defined(__sparc64__)
+ /*
+ * Some archs do not like unaligned data, so
+ * we move data down in the first mbuf.
+ */
if (mtod(m, vm_offset_t) & 3) {
KASSERT(hlen >= 3, ("if_simloop: hlen too small"));
bcopy(m->m_data,
OpenPOWER on IntegriCloud