pastebin - collaborative debugging tool
rovema.kpaste.net RSS


igb_avb patch for Linux 5.10.x
Posted by Anonymous on Tue 21st Dec 2021 09:33
raw | new post
modification of post by Anonymous (view diff)

  1. diff -r -u igb_avb/kmod/igb_ethtool.c igb_avb/kmod/igb_ethtool.c
  2. --- igb_avb/kmod/igb_ethtool.c  2021-11-16 08:33:42.829986006 +0100
  3. +++ igb_avb/kmod/igb_ethtool.c  2021-12-21 10:21:39.807901702 +0100
  4. @@ -3144,6 +3144,7 @@
  5.  
  6.  #endif /* ETHTOOL_SCHANNELS */
  7.  static const struct ethtool_ops igb_ethtool_ops = {
  8. +       .supported_coalesce_params = ETHTOOL_COALESCE_USECS,
  9.         .get_drvinfo            = igb_get_drvinfo,
  10.         .get_regs_len           = igb_get_regs_len,
  11.         .get_regs               = igb_get_regs,
  12. diff -r -u igb_avb/kmod/igb_main.c igb_avb/kmod/igb_main.c
  13. --- igb_avb/kmod/igb_main.c     2021-11-17 09:30:40.616405653 +0100
  14. +++ igb_avb/kmod/igb_main.c     2021-12-21 10:21:39.811901636 +0100
  15. @@ -5566,7 +5566,7 @@
  16.         tx_desc->read.olinfo_status = cpu_to_le32(olinfo_status);
  17.  }
  18.  
  19. -static void igb_tx_map(struct igb_ring *tx_ring,
  20. +static int igb_tx_map(struct igb_ring *tx_ring,
  21.                        struct igb_tx_buffer *first,
  22.                        const u8 hdr_len)
  23.  {
  24. @@ -5679,7 +5679,7 @@
  25.          */
  26.         mmiowb();
  27.  
  28. -       return;
  29. +       return 0;
  30.  
  31.  dma_error:
  32.         dev_err(tx_ring->dev, "TX DMA map failed\n");
  33. @@ -5696,6 +5696,7 @@
  34.         }
  35.  
  36.         tx_ring->next_to_use = i;
  37. +       return -1;
  38.  }
  39.  
  40.  static int __igb_maybe_stop_tx(struct igb_ring *tx_ring, const u16 size)
  41. @@ -7411,12 +7412,11 @@
  42.                         break;
  43.  
  44.                 /* prevent any other reads prior to eop_desc */
  45. -#if 0
  46. -               read_barrier_depends();
  47. -#else
  48. +#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,9,0)
  49.                 smp_rmb();
  50. +#else         
  51. +               read_barrier_depends();
  52.  #endif
  53. -
  54.                 /* if DD is not set pending work has not been completed */
  55.                 if (!(eop_desc->wb.status & cpu_to_le32(E1000_TXD_STAT_DD)))
  56.                         break;
  57.  
  58.                 if (!(eop_desc->wb.status & cpu_to_le32(E1000_TXD_STAT_DD)))

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at