blob: 1fc2566f9c87b23852e89a2feda5bf8d8ac0befe [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001--- a/ath10k-5.10/pci.c
2+++ b/ath10k-5.10/pci.c
3@@ -131,7 +131,11 @@ static const struct ce_attr pci_host_ce_
4 .flags = CE_ATTR_FLAGS,
5 .src_nentries = 0,
6 .src_sz_max = 2048,
7+#ifndef CONFIG_ATH10K_SMALLBUFFERS
8 .dest_nentries = 512,
9+#else
10+ .dest_nentries = 128,
11+#endif
12 .recv_cb = ath10k_pci_htt_htc_rx_cb,
13 },
14
15@@ -140,7 +144,11 @@ static const struct ce_attr pci_host_ce_
16 .flags = CE_ATTR_FLAGS,
17 .src_nentries = 0,
18 .src_sz_max = 2048,
19+#ifndef CONFIG_ATH10K_SMALLBUFFERS
20 .dest_nentries = 128,
21+#else
22+ .dest_nentries = 64,
23+#endif
24 .recv_cb = ath10k_pci_htc_rx_cb,
25 },
26
27@@ -167,7 +175,11 @@ static const struct ce_attr pci_host_ce_
28 .flags = CE_ATTR_FLAGS,
29 .src_nentries = 0,
30 .src_sz_max = 512,
31+#ifndef CONFIG_ATH10K_SMALLBUFFERS
32 .dest_nentries = 512,
33+#else
34+ .dest_nentries = 128,
35+#endif
36 .recv_cb = ath10k_pci_htt_rx_cb,
37 },
38
39@@ -192,7 +204,11 @@ static const struct ce_attr pci_host_ce_
40 .flags = CE_ATTR_FLAGS,
41 .src_nentries = 0,
42 .src_sz_max = 2048,
43+#ifndef CONFIG_ATH10K_SMALLBUFFERS
44 .dest_nentries = 128,
45+#else
46+ .dest_nentries = 96,
47+#endif
48 .recv_cb = ath10k_pci_pktlog_rx_cb,
49 },
50