hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/net/ipv6/xfrm6_tunnel.c
....@@ -1,24 +1,11 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Copyright (C)2003,2004 USAGI/WIDE Project
3
- *
4
- * This program is free software; you can redistribute it and/or modify
5
- * it under the terms of the GNU General Public License as published by
6
- * the Free Software Foundation; either version 2 of the License, or
7
- * (at your option) any later version.
8
- *
9
- * This program is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU General Public License for more details.
13
- *
14
- * You should have received a copy of the GNU General Public License
15
- * along with this program; if not, see <http://www.gnu.org/licenses/>.
164 *
175 * Authors Mitsuru KANDA <mk@linux-ipv6.org>
186 * YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
197 *
208 * Based on net/ipv4/xfrm4_tunnel.c
21
- *
229 */
2310 #include <linux/module.h>
2411 #include <linux/xfrm.h>
....@@ -91,7 +78,7 @@
9178
9279 hlist_for_each_entry_rcu(x6spi,
9380 &xfrm6_tn->spi_byaddr[xfrm6_tunnel_spi_hash_byaddr(saddr)],
94
- list_byaddr) {
81
+ list_byaddr, lockdep_is_held(&xfrm6_tunnel_spi_lock)) {
9582 if (xfrm6_addr_equal(&x6spi->addr, saddr))
9683 return x6spi;
9784 }
....@@ -316,13 +303,13 @@
316303 static struct xfrm6_tunnel xfrm6_tunnel_handler __read_mostly = {
317304 .handler = xfrm6_tunnel_rcv,
318305 .err_handler = xfrm6_tunnel_err,
319
- .priority = 2,
306
+ .priority = 3,
320307 };
321308
322309 static struct xfrm6_tunnel xfrm46_tunnel_handler __read_mostly = {
323310 .handler = xfrm6_tunnel_rcv,
324311 .err_handler = xfrm6_tunnel_err,
325
- .priority = 2,
312
+ .priority = 3,
326313 };
327314
328315 static int __net_init xfrm6_tunnel_net_init(struct net *net)