mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 01:23:00 -04:00
[UDP]: Add memory accounting.
Signed-off-by: Takahiro Yasui <[email protected]> Signed-off-by: Hideo Aoki <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
3ab224be6d
commit
95766fff6b
7 changed files with 157 additions and 7 deletions
|
|
@ -65,6 +65,13 @@ extern rwlock_t udp_hash_lock;
|
|||
|
||||
extern struct proto udp_prot;
|
||||
|
||||
extern atomic_t udp_memory_allocated;
|
||||
|
||||
/* sysctl variables for udp */
|
||||
extern int sysctl_udp_mem[3];
|
||||
extern int sysctl_udp_rmem_min;
|
||||
extern int sysctl_udp_wmem_min;
|
||||
|
||||
struct sk_buff;
|
||||
|
||||
/*
|
||||
|
|
@ -198,4 +205,6 @@ extern void udp_proc_unregister(struct udp_seq_afinfo *afinfo);
|
|||
extern int udp4_proc_init(void);
|
||||
extern void udp4_proc_exit(void);
|
||||
#endif
|
||||
|
||||
extern void udp_init(void);
|
||||
#endif /* _UDP_H */
|
||||
|
|
|
|||
Loading…
Reference in a new issue