core.h 592 B

12345678910111213141516171819202122232425262728293031
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __NETNS_CORE_H__
  3. #define __NETNS_CORE_H__
  4. #include <linux/types.h>
  5. struct ctl_table_header;
  6. struct prot_inuse;
  7. struct cpumask;
  8. struct netns_core {
  9. /* core sysctls */
  10. struct ctl_table_header *sysctl_hdr;
  11. int sysctl_somaxconn;
  12. int sysctl_txq_reselection;
  13. int sysctl_optmem_max;
  14. u8 sysctl_txrehash;
  15. u8 sysctl_tstamp_allow_data;
  16. u8 sysctl_bypass_prot_mem;
  17. #ifdef CONFIG_PROC_FS
  18. struct prot_inuse __percpu *prot_inuse;
  19. #endif
  20. #if IS_ENABLED(CONFIG_RPS) && IS_ENABLED(CONFIG_SYSCTL)
  21. struct cpumask *rps_default_mask;
  22. #endif
  23. };
  24. #endif