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
498 int shiftlen);498 int shiftlen);
499 499
500void tcp_sock_set_cork(struct sock *sk, bool on);500void tcp_sock_set_cork(struct sock *sk, bool on);
501void tcp_sock_set_nodelay(struct sock *sk);
501 502
502#endif /* _LINUX_TCP_H */503#endif /* _LINUX_TCP_H */