hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/net/sctp/offload.c
....@@ -1,17 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * sctp_offload - GRO/GSO Offloading for SCTP
34 *
45 * Copyright (C) 2015, Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License as published by
8
- * the Free Software Foundation; either version 2 of the License, or
9
- * (at your option) any later version.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU General Public License for more details.
156 */
167
178 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
....@@ -103,11 +94,6 @@
10394 },
10495 };
10596
106
-static const struct skb_checksum_ops crc32c_csum_ops = {
107
- .update = sctp_csum_update,
108
- .combine = sctp_csum_combine,
109
-};
110
-
11197 int __init sctp_offload_init(void)
11298 {
11399 int ret;
....@@ -120,7 +106,7 @@
120106 if (ret)
121107 goto ipv4;
122108
123
- crc32c_csum_stub = &crc32c_csum_ops;
109
+ crc32c_csum_stub = &sctp_csum_ops;
124110 return ret;
125111
126112 ipv4: