diff options
author | Antoine Tenart <antoine.tenart@free-electrons.com> | 2017-10-23 15:24:30 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-24 18:34:09 +0900 |
commit | 20920267885218fda08dc12c7d3814938ab15b54 (patch) | |
tree | a403563fb4e08b177fd2f8564d7a84e6f171d512 /drivers/net/ethernet/mellanox/mlxsw | |
parent | 822eaf7cfb7c4783375bceadbc7651137346ac00 (diff) | |
download | linux-20920267885218fda08dc12c7d3814938ab15b54.tar.bz2 |
net: mvpp2: do not unmap TSO headers buffers
The TSO header buffers are coming from a per cpu pool and should not
be unmapped as they are reused. The PPv2 driver was unmapping all
descriptors buffers unconditionally. This patch fixes this by checking
the buffers dma addresses before unmapping them, and by not unmapping
those who are located in the TSO header pool.
Fixes: 186cd4d4e414 ("net: mvpp2: software tso support")
Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw')
0 files changed, 0 insertions, 0 deletions