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
This commit is contained in:
parent
69155b132d
commit
5cb35d896d
@ -1179,7 +1179,7 @@ outer:
|
|||||||
return (rx_npkts);
|
return (rx_npkts);
|
||||||
m->m_len = m->m_pkthdr.len = MCLBYTES;
|
m->m_len = m->m_pkthdr.len = MCLBYTES;
|
||||||
/* Make sure upper layers will be aligned. */
|
/* Make sure upper layers will be aligned. */
|
||||||
m_adj(m, 2);
|
m_adj(m, ETHER_ALIGN);
|
||||||
sc->atse_rx_m = m;
|
sc->atse_rx_m = m;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1815,7 +1815,7 @@ atse_detach(device_t dev)
|
|||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Shared between nexus anf fdt implementation. */
|
/* Shared between nexus and fdt implementation. */
|
||||||
void
|
void
|
||||||
atse_detach_resources(device_t dev)
|
atse_detach_resources(device_t dev)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user