From: David Ahern <dsahern@gmail.com>
To: Siwei Liu <loseweigh@gmail.com>
Cc: Jiri Pirko <jiri@resnulli.us>, Si-Wei Liu <si-wei.liu@oracle.com>,
"Michael S. Tsirkin" <mst@redhat.com>,
Stephen Hemminger <stephen@networkplumber.org>,
Alexander Duyck <alexander.h.duyck@intel.com>,
David Miller <davem@davemloft.net>,
"Brandeburg, Jesse" <jesse.brandeburg@intel.com>,
Jakub Kicinski <kubakici@wp.pl>, Jason Wang <jasowang@redhat.com>,
"Samudrala, Sridhar" <sridhar.samudrala@intel.com>,
Netdev <netdev@vger.kernel.org>,
virtualization@lists.linux-foundation.org,
virtio-dev@lists.oasis-open.org
Subject: Re: [RFC PATCH 2/3] netdev: kernel-only IFF_HIDDEN netdevice
Date: Wed, 4 Apr 2018 11:21:54 -0600 [thread overview]
Message-ID: <54accf73-e6cc-e03f-6a1c-34e1bbd78047@gmail.com> (raw)
In-Reply-To: <CADGSJ23Zr7_CLMr1W9qhcWux59+aCvFdTg_nQ7Mmp5B-FWL8=Q@mail.gmail.com>
On 4/4/18 1:36 AM, Siwei Liu wrote:
> On Tue, Apr 3, 2018 at 6:04 PM, David Ahern <dsahern@gmail.com> wrote:
>> On 4/3/18 9:42 AM, Jiri Pirko wrote:
>>>>
>>>> There are other use cases that want to hide a device from userspace. I
>>>
>>> What usecases do you have in mind?
>>
>> As mentioned in a previous response some kernel drivers create control
>> netdevs. Just as in this case users should not be mucking with it, and
>> S/W like lldpd should ignore it.
>>
>>>
>>>> would prefer a better solution than playing games with name prefixes and
>>>> one that includes an API for users to list all devices -- even ones
>>>> hidden by default.
>>>
>>> Netdevice hiding feels a bit scarry for me. This smells like a workaround
>>> for userspace issues. Why can't the netdevice be visible always and
>>> userspace would know what is it and what should it do with it?
>>>
>>> Once we start with hiding, there are other things related to that which
>>> appear. Like who can see what, levels of visibility etc...
>>>
>>
>> I would not advocate for any API that does not allow users to have full
>> introspection. The intent is to hide the netdev by default but have an
>> option to see it.
>
> I'm fine with having a link dump API to inspect the hidden netdev. As
> said, the name for hidden netdevs should be in a separate device
> namespace, and we did not even get closer to what it should look like
> as I don't want to make it just an option for ip link. Perhaps a new
> set of sub-commands of, say, 'ip device'.
It is a netdev so there is no reason to have a separate ip command to
inspect it. 'ip link' is the right place.
next prev parent reply other threads:[~2018-04-04 17:21 UTC|newest]
Thread overview: 109+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-01 9:13 [virtio-dev] [RFC PATCH 0/3] Userspace compatible driver model for virtio_bypass Si-Wei Liu
2018-04-01 9:13 ` Si-Wei Liu
2018-04-01 9:13 ` [virtio-dev] [RFC PATCH 1/3] qemu: virtio-bypass should explicitly bind to a passthrough device Si-Wei Liu
2018-04-01 9:13 ` Si-Wei Liu
2018-04-03 12:25 ` [virtio-dev] " Michael S. Tsirkin
2018-04-03 12:25 ` Michael S. Tsirkin
2018-04-04 8:02 ` [virtio-dev] " Siwei Liu
2018-04-04 8:02 ` Siwei Liu
2018-04-05 15:31 ` Paolo Bonzini
2018-04-07 2:54 ` Siwei Liu
2018-04-07 2:54 ` Siwei Liu
2018-04-07 2:54 ` [virtio-dev] " Siwei Liu
2018-04-04 8:02 ` Siwei Liu
2018-04-03 12:25 ` Michael S. Tsirkin
2018-04-01 9:13 ` [virtio-dev] [RFC PATCH 2/3] netdev: kernel-only IFF_HIDDEN netdevice Si-Wei Liu
2018-04-01 9:13 ` Si-Wei Liu
2018-04-01 16:11 ` David Ahern
2018-04-03 7:40 ` [virtio-dev] " Siwei Liu
2018-04-03 7:40 ` Siwei Liu
2018-04-03 14:57 ` David Ahern
2018-04-03 7:40 ` Siwei Liu
2018-04-03 15:42 ` Jiri Pirko
2018-04-03 15:42 ` Jiri Pirko
2018-04-03 19:23 ` Siwei Liu
2018-04-03 19:23 ` [virtio-dev] " Siwei Liu
2018-04-03 19:23 ` Siwei Liu
2018-04-04 1:04 ` David Ahern
2018-04-04 6:19 ` Jiri Pirko
2018-04-04 6:19 ` Jiri Pirko
2018-04-04 8:01 ` [virtio-dev] " Siwei Liu
2018-04-04 8:01 ` Siwei Liu
2018-04-04 8:01 ` Siwei Liu
2018-04-04 7:36 ` Siwei Liu
2018-04-04 7:36 ` [virtio-dev] " Siwei Liu
2018-04-04 7:36 ` Siwei Liu
2018-04-04 17:21 ` David Ahern [this message]
2018-04-04 17:37 ` David Miller
2018-04-04 18:20 ` Jiri Pirko
2018-04-04 18:20 ` Jiri Pirko
2018-04-07 2:32 ` [virtio-dev] " Siwei Liu
2018-04-07 2:32 ` Siwei Liu
2018-04-07 3:19 ` Andrew Lunn
2018-04-09 22:07 ` Siwei Liu
2018-04-09 22:07 ` [virtio-dev] " Siwei Liu
2018-04-09 22:07 ` Siwei Liu
2018-04-09 22:15 ` Andrew Lunn
2018-04-09 22:15 ` Andrew Lunn
2018-04-09 22:30 ` [virtio-dev] " Siwei Liu
2018-04-09 22:30 ` Siwei Liu
2018-04-09 23:03 ` Stephen Hemminger
2018-04-09 23:03 ` Stephen Hemminger
2018-04-09 23:31 ` Siwei Liu
2018-04-09 23:31 ` [virtio-dev] " Siwei Liu
2018-04-09 23:31 ` Siwei Liu
2018-04-08 16:32 ` David Miller
2018-04-08 16:32 ` David Miller
2018-04-10 6:48 ` Siwei Liu
2018-04-10 6:48 ` [virtio-dev] " Siwei Liu
2018-04-10 6:48 ` Siwei Liu
2018-04-18 0:26 ` Siwei Liu
2018-04-18 0:26 ` [virtio-dev] " Siwei Liu
2018-04-18 0:26 ` Siwei Liu
2018-04-18 23:33 ` [virtio-dev] " Samudrala, Sridhar
2018-04-18 23:33 ` Samudrala, Sridhar
2018-04-19 4:41 ` [virtio-dev] " Michael S. Tsirkin
2018-04-19 4:41 ` Michael S. Tsirkin
2018-04-19 4:41 ` Michael S. Tsirkin
2018-04-19 5:00 ` [virtio-dev] " Samudrala, Sridhar
2018-04-19 5:00 ` Samudrala, Sridhar
2018-04-19 5:07 ` Michael S. Tsirkin
2018-04-19 5:07 ` Michael S. Tsirkin
2018-04-19 5:07 ` Michael S. Tsirkin
2018-04-19 6:10 ` [virtio-dev] " Samudrala, Sridhar
2018-04-19 6:10 ` Samudrala, Sridhar
2018-04-19 6:10 ` Samudrala, Sridhar
2018-04-19 6:43 ` Siwei Liu
2018-04-19 6:43 ` Siwei Liu
2018-04-19 6:43 ` Siwei Liu
2018-04-19 6:31 ` Siwei Liu
2018-04-19 6:31 ` Siwei Liu
2018-04-19 6:31 ` Siwei Liu
2018-04-19 5:00 ` [virtio-dev] " Samudrala, Sridhar
2018-04-18 23:33 ` Samudrala, Sridhar
2018-04-04 17:37 ` David Miller
2018-04-04 18:02 ` Siwei Liu
2018-04-04 18:02 ` Siwei Liu
2018-04-04 8:28 ` [virtio-dev] " Siwei Liu
2018-04-04 8:28 ` Siwei Liu
2018-04-04 17:37 ` David Ahern
2018-04-04 17:42 ` David Miller
2018-04-04 17:42 ` David Miller
2018-04-04 17:44 ` Stephen Hemminger
2018-04-04 17:44 ` Stephen Hemminger
2018-04-04 20:08 ` Andrew Lunn
2018-04-04 20:08 ` Andrew Lunn
2018-04-04 8:28 ` Siwei Liu
2018-04-03 17:35 ` Stephen Hemminger
2018-04-03 17:35 ` Stephen Hemminger
[not found] ` <CADGSJ23vZdtQzWdc_6M_Hr4MUej--wgvJ785DwRF3VaPWS1rpA@mail.gmail.com>
[not found] ` <20180403160834.51594373@xeon-e3>
2018-04-06 21:29 ` Siwei Liu
2018-04-06 21:29 ` [virtio-dev] " Siwei Liu
2018-04-06 21:29 ` Siwei Liu
2018-04-01 9:13 ` [virtio-dev] [RFC PATCH 3/3] virtio_net: make lower netdevs for virtio_bypass hidden Si-Wei Liu
2018-04-01 9:13 ` Si-Wei Liu
2018-04-03 12:20 ` [virtio-dev] " Michael S. Tsirkin
2018-04-03 12:20 ` Michael S. Tsirkin
2018-04-04 8:03 ` [virtio-dev] " Siwei Liu
2018-04-04 8:03 ` Siwei Liu
2018-04-04 8:03 ` Siwei Liu
2018-04-03 12:20 ` Michael S. Tsirkin
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=54accf73-e6cc-e03f-6a1c-34e1bbd78047@gmail.com \
--to=dsahern@gmail.com \
--cc=alexander.h.duyck@intel.com \
--cc=davem@davemloft.net \
--cc=jasowang@redhat.com \
--cc=jesse.brandeburg@intel.com \
--cc=jiri@resnulli.us \
--cc=kubakici@wp.pl \
--cc=loseweigh@gmail.com \
--cc=mst@redhat.com \
--cc=netdev@vger.kernel.org \
--cc=si-wei.liu@oracle.com \
--cc=sridhar.samudrala@intel.com \
--cc=stephen@networkplumber.org \
--cc=virtio-dev@lists.oasis-open.org \
--cc=virtualization@lists.linux-foundation.org \
/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.