From: Oliver Hartkopp <socketcan@hartkopp.net>
To: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Cc: ulrich.gemkow@ikr.uni-stuttgart.de, davem@davemloft.net,
netdev@vger.kernel.org, shemminger@vyatta.com
Subject: Re: [PATCH net] Revert "dev: set iflink to 0 for virtual interfaces"
Date: Mon, 06 Jul 2015 18:38:06 +0200 [thread overview]
Message-ID: <559AAEEE.5060208@hartkopp.net> (raw)
In-Reply-To: <1436196310-4090-1-git-send-email-nicolas.dichtel@6wind.com>
On 06.07.2015 17:25, Nicolas Dichtel wrote:
> This reverts commit e1622baf54df8cc958bf29d71de5ad545ea7d93c.
>
> The side effect of this commit is to add a '@NONE' after each virtual
> interface name with a 'ip link'. It may break existing scripts.
>
> Reported-by: Olivier Hartkopp <socketcan@hartkopp.net>
^^^
> Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Tested-by: Oliver Hartkopp <socketcan@hartkopp.net>
Thanks Nicolas!
BR
Oliver
> ---
> net/core/dev.c | 4 ----
> 1 file changed, 4 deletions(-)
>
> diff --git a/net/core/dev.c b/net/core/dev.c
> index 6778a9999d52..72e0a4331154 100644
> --- a/net/core/dev.c
> +++ b/net/core/dev.c
> @@ -677,10 +677,6 @@ int dev_get_iflink(const struct net_device *dev)
> if (dev->netdev_ops && dev->netdev_ops->ndo_get_iflink)
> return dev->netdev_ops->ndo_get_iflink(dev);
>
> - /* If dev->rtnl_link_ops is set, it's a virtual interface. */
> - if (dev->rtnl_link_ops)
> - return 0;
> -
> return dev->ifindex;
> }
> EXPORT_SYMBOL(dev_get_iflink);
>
next prev parent reply other threads:[~2015-07-06 16:38 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-14 10:00 displayed name changed in ip link show for bridge- and other interfaces Ulrich Gemkow
2015-06-14 18:50 ` Oliver Hartkopp
2015-06-14 19:12 ` Oliver Hartkopp
2015-06-15 7:23 ` Nicolas Dichtel
2015-06-15 9:13 ` Nicolas Dichtel
2015-06-15 15:54 ` Stephen Hemminger
2015-06-16 17:35 ` Oliver Hartkopp
2015-06-16 17:47 ` Oliver Hartkopp
2015-06-17 7:26 ` Nicolas Dichtel
2015-06-20 22:58 ` Oliver Hartkopp
2015-06-23 12:48 ` Nicolas Dichtel
2015-06-23 17:21 ` Oliver Hartkopp
2015-07-06 15:25 ` [PATCH net] Revert "dev: set iflink to 0 for virtual interfaces" Nicolas Dichtel
2015-07-06 16:38 ` Oliver Hartkopp [this message]
2015-07-07 7:44 ` [PATCH net v2] " Nicolas Dichtel
2015-07-08 22:52 ` [PATCH net] " David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=559AAEEE.5060208@hartkopp.net \
--to=socketcan@hartkopp.net \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=nicolas.dichtel@6wind.com \
--cc=shemminger@vyatta.com \
--cc=ulrich.gemkow@ikr.uni-stuttgart.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.