| To: | Stephen Hemminger <shemminger@xxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH 1/5] TCP infrastructure split out |
| From: | Baruch Even <baruch@xxxxxxxxx> |
| Date: | Sat, 19 Mar 2005 02:16:40 +0000 |
| Cc: | Andrew Morton <akpm@xxxxxxxxx>, "David S. Miller" <davem@xxxxxxxxxxxxx>, netdev@xxxxxxxxxxx, Injong Rhee <rhee@xxxxxxxxxxxx> |
| In-reply-to: | <20050318162221.501ff05a@dxpl.pdx.osdl.net> |
| References: | <20050318162221.501ff05a@dxpl.pdx.osdl.net> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | Debian Thunderbird 1.0 (X11/20050116) |
Stephen Hemminger wrote: > @@ -1356,7 +1301,7 @@
> static inline void __tcp_enter_cwr(struct tcp_sock *tp)
> {
> tp->undo_marker = 0;
> - tp->snd_ssthresh = tcp_recalc_ssthresh(tp);
> + tp->snd_ssthresh = tp->ca_proto->ssthresh(tp);> +void tcp_ca_register(struct tcp_ca_type *ca)
> +{
> + BUG_ON(tcp_ca_find(ca->name));
> +
> + spin_lock_irq(&tcp_ca_list_lock);
> + list_add_tail_rcu(&ca->list, &tcp_ca_list);
> + spin_unlock_irq(&tcp_ca_list_lock);
> +
> + printk(KERN_INFO "TCP %s registered\n", ca->name);
> +}Since we have some calls to callbacks unprotected, shouldn't we check them on tcp_ca_register to make sure they are in fact available so that we don't needlessly crash? Baruch |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH] remove unused netlink NL_EMULATE_DEV code, jamal |
|---|---|
| Next by Date: | Re: [PATCH 2/5] TCP BIC 1.1 support, Baruch Even |
| Previous by Thread: | [PATCH 1/5] TCP infrastructure split out, Stephen Hemminger |
| Next by Thread: | [PATCH] TCP Hybla, Stephen Hemminger |
| Indexes: | [Date] [Thread] [Top] [All Lists] |