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.
Showing the changes to include/linux (1 of 16 files). Show all
Unified · Split
| @@ -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 | ||
| 500 | void tcp_sock_set_cork(struct sock *sk, bool on); | 500 | void tcp_sock_set_cork(struct sock *sk, bool on); |
| 501 | void tcp_sock_set_nodelay(struct sock *sk); | ||
| 501 | 502 | ||
| 502 | #endif /* _LINUX_TCP_H */ | 503 | #endif /* _LINUX_TCP_H */ |