Messages in this thread | | | Date | Tue, 25 Sep 2018 10:43:36 -0700 (PDT) | Subject | Re: [PATCH net] net: hns: fix for unmapping problem when SMMU is on | From | David Miller <> |
| |
From: Salil Mehta <salil.mehta@huawei.com> Date: Tue, 25 Sep 2018 10:21:55 +0100
> From: Yunsheng Lin <linyunsheng@huawei.com> > > 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@huawei.com> > Signed-off-by: Peng Li <lipeng321@huawei.com> > Reviewed-by: Yisen Zhuang <yisen.zhuang@huawei.com> > Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Applied, thank you.
| |