diff options
author | Eric Dumazet <edumazet@google.com> | 2017-01-19 06:44:42 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-19 19:49:15 +0300 |
commit | 69fed99baac186013840ced3524562841296034f (patch) | |
tree | 71bd26d5340acd4eec2f91be973fc093675a1a0a /net/packet/af_packet.c | |
parent | 0dbd7ff3ac5017a46033a9d0a87a8267d69119d9 (diff) | |
download | linux-69fed99baac186013840ced3524562841296034f.tar.xz |
gianfar: Do not reuse pages from emergency reserve
A driver using dev_alloc_page() must not reuse a page that had to
use emergency memory reserve.
Otherwise all packets using this page will be immediately dropped,
unless for very specific sockets having SOCK_MEMALLOC bit set.
This issue might be hard to debug, because only a fraction of the RX
ring buffer would suffer from drops.
Fixes: 75354148ce69 ("gianfar: Add paged allocation and Rx S/G")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Claudiu Manoil <claudiu.manoil@freescale.com>
Acked-by: Claudiu Manoil <claudiu.manoil@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/packet/af_packet.c')
0 files changed, 0 insertions, 0 deletions