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
This commit is contained in:
parent
fdfedc3bb4
commit
62c1685fc5
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user