mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 12:11:40 +00:00
1f2c9dd73f
Add a new sysctl: net.smc.smcr_max_conns_per_lgr, which is used to control the preferred max connections per lgr for SMC-R v2.1. The default value of this sysctl is 255, and the acceptable value ranges from 16 to 255. Signed-off-by: Guangguan Wang <guangguan.wang@linux.alibaba.com> Reviewed-by: Dust Li <dust.li@linux.alibaba.com> Signed-off-by: David S. Miller <davem@davemloft.net>
29 lines
714 B
C
29 lines
714 B
C
/* 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;
|
|
|
|
bool limit_smc_hs; /* constraint on handshake */
|
|
#ifdef CONFIG_SYSCTL
|
|
struct ctl_table_header *smc_hdr;
|
|
#endif
|
|
unsigned int sysctl_autocorking_size;
|
|
unsigned int sysctl_smcr_buf_type;
|
|
int sysctl_smcr_testlink_time;
|
|
int sysctl_wmem;
|
|
int sysctl_rmem;
|
|
int sysctl_max_links_per_lgr;
|
|
int sysctl_max_conns_per_lgr;
|
|
};
|
|
#endif
|