hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/net/bridge/br_vlan_tunnel.c
....@@ -1,13 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Bridge per vlan tunnel port dst_metadata handling code
34 *
45 * Authors:
56 * Roopa Prabhu <roopa@cumulusnetworks.com>
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.
117 */
128
139 #include <linux/kernel.h>
....@@ -34,7 +30,6 @@
3430 .key_offset = offsetof(struct net_bridge_vlan, tinfo.tunnel_id),
3531 .key_len = sizeof(__be64),
3632 .nelem_hint = 3,
37
- .locks_mul = 1,
3833 .obj_cmpfn = br_vlan_tunid_cmp,
3934 .automatic_shrinking = true,
4035 };
....@@ -99,7 +94,8 @@
9994 /* Must be protected by RTNL.
10095 * Must be called with vid in range from 1 to 4094 inclusive.
10196 */
102
-int nbp_vlan_tunnel_info_add(struct net_bridge_port *port, u16 vid, u32 tun_id)
97
+int nbp_vlan_tunnel_info_add(const struct net_bridge_port *port, u16 vid,
98
+ u32 tun_id)
10399 {
104100 struct net_bridge_vlan_group *vg;
105101 struct net_bridge_vlan *vlan;
....@@ -117,7 +113,7 @@
117113 /* Must be protected by RTNL.
118114 * Must be called with vid in range from 1 to 4094 inclusive.
119115 */
120
-int nbp_vlan_tunnel_info_delete(struct net_bridge_port *port, u16 vid)
116
+int nbp_vlan_tunnel_info_delete(const struct net_bridge_port *port, u16 vid)
121117 {
122118 struct net_bridge_vlan_group *vg;
123119 struct net_bridge_vlan *v;