aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/rc80211_pid.h
diff options
context:
space:
mode:
authorMattias Nissler <mattias.nissler@gmx.de>2007-12-20 07:27:26 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 17:59:44 -0500
commit1946b74ce03c4edecabde80d027da00a7eab56ca (patch)
tree1adfba8e2a582c278acbf4c5440ac67d714c0954 /net/mac80211/rc80211_pid.h
parent12446c67fea1e5bc74c58e43ef53eea308cdda61 (diff)
rc80211-pid: export tuning parameters through debugfs
This adds all the tunable parameters used by rc80211_pid to debugfs for easy testing and tuning. Signed-off-by: Mattias Nissler <mattias.nissler@gmx.de> Signed-off-by: Stefano Brivio <stefano.brivio@polimi.it> Signed-off-by: John W. Linville <linville@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mac80211/rc80211_pid.h')
-rw-r--r--net/mac80211/rc80211_pid.h23
1 files changed, 21 insertions, 2 deletions
diff --git a/net/mac80211/rc80211_pid.h b/net/mac80211/rc80211_pid.h
index 5d0056c1513b..425eb708182a 100644
--- a/net/mac80211/rc80211_pid.h
+++ b/net/mac80211/rc80211_pid.h
@@ -119,6 +119,20 @@ struct rc_pid_events_file_info {
119 unsigned int next_entry; 119 unsigned int next_entry;
120}; 120};
121 121
122struct rc_pid_debugfs_entries {
123 struct dentry *dir;
124 struct dentry *target;
125 struct dentry *sampling_period;
126 struct dentry *coeff_p;
127 struct dentry *coeff_i;
128 struct dentry *coeff_d;
129 struct dentry *smoothing_shift;
130 struct dentry *sharpen_factor;
131 struct dentry *sharpen_duration;
132 struct dentry *norm_offset;
133 struct dentry *fast_start;
134};
135
122void rate_control_pid_event_tx_status(struct rc_pid_event_buffer *buf, 136void rate_control_pid_event_tx_status(struct rc_pid_event_buffer *buf,
123 struct ieee80211_tx_status *stat); 137 struct ieee80211_tx_status *stat);
124 138
@@ -222,8 +236,8 @@ struct rc_pid_info {
222 /* Exponential averaging shift. */ 236 /* Exponential averaging shift. */
223 unsigned int smoothing_shift; 237 unsigned int smoothing_shift;
224 238
225 /* Sharpening shift and duration. */ 239 /* Sharpening factor and duration. */
226 unsigned int sharpen_shift; 240 unsigned int sharpen_factor;
227 unsigned int sharpen_duration; 241 unsigned int sharpen_duration;
228 242
229 /* Normalization offset. */ 243 /* Normalization offset. */
@@ -237,6 +251,11 @@ struct rc_pid_info {
237 251
238 /* Index of the last used rate. */ 252 /* Index of the last used rate. */
239 int oldrate; 253 int oldrate;
254
255#ifdef CONFIG_MAC80211_DEBUGFS
256 /* Debugfs entries created for the parameters above. */
257 struct rc_pid_debugfs_entries dentries;
258#endif
240}; 259};
241 260
242#endif /* RC80211_PID_H */ 261#endif /* RC80211_PID_H */