diff options
author | Eric Dumazet <edumazet@google.com> | 2016-03-17 19:57:06 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-03-19 04:12:44 +0100 |
commit | eee577232203842b4dcadb7ab477a298479633ed (patch) | |
tree | dc5bc8b326f427470c2903d2c57ba6203753e441 /include/net/bonding.h | |
parent | net/mlx4_core: Fix backward compatibility on VFs (diff) | |
download | linux-eee577232203842b4dcadb7ab477a298479633ed.tar.xz linux-eee577232203842b4dcadb7ab477a298479633ed.zip |
net: bcmgenet: fix dma api length mismatch
When un-mapping skb->data in __bcmgenet_tx_reclaim(),
we must use the length that was used in original dma_map_single(),
instead of skb->len that might be bigger (includes the frags)
We simply can store skb_len into tx_cb_ptr->dma_len and use it
at unmap time.
Fixes: 1c1008c793fa ("net: bcmgenet: add main driver file")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/bonding.h')
0 files changed, 0 insertions, 0 deletions