]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc005f67310c4dfb0de29cdd341a7070da27970ce
tree297f8c256708bb77f60b3f4259dc5758f488826e
parentf3504bfae995b13d82e12c1755e7a99eceebf939
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