| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (c) 2014 Nicira, Inc. |
|---|
| 3 | 4 | * 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 |
|---|
| 18 | 5 | */ |
|---|
| 19 | 6 | |
|---|
| 20 | 7 | #include <linux/kernel.h> |
|---|
| .. | .. |
|---|
| 43 | 30 | if (vxlan->cfg.flags & VXLAN_F_GBP) { |
|---|
| 44 | 31 | struct nlattr *exts; |
|---|
| 45 | 32 | |
|---|
| 46 | | - exts = nla_nest_start(skb, OVS_TUNNEL_ATTR_EXTENSION); |
|---|
| 33 | + exts = nla_nest_start_noflag(skb, OVS_TUNNEL_ATTR_EXTENSION); |
|---|
| 47 | 34 | if (!exts) |
|---|
| 48 | 35 | return -EMSGSIZE; |
|---|
| 49 | 36 | |
|---|
| .. | .. |
|---|
| 70 | 57 | if (nla_len(attr) < sizeof(struct nlattr)) |
|---|
| 71 | 58 | return -EINVAL; |
|---|
| 72 | 59 | |
|---|
| 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); |
|---|
| 75 | 62 | if (err < 0) |
|---|
| 76 | 63 | return err; |
|---|
| 77 | 64 | |
|---|
| .. | .. |
|---|
| 131 | 118 | return ERR_CAST(dev); |
|---|
| 132 | 119 | } |
|---|
| 133 | 120 | |
|---|
| 134 | | - err = dev_change_flags(dev, dev->flags | IFF_UP); |
|---|
| 121 | + err = dev_change_flags(dev, dev->flags | IFF_UP, NULL); |
|---|
| 135 | 122 | if (err < 0) { |
|---|
| 136 | 123 | rtnl_delete_link(dev); |
|---|
| 137 | 124 | rtnl_unlock(); |
|---|