]> git.baikalelectronics.ru Git - kernel.git/commit
net: mv643xx_eth: Avoid unmapping the TSO header buffers
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Fri, 30 May 2014 16:40:11 +0000 (13:40 -0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Jun 2014 23:16:06 +0000 (16:16 -0700)
commit90a9e2e9167bed51401fc31041ff1aa7f52bb47a
tree3734718e8bd9af893e2de3c0e1d90c6eec49377d
parent5b82852416f9a034ebb555789ee190faa71f5faa
net: mv643xx_eth: Avoid unmapping the TSO header buffers

The buffers for the TSO headers belong to a DMA coherent region which is
allocated at ndo_open() time, and released at ndo_stop() time.

Therefore, and contrary to the TSO payload descriptor buffers, the TSO header
buffers don't need to be unmapped. This commit adds a check to detect a
TSO header buffer and explicitly prevent the unmap.

Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mv643xx_eth.c