]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Sep 2019 09:35:18 +0000 (10:35 +0100)
commit1915dd1826be7a7f538945b87b655629272fc9ef
tree8a5abd084ea56d81e6cef6156e978c40bc75478a
parent895a07a5a03abb77a226cf6e311895ea22d9e62b
ibmvnic: Unmap DMA address of TX descriptor buffers after use

[ Upstream commit 80f0fe0934cd3daa13a5e4d48a103f469115b160 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/ibm/ibmvnic.c