]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - include/net/tcp.h
tcp: add TCPMemoryPressuresChrono counter
[karo-tx-linux.git] / include / net / tcp.h
index aec092560d9bd60d4323fa6d9ced74f17026b5a7..3ab677d11d026e77deb3e7ec4fc2e0cf376af4ad 100644 (file)
@@ -276,7 +276,7 @@ extern int sysctl_tcp_pacing_ca_ratio;
 
 extern atomic_long_t tcp_memory_allocated;
 extern struct percpu_counter tcp_sockets_allocated;
-extern int tcp_memory_pressure;
+extern unsigned long tcp_memory_pressure;
 
 /* optimized version of sk_under_memory_pressure() for TCP sockets */
 static inline bool tcp_under_memory_pressure(const struct sock *sk)
@@ -1320,6 +1320,7 @@ extern void tcp_openreq_init_rwin(struct request_sock *req,
                                  const struct dst_entry *dst);
 
 void tcp_enter_memory_pressure(struct sock *sk);
+void tcp_leave_memory_pressure(struct sock *sk);
 
 static inline int keepalive_intvl_when(const struct tcp_sock *tp)
 {