svn commit: r270059 - stable/10/sys/dev/altera/atse
Bjoern A. Zeeb
bz at FreeBSD.org
Sat Aug 16 14:17:10 UTC 2014
Author: bz
Date: Sat Aug 16 14:17:09 2014
New Revision: 270059
URL: http://svnweb.freebsd.org/changeset/base/270059
Log:
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
Modified:
stable/10/sys/dev/altera/atse/if_atse.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/dev/altera/atse/if_atse.c
==============================================================================
--- stable/10/sys/dev/altera/atse/if_atse.c Sat Aug 16 14:14:29 2014 (r270058)
+++ stable/10/sys/dev/altera/atse/if_atse.c Sat Aug 16 14:17:09 2014 (r270059)
@@ -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)
{
More information about the svn-src-all
mailing list