Message ID | 20220311030113.73384-2-sunmingbao@tom.com (mailing list archive) |
---|---|
State | Changes Requested |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | NVMe/TCP: support specifying the congestion-control | expand |
Maybe add a kerneldoc comment now that this is an exported API?
Otherwise this looks fine to me:
Reviewed-by: Christoph Hellwig <hch@lst.de>
On Fri, 11 Mar 2022 08:13:19 +0100 Christoph Hellwig <hch@lst.de> wrote: > Maybe add a kerneldoc comment now that this is an exported API? > > Otherwise this looks fine to me: > > Reviewed-by: Christoph Hellwig <hch@lst.de> accept. will add it in the next version. and will notice user "Must be called on a locked sock".
diff --git a/net/ipv4/tcp_cong.c b/net/ipv4/tcp_cong.c index db5831e6c136..5d77f3e7278e 100644 --- a/net/ipv4/tcp_cong.c +++ b/net/ipv4/tcp_cong.c @@ -383,6 +383,7 @@ int tcp_set_congestion_control(struct sock *sk, const char *name, bool load, rcu_read_unlock(); return err; } +EXPORT_SYMBOL_GPL(tcp_set_congestion_control); /* Slow start is used when congestion window is no greater than the slow start * threshold. We base on RFC2581 and also handle stretch ACKs properly.