• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/ipv4/

Lines Matching refs:ca

37 int tcp_register_congestion_control(struct tcp_congestion_ops *ca)
42 if (!ca->ssthresh || !ca->cong_avoid) {
44 ca->name);
49 if (tcp_ca_find(ca->name)) {
50 printk(KERN_NOTICE "TCP %s already registered\n", ca->name);
53 list_add_tail_rcu(&ca->list, &tcp_cong_list);
54 printk(KERN_INFO "TCP %s registered\n", ca->name);
68 void tcp_unregister_congestion_control(struct tcp_congestion_ops *ca)
71 list_del_rcu(&ca->list);
80 struct tcp_congestion_ops *ca;
85 list_for_each_entry_rcu(ca, &tcp_cong_list, list) {
86 if (try_module_get(ca->owner)) {
87 icsk->icsk_ca_ops = ca;
113 struct tcp_congestion_ops *ca;
117 ca = tcp_ca_find(name);
119 if (!ca && capable(CAP_SYS_MODULE)) {
124 ca = tcp_ca_find(name);
128 if (ca) {
129 ca->flags |= TCP_CONG_NON_RESTRICTED; /* default is always allowed */
130 list_move(&ca->list, &tcp_cong_list);
149 struct tcp_congestion_ops *ca;
153 list_for_each_entry_rcu(ca, &tcp_cong_list, list) {
156 offs == 0 ? "" : " ", ca->name);
165 struct tcp_congestion_ops *ca;
170 ca = list_entry(tcp_cong_list.next, struct tcp_congestion_ops, list);
171 strncpy(name, ca->name, TCP_CA_NAME_MAX);
178 struct tcp_congestion_ops *ca;
183 list_for_each_entry_rcu(ca, &tcp_cong_list, list) {
184 if (!(ca->flags & TCP_CONG_NON_RESTRICTED))
188 offs == 0 ? "" : " ", ca->name);
197 struct tcp_congestion_ops *ca;
208 ca = tcp_ca_find(name);
209 if (!ca) {
216 list_for_each_entry_rcu(ca, &tcp_cong_list, list)
217 ca->flags &= ~TCP_CONG_NON_RESTRICTED;
221 ca = tcp_ca_find(name);
222 WARN_ON(!ca);
223 if (ca)
224 ca->flags |= TCP_CONG_NON_RESTRICTED;
237 struct tcp_congestion_ops *ca;
241 ca = tcp_ca_find(name);
244 if (ca == icsk->icsk_ca_ops)
249 if (!ca && capable(CAP_SYS_MODULE)) {
253 ca = tcp_ca_find(name);
256 if (!ca)
259 else if (!((ca->flags & TCP_CONG_NON_RESTRICTED) || capable(CAP_NET_ADMIN)))
262 else if (!try_module_get(ca->owner))
267 icsk->icsk_ca_ops = ca;