| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * sctp_offload - GRO/GSO Offloading for SCTP |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * 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. |
|---|
| 15 | 6 | */ |
|---|
| 16 | 7 | |
|---|
| 17 | 8 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
|---|
| .. | .. |
|---|
| 103 | 94 | }, |
|---|
| 104 | 95 | }; |
|---|
| 105 | 96 | |
|---|
| 106 | | -static const struct skb_checksum_ops crc32c_csum_ops = { |
|---|
| 107 | | - .update = sctp_csum_update, |
|---|
| 108 | | - .combine = sctp_csum_combine, |
|---|
| 109 | | -}; |
|---|
| 110 | | - |
|---|
| 111 | 97 | int __init sctp_offload_init(void) |
|---|
| 112 | 98 | { |
|---|
| 113 | 99 | int ret; |
|---|
| .. | .. |
|---|
| 120 | 106 | if (ret) |
|---|
| 121 | 107 | goto ipv4; |
|---|
| 122 | 108 | |
|---|
| 123 | | - crc32c_csum_stub = &crc32c_csum_ops; |
|---|
| 109 | + crc32c_csum_stub = &sctp_csum_ops; |
|---|
| 124 | 110 | return ret; |
|---|
| 125 | 111 | |
|---|
| 126 | 112 | ipv4: |
|---|