summaryrefslogtreecommitdiffstats
path: root/include/net/netns
diff options
context:
space:
mode:
authorD. Wythe <alibuda@linux.alibaba.com>2022-02-10 10:11:38 +0100
committerDavid S. Miller <davem@davemloft.net>2022-02-11 12:14:58 +0100
commitf9496b7c1b48ce02cd17a3ee88b1e049c689a222 (patch)
tree3d90bd3ecb81a8a37387bc31fbcbf6e064142ebf /include/net/netns
parentnet/smc: Dynamic control handshake limitation by socket options (diff)
downloadlinux-f9496b7c1b48ce02cd17a3ee88b1e049c689a222.tar.xz
linux-f9496b7c1b48ce02cd17a3ee88b1e049c689a222.zip
net/smc: Add global configure for handshake limitation by netlink
Although we can control SMC handshake limitation through socket options, which means that applications who need it must modify their code. It's quite troublesome for many existing applications. This patch modifies the global default value of SMC handshake limitation through netlink, providing a way to put constraint on handshake without modifies any code for applications. Suggested-by: Tony Lu <tonylu@linux.alibaba.com> Signed-off-by: D. Wythe <alibuda@linux.alibaba.com> Reviewed-by: Tony Lu <tonylu@linux.alibaba.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/netns')
-rw-r--r--include/net/netns/smc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/netns/smc.h b/include/net/netns/smc.h
index ea8a9cf2619b..47b166684fd8 100644
--- a/include/net/netns/smc.h
+++ b/include/net/netns/smc.h
@@ -12,5 +12,7 @@ struct netns_smc {
/* protect fback_rsn */
struct mutex mutex_fback_rsn;
struct smc_stats_rsn *fback_rsn;
+
+ bool limit_smc_hs; /* constraint on handshake */
};
#endif