diff options
author | Alexander Aring <aahringo@redhat.com> | 2020-06-26 13:26:49 -0400 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2020-08-06 10:30:51 -0500 |
commit | a5b7ab6352bfaab6eec4df6618a135341d72c247 (patch) | |
tree | 719978ef20c2fbfe533ca5dbefadf97e0056cee1 /fs/dlm/lowcomms.c | |
parent | 84d1c617402e7e67fc95ab2384da8dae7d1b0efe (diff) | |
download | lwn-a5b7ab6352bfaab6eec4df6618a135341d72c247.tar.gz lwn-a5b7ab6352bfaab6eec4df6618a135341d72c247.zip |
fs: dlm: set skb mark for listen socket
This patch adds support to set the skb mark value for the DLM listen
tcp and sctp sockets. The mark value will be offered as cluster
configuration. At creation time of the listen socket it will be set as
socket option.
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'fs/dlm/lowcomms.c')
-rw-r--r-- | fs/dlm/lowcomms.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/dlm/lowcomms.c b/fs/dlm/lowcomms.c index 3543a8fec907..eaedad7d069a 100644 --- a/fs/dlm/lowcomms.c +++ b/fs/dlm/lowcomms.c @@ -1111,6 +1111,8 @@ static struct socket *tcp_create_listen_sock(struct connection *con, goto create_out; } + sock_set_mark(sock->sk, dlm_config.ci_mark); + /* Turn off Nagle's algorithm */ tcp_sock_set_nodelay(sock->sk); @@ -1185,6 +1187,7 @@ static int sctp_listen_for_all(void) } sock_set_rcvbuf(sock->sk, NEEDED_RMEM); + sock_set_mark(sock->sk, dlm_config.ci_mark); sctp_sock_set_nodelay(sock->sk); write_lock_bh(&sock->sk->sk_callback_lock); |