.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * net/dccp/output.c |
---|
3 | 4 | * |
---|
4 | 5 | * An implementation of the DCCP protocol |
---|
5 | 6 | * Arnaldo Carvalho de Melo <acme@conectiva.com.br> |
---|
6 | | - * |
---|
7 | | - * This program is free software; you can redistribute it and/or |
---|
8 | | - * modify it under the terms of the GNU General Public License |
---|
9 | | - * as published by the Free Software Foundation; either version |
---|
10 | | - * 2 of the License, or (at your option) any later version. |
---|
11 | 7 | */ |
---|
12 | 8 | |
---|
13 | 9 | #include <linux/dccp.h> |
---|
.. | .. |
---|
66 | 62 | switch (dcb->dccpd_type) { |
---|
67 | 63 | case DCCP_PKT_DATA: |
---|
68 | 64 | set_ack = 0; |
---|
69 | | - /* fall through */ |
---|
| 65 | + fallthrough; |
---|
70 | 66 | case DCCP_PKT_DATAACK: |
---|
71 | 67 | case DCCP_PKT_RESET: |
---|
72 | 68 | break; |
---|
.. | .. |
---|
76 | 72 | /* Use ISS on the first (non-retransmitted) Request. */ |
---|
77 | 73 | if (icsk->icsk_retransmits == 0) |
---|
78 | 74 | dcb->dccpd_seq = dp->dccps_iss; |
---|
79 | | - /* fall through */ |
---|
| 75 | + fallthrough; |
---|
80 | 76 | |
---|
81 | 77 | case DCCP_PKT_SYNC: |
---|
82 | 78 | case DCCP_PKT_SYNCACK: |
---|
83 | 79 | ackno = dcb->dccpd_ack_seq; |
---|
84 | | - /* fall through */ |
---|
| 80 | + fallthrough; |
---|
85 | 81 | default: |
---|
86 | 82 | /* |
---|
87 | 83 | * Set owner/destructor: some skbs are allocated via |
---|
.. | .. |
---|
189 | 185 | |
---|
190 | 186 | /* And store cached results */ |
---|
191 | 187 | icsk->icsk_pmtu_cookie = pmtu; |
---|
192 | | - dp->dccps_mss_cache = cur_mps; |
---|
| 188 | + WRITE_ONCE(dp->dccps_mss_cache, cur_mps); |
---|
193 | 189 | |
---|
194 | 190 | return cur_mps; |
---|
195 | 191 | } |
---|
.. | .. |
---|
485 | 481 | case DCCP_RESET_CODE_PACKET_ERROR: |
---|
486 | 482 | dhr->dccph_reset_data[0] = rxdh->dccph_type; |
---|
487 | 483 | break; |
---|
488 | | - case DCCP_RESET_CODE_OPTION_ERROR: /* fall through */ |
---|
| 484 | + case DCCP_RESET_CODE_OPTION_ERROR: |
---|
489 | 485 | case DCCP_RESET_CODE_MANDATORY_ERROR: |
---|
490 | 486 | memcpy(dhr->dccph_reset_data, dcb->dccpd_reset_data, 3); |
---|
491 | 487 | break; |
---|