We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40dddd4 commit 6fd27eaCopy full SHA for 6fd27ea
net/smc/smc_inet.c
@@ -108,12 +108,23 @@ static struct inet_protosw smc_inet6_protosw = {
108
};
109
#endif /* CONFIG_IPV6 */
110
111
+static unsigned int smc_sync_mss(struct sock *sk, u32 pmtu)
112
+{
113
+ /* No need pass it through to clcsock, mss can always be set by
114
+ * sock_create_kern or smc_setsockopt.
115
+ */
116
+ return 0;
117
+}
118
+
119
static int smc_inet_init_sock(struct sock *sk)
120
{
121
struct net *net = sock_net(sk);
122
123
/* init common smc sock */
124
smc_sk_init(net, sk, IPPROTO_SMC);
125
126
+ inet_csk(sk)->icsk_sync_mss = smc_sync_mss;
127
128
/* create clcsock */
129
return smc_create_clcsk(net, sk, sk->sk_family);
130
}
0 commit comments