Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ethoc: align received packet to make IP header at word boundary
The packet buffer is allocated at 4 bytes boundary, but the IP header length and version bits is located at byte 14. These bit fields access as 32 bits word and caused exception on processors that do not support unaligned access. The patch adds 2 bytes offset to make the bit fields word aligned. Signed-off-by: Thomas Chou <[email protected]> Signed-off-by: David S. Miller <[email protected]>
- Loading branch information