Message ID | 20220405134237.16533-2-florent.fourcot@wifirst.fr (mailing list archive) |
---|---|
State | Changes Requested |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [v3,net-next,1/4] rtnetlink: enable alt_ifname for setlink/newlink | expand |
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index 6a5764745288..33dbeed7e531 100644 --- a/net/core/rtnetlink.c +++ b/net/core/rtnetlink.c @@ -3121,7 +3121,7 @@ static int rtnl_dellink(struct sk_buff *skb, struct nlmsghdr *nlh, goto out; if (!dev) { - if (tb[IFLA_IFNAME] || ifm->ifi_index > 0) + if (tb[IFLA_IFNAME] || tb[IFLA_ALT_IFNAME] || ifm->ifi_index > 0) err = -ENODEV; goto out;