OSDN Git Service

net/smc: Add global configure for handshake limitation by netlink
authorD. Wythe <alibuda@linux.alibaba.com>
Thu, 10 Feb 2022 09:11:38 +0000 (17:11 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Feb 2022 11:14:58 +0000 (11:14 +0000)
commitf9496b7c1b48ce02cd17a3ee88b1e049c689a222
tree3d90bd3ecb81a8a37387bc31fbcbf6e064142ebf
parenta6a6fe27bab48f0d09a64b051e7bde432fcae081
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>
include/net/netns/smc.h
include/uapi/linux/smc.h
net/smc/af_smc.c
net/smc/smc.h
net/smc/smc_netlink.c
net/smc/smc_pnet.c