summaryrefslogtreecommitdiffstats
path: root/sys/dev/altera
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2014-08-16 14:17:09 +0000
committerbz <bz@FreeBSD.org>2014-08-16 14:17:09 +0000
commit62c1685fc5464a8a2f1ddb5eefdf3d7fcf7e4e40 (patch)
treec49fff82eccb6c7b9ee7f2f5f6c50f225fc6851d /sys/dev/altera
parentfdfedc3bb4681dabd75972f302f5898024d10a87 (diff)
downloadFreeBSD-src-62c1685fc5464a8a2f1ddb5eefdf3d7fcf7e4e40.zip
FreeBSD-src-62c1685fc5464a8a2f1ddb5eefdf3d7fcf7e4e40.tar.gz
MFC r264542:
Use ETHER_ALIGN as argument to m_adj() to offset the beginning of packet rather than the magic number 2. While here fix a typo in a comment. No functional changes. Sponsored by: DARPA/AFRL
Diffstat (limited to 'sys/dev/altera')
-rw-r--r--sys/dev/altera/atse/if_atse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/altera/atse/if_atse.c b/sys/dev/altera/atse/if_atse.c
index f6ed625..554dcbc 100644
--- a/sys/dev/altera/atse/if_atse.c
+++ b/sys/dev/altera/atse/if_atse.c
@@ -1179,7 +1179,7 @@ outer:
return (rx_npkts);
m->m_len = m->m_pkthdr.len = MCLBYTES;
/* Make sure upper layers will be aligned. */
- m_adj(m, 2);
+ m_adj(m, ETHER_ALIGN);
sc->atse_rx_m = m;
}
@@ -1815,7 +1815,7 @@ atse_detach(device_t dev)
return (0);
}
-/* Shared between nexus anf fdt implementation. */
+/* Shared between nexus and fdt implementation. */
void
atse_detach_resources(device_t dev)
{
OpenPOWER on IntegriCloud