hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/net/openvswitch/vport-vxlan.c
....@@ -1,20 +1,7 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (c) 2014 Nicira, Inc.
34 * Copyright (c) 2013 Cisco Systems, Inc.
4
- *
5
- * This program is free software; you can redistribute it and/or
6
- * modify it under the terms of version 2 of the GNU General Public
7
- * License as published by the Free Software Foundation.
8
- *
9
- * This program is distributed in the hope that it will be useful, but
10
- * WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
- * 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, write to the Free Software
16
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17
- * 02110-1301, USA
185 */
196
207 #include <linux/kernel.h>
....@@ -43,7 +30,7 @@
4330 if (vxlan->cfg.flags & VXLAN_F_GBP) {
4431 struct nlattr *exts;
4532
46
- exts = nla_nest_start(skb, OVS_TUNNEL_ATTR_EXTENSION);
33
+ exts = nla_nest_start_noflag(skb, OVS_TUNNEL_ATTR_EXTENSION);
4734 if (!exts)
4835 return -EMSGSIZE;
4936
....@@ -70,8 +57,8 @@
7057 if (nla_len(attr) < sizeof(struct nlattr))
7158 return -EINVAL;
7259
73
- err = nla_parse_nested(exts, OVS_VXLAN_EXT_MAX, attr, exts_policy,
74
- NULL);
60
+ err = nla_parse_nested_deprecated(exts, OVS_VXLAN_EXT_MAX, attr,
61
+ exts_policy, NULL);
7562 if (err < 0)
7663 return err;
7764
....@@ -131,7 +118,7 @@
131118 return ERR_CAST(dev);
132119 }
133120
134
- err = dev_change_flags(dev, dev->flags | IFF_UP);
121
+ err = dev_change_flags(dev, dev->flags | IFF_UP, NULL);
135122 if (err < 0) {
136123 rtnl_delete_link(dev);
137124 rtnl_unlock();