aboutsummaryrefslogtreecommitdiffstats
path: root/CREDITS
diff options
context:
space:
mode:
authorAmir Vadai <amirv@mellanox.com>2013-10-07 13:38:13 +0200
committerDavid S. Miller <davem@davemloft.net>2013-10-08 16:09:50 -0400
commit021f1107ffdae7a82af6c53f4c52654062e365c6 (patch)
treeac5bd06eed05aec7bba4c49ba55aaaf32a8e39e9 /CREDITS
parentnet/mlx4_en: Rename name of mlx4_en_rx_alloc members (diff)
downloadlinux-dev-021f1107ffdae7a82af6c53f4c52654062e365c6.tar.xz
linux-dev-021f1107ffdae7a82af6c53f4c52654062e365c6.zip
net/mlx4_en: Fix pages never dma unmapped on rx
This patch fixes a bug introduced by commit 51151a16 (mlx4: allow order-0 memory allocations in RX path). dma_unmap_page never reached because condition to detect last fragment in page is wrong. offset+frag_stride can't be greater than size, need to make sure no additional frag will fit in page => compare offset + frag_stride + next_frag_size instead. next_frag_size is the same as the current one, since page is shared only with frags of the same size. CC: Eric Dumazet <edumazet@google.com> Signed-off-by: Amir Vadai <amirv@mellanox.com> Acked-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'CREDITS')
0 files changed, 0 insertions, 0 deletions