public inbox for virtio-dev@lists.linux.dev
 help / color / mirror / Atom feed
* [virtio-dev] virtio-net ip restriction.
@ 2023-08-08  8:04 Xuan Zhuo
  2023-08-10  7:04 ` [virtio-dev] Re: [virtio-comment] " Jason Wang
  2023-08-14 13:03 ` [virtio-dev] " Parav Pandit
  0 siblings, 2 replies; 6+ messages in thread
From: Xuan Zhuo @ 2023-08-08  8:04 UTC (permalink / raw)
  To: Parav Pandit, jasowang@redhat.com, Michael S. Tsirkin
  Cc: Satananda Burla, virtio-dev@lists.oasis-open.org,
	virtio-comment@lists.oasis-open.org

## Background

For cloud, the ip restriction is important. Because the user of the vm is
untrustworthy. One user may use the ip of another to config the netdevice to
receive and send packets. So we need to restrict the ip traffic of the device(or port).

## Implement
Now we have these choice:

1. introduce the switch(as the part of pf or as a separate device under all PF
   and VFs ), the switch support rx/tx filter
2. the virtio-net device support the ip restriction


Parav wrote:
> I understood that you for some reason do not need restrictions for the PF.
> I do not know why you don't need it. :)
> Most cloud setups that I came across so far, needs it, but ok...

PF is used by the administrator, so the ip restriction for the PF is
not important. But we can have this feature.

> The design for the switch object needs to cover the PF as well, even though it may not be done initially.
> (hint: an abstraction of switch port to be done, instead of doing things directly on the group member id).
>
> We are seeing use cases reducing of having switch located on the PF for its VFs.

So for you, we should introduce a switching PF?

> So please reconsider.
> I remember you mentioned in past in other thread, that mac etc is controlled from the infrastructure side.

YES.

> So, I repeatedly ask if you _really_ need to have the switch object as part of the owner PF or not.

For me, that are all ok.
Could you explain the difference between these?
So I would to know which one is better and which one is simper?

> Which sort of contradicts with locating the administrative switch on the owner PF.

Why?

For us, all is on the DPU.

>
> If it does, flow filters vq that is being worked with Heng, Satananda, David
> and others seems right direction to implement simple->complex switch object
> progressively.

Great!!


Thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: virtio-dev-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: virtio-dev-help@lists.oasis-open.org


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-08-15  4:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-08  8:04 [virtio-dev] virtio-net ip restriction Xuan Zhuo
2023-08-10  7:04 ` [virtio-dev] Re: [virtio-comment] " Jason Wang
2023-08-14 12:01   ` Xuan Zhuo
2023-08-14 13:03 ` [virtio-dev] " Parav Pandit
2023-08-15  3:10   ` [virtio-dev] " Xuan Zhuo
2023-08-15  4:16     ` [virtio-dev] " Parav Pandit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox