summaryrefslogtreecommitdiff
path: root/net/core/flow.c
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2014-01-09 14:36:27 +0100
committerDavid S. Miller <davem@davemloft.net>2014-01-10 13:18:07 -0500
commit95e92fd40c967c363ad66b2fd1ce4dcd68132e54 (patch)
treea0d1dd81b60340fcb9f451dba08d6361a24d974c /net/core/flow.c
parent07edd741c838e376933b445bbf2692f83b6774e6 (diff)
bnx2x: fix DMA unmapping of TSO split BDs
bnx2x triggers warnings with CONFIG_DMA_API_DEBUG=y: WARNING: CPU: 0 PID: 2253 at lib/dma-debug.c:887 check_unmap+0xf8/0x920() bnx2x 0000:28:00.0: DMA-API: device driver frees DMA memory with different size [device address=0x00000000da2b389e] [map size=1490 bytes] [unmap size=66 bytes] The reason is that bnx2x splits a TSO BD into two BDs (headers + data) using one DMA mapping for both, but it uses only the length of the first BD when unmapping. This patch fixes the bug by unmapping the whole length of the two BDs. Signed-off-by: Michal Schmidt <mschmidt@redhat.com> Reviewed-by: Eric Dumazet <edumazet@google.com> Acked-by: Dmitry Kravkov <dmitry@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/flow.c')
0 files changed, 0 insertions, 0 deletions