990-ath10k-small-buffers.patch 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. --- a/drivers/net/wireless/ath/ath10k/htt.h
  2. +++ b/drivers/net/wireless/ath/ath10k/htt.h
  3. @@ -236,7 +236,11 @@ enum htt_rx_ring_flags {
  4. };
  5. #define HTT_RX_RING_SIZE_MIN 128
  6. +#ifndef CONFIG_ATH10K_SMALLBUFFERS
  7. #define HTT_RX_RING_SIZE_MAX 2048
  8. +#else
  9. +#define HTT_RX_RING_SIZE_MAX 512
  10. +#endif
  11. #define HTT_RX_RING_SIZE HTT_RX_RING_SIZE_MAX
  12. #define HTT_RX_RING_FILL_LEVEL (((HTT_RX_RING_SIZE) / 2) - 1)
  13. #define HTT_RX_RING_FILL_LEVEL_DUAL_MAC (HTT_RX_RING_SIZE - 1)
  14. --- a/drivers/net/wireless/ath/ath10k/pci.c
  15. +++ b/drivers/net/wireless/ath/ath10k/pci.c
  16. @@ -132,7 +132,11 @@ static const struct ce_attr pci_host_ce_
  17. .flags = CE_ATTR_FLAGS,
  18. .src_nentries = 0,
  19. .src_sz_max = 2048,
  20. +#ifndef CONFIG_ATH10K_SMALLBUFFERS
  21. .dest_nentries = 512,
  22. +#else
  23. + .dest_nentries = 128,
  24. +#endif
  25. .recv_cb = ath10k_pci_htt_htc_rx_cb,
  26. },
  27. @@ -141,7 +145,11 @@ static const struct ce_attr pci_host_ce_
  28. .flags = CE_ATTR_FLAGS,
  29. .src_nentries = 0,
  30. .src_sz_max = 2048,
  31. +#ifndef CONFIG_ATH10K_SMALLBUFFERS
  32. .dest_nentries = 128,
  33. +#else
  34. + .dest_nentries = 64,
  35. +#endif
  36. .recv_cb = ath10k_pci_htc_rx_cb,
  37. },
  38. @@ -168,7 +176,11 @@ static const struct ce_attr pci_host_ce_
  39. .flags = CE_ATTR_FLAGS,
  40. .src_nentries = 0,
  41. .src_sz_max = 512,
  42. +#ifndef CONFIG_ATH10K_SMALLBUFFERS
  43. .dest_nentries = 512,
  44. +#else
  45. + .dest_nentries = 128,
  46. +#endif
  47. .recv_cb = ath10k_pci_htt_rx_cb,
  48. },
  49. @@ -193,7 +205,11 @@ static const struct ce_attr pci_host_ce_
  50. .flags = CE_ATTR_FLAGS,
  51. .src_nentries = 0,
  52. .src_sz_max = 2048,
  53. +#ifndef CONFIG_ATH10K_SMALLBUFFERS
  54. .dest_nentries = 128,
  55. +#else
  56. + .dest_nentries = 96,
  57. +#endif
  58. .recv_cb = ath10k_pci_pktlog_rx_cb,
  59. },