From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 65A7DC433FF for ; Mon, 12 Aug 2019 01:37:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2C4AE2084D for ; Mon, 12 Aug 2019 01:37:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="fA20yvEL" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726758AbfHLBh3 (ORCPT ); Sun, 11 Aug 2019 21:37:29 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:35622 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726200AbfHLBh2 (ORCPT ); Sun, 11 Aug 2019 21:37:28 -0400 Received: by mail-ot1-f68.google.com with SMTP id g17so2501317otl.2 for ; Sun, 11 Aug 2019 18:37:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:from:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=lGmeiupklCEvwpqaN75h65oe9dnCdi0AMir4+yMeSZM=; b=fA20yvELRY1UKXe+meBYwgPm2fh4pIppGXCPBxIq4D1Cn032F058XrI8moBgaiFS9o YFoiXO3ZUZEDrD2SfAf7N2aEpXFNWUhAiwF7OAlA8eGo5xCcQ+eS/MMk5aDcYKlJx0M1 CejBU/xTDHi2JajODMIPziGbdz99L+3udQsYHV2pblzm2l1/txzmzXOVles77bt92Hv5 6W+DJqleCnz+ht3kd9VnKo1S1NhudUl0D/CT70chgq7WPO81PTGhIuSWZt7CqsSnp+x4 6A9v2oXyWjEfj/ZSoBq2Unm8ElBsH7Ww7/e+9nA4GWJ9zkrTYBnN8xhCLQ8Qm70CKW/V x1Uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=lGmeiupklCEvwpqaN75h65oe9dnCdi0AMir4+yMeSZM=; b=bu37KHAQIsv6O5eLlaUbVSONivonRINSgugVSpgNMtE0gWHXO5a9bEN5vdTz7L1Sxa a2frjxrHOeGCXApS1GMnwA4icrFcZa289j1FZ8dhQ0BV7A+cB6b3KOPQZdLxaGwQZ37/ IcgcgTlHjzsJQQuoevdY1cjfuYF9EtICC2wDFdp3pqgR3/PCd5QZbx4X8Y1Gx/BZbo0B WBC5NGiu/m76oWh9VZR4Il7O49awvTVBJkoShQeOuBse5sKZC/QmatfFZEn0QeN40Sch fLQFuHWpqRHFQQa8/GN2WXuHpqMmkEzy7Us91wMUHFZp6WyGnI27Jn/769P2Qg5xDcga hiZA== X-Gm-Message-State: APjAAAUgarpAqL9TquoKxKkZaC7pEUutKt34hJtdWolgEbkmaClTtPRc gzv0duw8KjZ1GhgWjaGI8io= X-Google-Smtp-Source: APXvYqwimJ44iI0Hrea8734cPlCaaIF9UN+p3Lg1ne1PdJwDFdYZd/pB+VW88ShadGBCbk75XKYlrQ== X-Received: by 2002:a5d:9d89:: with SMTP id 9mr16302335ion.212.1565573847856; Sun, 11 Aug 2019 18:37:27 -0700 (PDT) Received: from ?IPv6:2601:282:800:fd80:1576:e0d9:527d:c4bb? ([2601:282:800:fd80:1576:e0d9:527d:c4bb]) by smtp.googlemail.com with ESMTPSA id n22sm148358027iob.37.2019.08.11.18.37.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 11 Aug 2019 18:37:27 -0700 (PDT) Subject: Re: [patch net-next rfc 3/7] net: rtnetlink: add commands to add and delete alternative ifnames From: David Ahern To: Jiri Pirko Cc: Roopa Prabhu , netdev , David Miller , Jakub Kicinski , Stephen Hemminger , dcbw@redhat.com, Michal Kubecek , Andrew Lunn , parav@mellanox.com, Saeed Mahameed , mlxsw References: <20190719110029.29466-1-jiri@resnulli.us> <20190719110029.29466-4-jiri@resnulli.us> <20190809062558.GA2344@nanopsycho.orion> <5e7270a1-8de6-1563-4e42-df37da161b98@gmail.com> <20190810063047.GC2344@nanopsycho.orion> Message-ID: <3b1e8952-e4c2-9be5-0b5c-d3ce4127cbe2@gmail.com> Date: Sun, 11 Aug 2019 19:37:26 -0600 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On 8/11/19 7:34 PM, David Ahern wrote: > On 8/10/19 12:30 AM, Jiri Pirko wrote: >> Could you please write me an example message of add/remove? > > altnames are for existing netdevs, yes? existing netdevs have an id and > a name - 2 existing references for identifying the existing netdev for > which an altname will be added. Even using the altname as the main > 'handle' for a setlink change, I see no reason why the GETLINK api can > not take an the IFLA_ALT_IFNAME and return the full details of the > device if the altname is unique. > > So, what do the new RTM commands give you that you can not do with > RTM_*LINK? > To put this another way, the ALT_NAME is an attribute of an object - a LINK. It is *not* a separate object which requires its own set of commands for manipulating.