sfc: Copy RX prefix into skb head area in efx_rx_mk_skb()
authorBen Hutchings <bhutchings@solarflare.com>
Thu, 28 Nov 2013 18:58:11 +0000 (18:58 +0000)
committerBen Hutchings <bhutchings@solarflare.com>
Thu, 12 Dec 2013 22:07:12 +0000 (22:07 +0000)
commit2ccd0b192534b1dc6af45ffb81faa44b7ae416bf
tree297f8c256708bb77f60b3f4259dc5758f488826e
parent9ec0659595c8020f1efa55aa00870e8773f8ee89
sfc: Copy RX prefix into skb head area in efx_rx_mk_skb()

We can potentially pull the entire packet contents into the head area
and then free the page it was in.  In order to read an inline
timestamp safely, we need to copy the prefix into the head area as
well.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/ethernet/sfc/net_driver.h
drivers/net/ethernet/sfc/rx.c