svn commit: r264542 - head/sys/dev/altera/atse

Bjoern A. Zeeb bz at FreeBSD.org
Wed Apr 16 15:28:17 UTC 2014


Author: bz
Date: Wed Apr 16 15:28:17 2014
New Revision: 264542
URL: http://svnweb.freebsd.org/changeset/base/264542

Log:
  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.
  
  MFC after:	1 week
  Sponsored by:	DARPA/AFRL

Modified:
  head/sys/dev/altera/atse/if_atse.c

Modified: head/sys/dev/altera/atse/if_atse.c
==============================================================================
--- head/sys/dev/altera/atse/if_atse.c	Wed Apr 16 15:27:14 2014	(r264541)
+++ head/sys/dev/altera/atse/if_atse.c	Wed Apr 16 15:28:17 2014	(r264542)
@@ -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-head mailing list