diff options
author | Amir Vadai <amirv@mellanox.com> | 2013-10-07 13:38:13 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-10-08 16:09:50 -0400 |
commit | 021f1107ffdae7a82af6c53f4c52654062e365c6 (patch) | |
tree | ac5bd06eed05aec7bba4c49ba55aaaf32a8e39e9 /tools/perf/scripts/python/sched-migration.py | |
parent | 70fbe0794393829d9acd686428d87c27b6f6984b (diff) |
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 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions