Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BBF61C74A4B for ; Mon, 13 Mar 2023 17:05:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229776AbjCMRFU (ORCPT ); Mon, 13 Mar 2023 13:05:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229792AbjCMREq (ORCPT ); Mon, 13 Mar 2023 13:04:46 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE1B66A7C; Mon, 13 Mar 2023 10:04:08 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0C39461381; Mon, 13 Mar 2023 17:02:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1F1D8C433D2; Mon, 13 Mar 2023 17:02:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1678726978; bh=xB+JXJkfRoMTJReSFxcyBf5NrKfkYEDZMDzq4QLgzOc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gdx1cZJArXlLNfUys6mf2viumj5jcQzZWFv/2wuM5JbcOHfi6Sha4u605uTeom2px chAtdg2hiRMYPnor8OPjp7L/eoOgDjT8yT0TQJAZh+odMBlyOIwv585v2vISXEv/v6 xtq//Mne1GiJ4Cr/d+kcY5vG0zAhfMp97l5CMVko= Date: Mon, 13 Mar 2023 18:02:55 +0100 From: Greg Kroah-Hartman To: Jorge Merlino Cc: "Rafael J. Wysocki" , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH] Add symlink in /sys/class/net for interface altnames Message-ID: References: <20230313164903.839-1-jorge.merlino@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230313164903.839-1-jorge.merlino@canonical.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 13, 2023 at 01:49:03PM -0300, Jorge Merlino wrote: > Currently interface altnames behave almost the same as the interface > principal name. One difference is that the not have a symlink in > /sys/class/net as the principal has. > This was mentioned as a TODO item in the original commit: > https://lore.kernel.org/netdev/20190719110029.29466-1-jiri@resnulli.us > This patch adds that symlink when an altname is created and removes it > when the altname is deleted. > > Signed-off-by: Jorge Merlino > --- > drivers/base/core.c | 22 ++++++++++++++++++++++ > include/linux/device.h | 3 +++ > net/core/dev.c | 11 +++++++++++ > 3 files changed, 36 insertions(+) > You also forgot the Documentation/ABI/ update for the new symlink :(