diff options
author | bz <bz@FreeBSD.org> | 2014-04-16 15:28:17 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2014-04-16 15:28:17 +0000 |
commit | 21fced0602b6c31af9b8616ea987313fbbd81b36 (patch) | |
tree | 0c9b7883296b9abc522ace064909d5ff1104e613 | |
parent | d70382e43af5bf3815e00517d171e2322d7ee3b1 (diff) | |
download | FreeBSD-src-21fced0602b6c31af9b8616ea987313fbbd81b36.zip FreeBSD-src-21fced0602b6c31af9b8616ea987313fbbd81b36.tar.gz |
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
-rw-r--r-- | sys/dev/altera/atse/if_atse.c | 4 |
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 d49df5a..a341276 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) { |