xref: /kernel/linux/linux-6.6/include/net/netns/smc.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-6.6/include/net/netns/
162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci#ifndef __NETNS_SMC_H__
362306a36Sopenharmony_ci#define __NETNS_SMC_H__
462306a36Sopenharmony_ci#include <linux/mutex.h>
562306a36Sopenharmony_ci#include <linux/percpu.h>
662306a36Sopenharmony_ci
762306a36Sopenharmony_cistruct smc_stats_rsn;
862306a36Sopenharmony_cistruct smc_stats;
962306a36Sopenharmony_cistruct netns_smc {
1062306a36Sopenharmony_ci	/* per cpu counters for SMC */
1162306a36Sopenharmony_ci	struct smc_stats __percpu	*smc_stats;
1262306a36Sopenharmony_ci	/* protect fback_rsn */
1362306a36Sopenharmony_ci	struct mutex			mutex_fback_rsn;
1462306a36Sopenharmony_ci	struct smc_stats_rsn		*fback_rsn;
1562306a36Sopenharmony_ci
1662306a36Sopenharmony_ci	bool				limit_smc_hs;	/* constraint on handshake */
1762306a36Sopenharmony_ci#ifdef CONFIG_SYSCTL
1862306a36Sopenharmony_ci	struct ctl_table_header		*smc_hdr;
1962306a36Sopenharmony_ci#endif
2062306a36Sopenharmony_ci	unsigned int			sysctl_autocorking_size;
2162306a36Sopenharmony_ci	unsigned int			sysctl_smcr_buf_type;
2262306a36Sopenharmony_ci	int				sysctl_smcr_testlink_time;
2362306a36Sopenharmony_ci	int				sysctl_wmem;
2462306a36Sopenharmony_ci	int				sysctl_rmem;
2562306a36Sopenharmony_ci};
2662306a36Sopenharmony_ci#endif
27

Indexes created Thu Nov 07 10:32:03 CST 2024