smc.h 646 B

1234567891011121314151617181920212223242526
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __NETNS_SMC_H__
  3. #define __NETNS_SMC_H__
  4. #include <linux/mutex.h>
  5. #include <linux/percpu.h>
  6. struct smc_stats_rsn;
  7. struct smc_stats;
  8. struct netns_smc {
  9. /* per cpu counters for SMC */
  10. struct smc_stats __percpu *smc_stats;
  11. /* protect fback_rsn */
  12. struct mutex mutex_fback_rsn;
  13. struct smc_stats_rsn *fback_rsn;
  14. bool limit_smc_hs; /* constraint on handshake */
  15. #ifdef CONFIG_SYSCTL
  16. struct ctl_table_header *smc_hdr;
  17. #endif
  18. unsigned int sysctl_autocorking_size;
  19. unsigned int sysctl_smcr_buf_type;
  20. int sysctl_smcr_testlink_time;
  21. int sysctl_wmem;
  22. int sysctl_rmem;
  23. };
  24. #endif