517be89dabbc315a702f999a9d205818fb4ee438
[openwrt/openwrt.git] / package / kernel / ath10k-ct / patches / 960-0011-ath10k-limit-pci-buffer-size.patch
1 --- a/ath10k-4.19/pci.c
2 +++ b/ath10k-4.19/pci.c
3 @@ -142,7 +142,11 @@ static struct ce_attr host_ce_config_wla
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 @@ -151,7 +155,11 @@ static struct ce_attr host_ce_config_wla
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 @@ -178,7 +186,11 @@ static struct ce_attr host_ce_config_wla
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 @@ -203,7 +215,11 @@ static struct ce_attr host_ce_config_wla
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
51 --- a/ath10k-5.2/pci.c
52 +++ b/ath10k-5.2/pci.c
53 @@ -131,7 +131,11 @@ static struct ce_attr host_ce_config_wla
54 .flags = CE_ATTR_FLAGS,
55 .src_nentries = 0,
56 .src_sz_max = 2048,
57 +#ifndef CONFIG_ATH10K_SMALLBUFFERS
58 .dest_nentries = 512,
59 +#else
60 + .dest_nentries = 128,
61 +#endif
62 .recv_cb = ath10k_pci_htt_htc_rx_cb,
63 },
64
65 @@ -140,7 +144,11 @@ static struct ce_attr host_ce_config_wla
66 .flags = CE_ATTR_FLAGS,
67 .src_nentries = 0,
68 .src_sz_max = 2048,
69 +#ifndef CONFIG_ATH10K_SMALLBUFFERS
70 .dest_nentries = 128,
71 +#else
72 + .dest_nentries = 64,
73 +#endif
74 .recv_cb = ath10k_pci_htc_rx_cb,
75 },
76
77 @@ -167,7 +175,11 @@ static struct ce_attr host_ce_config_wla
78 .flags = CE_ATTR_FLAGS,
79 .src_nentries = 0,
80 .src_sz_max = 512,
81 +#ifndef CONFIG_ATH10K_SMALLBUFFERS
82 .dest_nentries = 512,
83 +#else
84 + .dest_nentries = 128,
85 +#endif
86 .recv_cb = ath10k_pci_htt_rx_cb,
87 },
88
89 @@ -192,7 +204,11 @@ static struct ce_attr host_ce_config_wla
90 .flags = CE_ATTR_FLAGS,
91 .src_nentries = 0,
92 .src_sz_max = 2048,
93 +#ifndef CONFIG_ATH10K_SMALLBUFFERS
94 .dest_nentries = 128,
95 +#else
96 + .dest_nentries = 96,
97 +#endif
98 .recv_cb = ath10k_pci_pktlog_rx_cb,
99 },
100