Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Apr 2014 15:28:17 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r264542 - head/sys/dev/altera/atse
Message-ID:  <201404161528.s3GFSHnc084953@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)
 {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404161528.s3GFSHnc084953>