1. 16 7月, 2021 1 次提交
  2. 06 7月, 2021 2 次提交
  3. 15 6月, 2021 8 次提交
  4. 03 6月, 2021 1 次提交
  5. 26 4月, 2021 12 次提交
  6. 09 4月, 2021 4 次提交
  7. 09 2月, 2021 5 次提交
  8. 12 1月, 2021 1 次提交
    • B
      ice, xsk: clear the status bits for the next_to_use descriptor · 9e5520a5
      Björn Töpel 提交于
      stable inclusion
      from stable-5.10.4
      commit 0c3d87fa50a6c7bf68806b7406c165c5e18d3737
      bugzilla: 46903
      
      --------------------------------
      
      [ Upstream commit 8d14768a ]
      
      On the Rx side, the next_to_use index points to the next item in the
      HW ring to be refilled/allocated, and next_to_clean points to the next
      item to potentially be processed.
      
      When the HW Rx ring is fully refilled, i.e. no packets has been
      processed, the next_to_use will be next_to_clean - 1. When the ring is
      fully processed next_to_clean will be equal to next_to_use. The latter
      case is where a bug is triggered.
      
      If the next_to_use bits are not cleared, and the "fully processed"
      state is entered, a stale descriptor can be processed.
      
      The skb-path correctly clear the status bit for the next_to_use
      descriptor, but the AF_XDP zero-copy path did not do that.
      
      This change adds the status bits clearing of the next_to_use
      descriptor.
      
      Fixes: 2d4238f5 ("ice: Add support for AF_XDP")
      Signed-off-by: NBjörn Töpel <bjorn.topel@intel.com>
      Signed-off-by: NJakub Kicinski <kuba@kernel.org>
      Signed-off-by: NSasha Levin <sashal@kernel.org>
      Signed-off-by: NChen Jun <chenjun102@huawei.com>
      Acked-by: NXie XiuQi <xiexiuqi@huawei.com>
      9e5520a5
  9. 10 12月, 2020 1 次提交
  10. 10 10月, 2020 5 次提交