Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef __NETNS_SMC_H__
0003 #define __NETNS_SMC_H__
0004 #include <linux/mutex.h>
0005 #include <linux/percpu.h>
0006 
0007 struct smc_stats_rsn;
0008 struct smc_stats;
0009 struct netns_smc {
0010     /* per cpu counters for SMC */
0011     struct smc_stats __percpu   *smc_stats;
0012     /* protect fback_rsn */
0013     struct mutex            mutex_fback_rsn;
0014     struct smc_stats_rsn        *fback_rsn;
0015 
0016     bool                limit_smc_hs;   /* constraint on handshake */
0017 #ifdef CONFIG_SYSCTL
0018     struct ctl_table_header     *smc_hdr;
0019 #endif
0020     unsigned int            sysctl_autocorking_size;
0021     unsigned int            sysctl_smcr_buf_type;
0022 };
0023 #endif