atlantic: fix iommu errors
authorPavel Belous <pavel.belous@aquantia.com>
Mon, 25 Sep 2017 07:48:50 +0000 (10:48 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Sep 2017 20:44:31 +0000 (13:44 -0700)
commitc7545689244b50c562b1fbbc71905fba224c8a05
treee2aea687a71fb5df82235f822c4facd51b84cad6
parenta7bb1bea3a296549ebfc28afa76276ef392f9afa
atlantic: fix iommu errors

Call skb_frag_dma_map multiple times if tx length is greater than
device max and avoid processing tx ring until entire packet has been
sent.

Signed-off-by: Igor Russkikh <igor.russkikh@aquantia.com>
Signed-off-by: Pavel Belous <pavel.belous@aquantia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/aquantia/atlantic/aq_nic.c
drivers/net/ethernet/aquantia/atlantic/aq_ring.c
drivers/net/ethernet/aquantia/atlantic/aq_ring.h