[PATCH 0/3][SRU Bionic] hns3: avoid corruption due to ring buffer race

dann frazier dann.frazier at canonical.com
Mon Aug 19 22:11:08 UTC 2019


BugLink: https://bugs.launchpad.net/bugs/1840717

All clean cherry picks. Patch #1 is a small cleanup that allows Patch #2
to apply cleanly. Patch #3 improves the performance of Patch #2. All 3
patches were introduced in v5.2, so they've had plenty of "bake time"
together.


Yunsheng Lin (3):
  net: hns3: minor optimization for ring_space
  net: hns3: fix data race between ring->next_to_clean
  net: hns3: optimize the barrier using when cleaning TX BD

 .../net/ethernet/hisilicon/hns3/hns3_enet.c   | 35 ++++++++++++-------
 .../net/ethernet/hisilicon/hns3/hns3_enet.h   | 18 +++++-----
 2 files changed, 30 insertions(+), 23 deletions(-)

-- 
2.23.0.rc1




More information about the kernel-team mailing list