Re: [PATCH net] net: hns: fix for unmapping problem when SMMU is on

From: David Miller
Date: Tue Sep 25 2018 - 13:43:40 EST

From: Salil Mehta <salil.mehta@xxxxxxxxxx>
Date: Tue, 25 Sep 2018 10:21:55 +0100

> From: Yunsheng Lin <linyunsheng@xxxxxxxxxx>
> If SMMU is on, there is more likely that skb_shinfo(skb)->frags[i]
> can not send by a single BD. when this happen, the
> hns_nic_net_xmit_hw function map the whole data in a frags using
> skb_frag_dma_map, but unmap each BD' data individually when tx is
> done, which causes problem when SMMU is on.
> This patch fixes this problem by ummapping the whole data in a
> frags when tx is done.
> Signed-off-by: Yunsheng Lin <linyunsheng@xxxxxxxxxx>
> Signed-off-by: Peng Li <lipeng321@xxxxxxxxxx>
> Reviewed-by: Yisen Zhuang <yisen.zhuang@xxxxxxxxxx>
> Signed-off-by: Salil Mehta <salil.mehta@xxxxxxxxxx>

Applied, thank you.