Align IP header on four byte boundary

Quantenna calls ip_hdr_aligned() from ip_rcv(). ip_hdr_aligned()
memmoves the frame to ensure that the IP header is aligned on a four
byte boundary. This does not work properly because ip_rcv() potentially
clones the skb prior to that. You can't change the ->data or other
pointers of a cloned skb, because you would need to change the pointers
in all of the clones which you can't because Linux is not keeping track
of all clones.

Let's perform this memmove operation very early, hopefully prior to
anybody calling skb_clone() on it.

This is only a temporary solution until Quantenna found a nicer
solution.
1 file changed