]> 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)
commit6573a7389255278ecf757df960c1a1f426b86ef8
tree297f8c256708bb77f60b3f4259dc5758f488826e
parenteece332bec6c4be45c4b1f2791ee742617bdf6fc
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