]> git.baikalelectronics.ru Git - kernel.git/commit
ibmvnic: Unmap DMA address of TX descriptor buffers after use
authorThomas Falcon <tlfalcon@linux.ibm.com>
Wed, 14 Aug 2019 19:57:05 +0000 (14:57 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sun, 18 Aug 2019 20:57:31 +0000 (13:57 -0700)
commitbc3df8f58487fa9237eb7c65f0fce17b03ce933e
tree7343622fab312f52ddec6e0522618afcf73bf764
parenta62d0ff37cdb8dd727feb2cabe7c2bef580cc988
ibmvnic: Unmap DMA address of TX descriptor buffers after use

There's no need to wait until a completion is received to unmap
TX descriptor buffers that have been passed to the hypervisor.
Instead unmap it when the hypervisor call has completed. This patch
avoids the possibility that a buffer will not be unmapped because
a TX completion is lost or mishandled.

Reported-by: Abdul Haleem <abdhalee@linux.vnet.ibm.com>
Tested-by: Devesh K. Singh <devesh_singh@in.ibm.com>
Signed-off-by: Thomas Falcon <tlfalcon@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c