2021-06-16 16:52:58 +02:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
#ifndef __NETNS_SMC_H__
|
|
|
|
#define __NETNS_SMC_H__
|
|
|
|
#include <linux/mutex.h>
|
|
|
|
#include <linux/percpu.h>
|
|
|
|
|
|
|
|
struct smc_stats_rsn;
|
|
|
|
struct smc_stats;
|
|
|
|
struct netns_smc {
|
|
|
|
/* per cpu counters for SMC */
|
|
|
|
struct smc_stats __percpu *smc_stats;
|
|
|
|
/* protect fback_rsn */
|
|
|
|
struct mutex mutex_fback_rsn;
|
|
|
|
struct smc_stats_rsn *fback_rsn;
|
2022-02-10 17:11:38 +08:00
|
|
|
|
|
|
|
bool limit_smc_hs; /* constraint on handshake */
|
2022-03-01 17:43:56 +08:00
|
|
|
#ifdef CONFIG_SYSCTL
|
|
|
|
struct ctl_table_header *smc_hdr;
|
|
|
|
#endif
|
2022-03-01 17:43:58 +08:00
|
|
|
unsigned int sysctl_autocorking_size;
|
2022-07-14 17:44:02 +08:00
|
|
|
unsigned int sysctl_smcr_buf_type;
|
2022-09-20 17:52:21 +08:00
|
|
|
int sysctl_smcr_testlink_time;
|
2022-09-20 17:52:22 +08:00
|
|
|
int sysctl_wmem;
|
|
|
|
int sysctl_rmem;
|
2023-11-22 21:52:57 +08:00
|
|
|
int sysctl_max_links_per_lgr;
|
2023-11-22 21:52:58 +08:00
|
|
|
int sysctl_max_conns_per_lgr;
|
2021-06-16 16:52:58 +02:00
|
|
|
};
|
|
|
|
#endif
|