linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/5] Some cleanup and bugfix for desc filling
@ 2018-10-16 11:58 Yunsheng Lin
  2018-10-16 11:58 ` [PATCH net-next 1/5] net: hns3: remove hns3_fill_desc_tso Yunsheng Lin
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Yunsheng Lin @ 2018-10-16 11:58 UTC (permalink / raw)
  To: davem
  Cc: huangdaode, xuwei5, liguozhu, Yisen.Zhuang, john.garry, linuxarm,
	yisen.zhuang, salil.mehta, lipeng321, netdev, linux-kernel

When retransmiting packets, skb_cow_head which is called in
hns3_set_tso may clone a new header. And driver will clear the
checksum of the header after doing DMA map, so HW will read the
old header whose L3 checksum is not cleared and calculate a
wrong L3 checksum.

Also When sending a big fragment using multiple buffer descriptor,
hns3 does one maping, but do multiple unmapping when tx is done,
which may cause unmapping problem.

This patchset does some cleanup before fixing the above problem.

Fuyun Liang (3):
  net: hns3: add handling for big TX fragment
  net: hns3: rename hns_nic_dma_unmap
  net: hns3: fix for multiple unmapping DMA problem

Peng Li (2):
  net: hns3: remove hns3_fill_desc_tso
  net: hns3: move DMA map into hns3_fill_desc

 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 137 +++++++++++-------------
 drivers/net/ethernet/hisilicon/hns3/hns3_enet.h |   3 +-
 2 files changed, 62 insertions(+), 78 deletions(-)

-- 
1.9.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-10-16 17:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-16 11:58 [PATCH net-next 0/5] Some cleanup and bugfix for desc filling Yunsheng Lin
2018-10-16 11:58 ` [PATCH net-next 1/5] net: hns3: remove hns3_fill_desc_tso Yunsheng Lin
2018-10-16 11:58 ` [PATCH net-next 2/5] net: hns3: move DMA map into hns3_fill_desc Yunsheng Lin
2018-10-16 11:58 ` [PATCH net-next 3/5] net: hns3: add handling for big TX fragment Yunsheng Lin
2018-10-16 11:58 ` [PATCH net-next 4/5] net: hns3: rename hns_nic_dma_unmap Yunsheng Lin
2018-10-16 11:58 ` [PATCH net-next 5/5] net: hns3: fix for multiple unmapping DMA problem Yunsheng Lin
2018-10-16 17:10 ` [PATCH net-next 0/5] Some cleanup and bugfix for desc filling David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).