History

tcp: add tcp_sock_set_nodelay

Add a helper to directly set the TCP_NODELAY sockopt from kernel space without going through a fake uaccess. Cleanup the callers to avoid pointless wrappers now that this is a simple function call.

Christoph Hellwig committed 6 years ago

Commit 12abc5e1 parent db1053816 files · +49 −127Browse files

Showing the changes to include/linux (1 of 16 files). Show all

Unified · Split

include/linux/tcp.h+1−0
@@ -498,5 +498,6 @@ int tcp_skb_shift(struct sk_buff *to, struct sk_buff *from, int pcount, · 497 unmodified lines
498498 int shiftlen);
499499
500500 void tcp_sock_set_cork(struct sock *sk, bool on);
501+void tcp_sock_set_nodelay(struct sock *sk);
501502
502503 #endif /* _LINUX_TCP_H */