[virtio-dev] Re: RE: RE: RE: RE: [virtio-comment] RE: RE: RE: RE: [RFC] virtio-net: support access and control the member devices

2023-08-07 Thread Jason Wang
On Tue, Aug 8, 2023 at 12:38 PM Parav Pandit wrote: > > > > From: Jason Wang > > Sent: Tuesday, August 8, 2023 10:03 AM > > > > This option because it is in use by very big and mature eco system of > > > multiple > > sw stacks, kernel subsystem, drivers, and nics for several years now. > > > >

[virtio-dev] RE: RE: RE: RE: RE: [virtio-comment] RE: RE: RE: RE: [RFC] virtio-net: support access and control the member devices

2023-08-07 Thread Parav Pandit
> From: Jason Wang > Sent: Tuesday, August 8, 2023 10:03 AM > > This option because it is in use by very big and mature eco system of > > multiple > sw stacks, kernel subsystem, drivers, and nics for several years now. > > > > > A drawback of using switch is that it introduces dependencies. >

[virtio-dev] RE: RE: RE: RE: RE: RE: RE: [virtio-comment] RE: RE: RE: RE: [RFC] virtio-net: support access and control the member devices

2023-08-07 Thread Parav Pandit
> From: Xuan Zhuo > Sent: Tuesday, August 8, 2023 9:47 AM > I don't care whether swtich is introduced or not. Because we have no > dependencies on it. > > My requirement is to implement ip restriction which is very important for > cloud > scenarios. > These restrictions are needed for PF and

[virtio-dev] Re: RE: RE: RE: RE: [virtio-comment] RE: RE: RE: RE: [RFC] virtio-net: support access and control the member devices

2023-08-07 Thread Jason Wang
On Tue, Aug 8, 2023 at 12:17 PM Parav Pandit wrote: > > > > From: Jason Wang > > Sent: Tuesday, August 8, 2023 9:21 AM > > > > The idea is to introduce filters on the new virtio switch object for tx > > > and rx > > both. > > > > It can be done in this way for sure but the question is why it

[virtio-dev] RE: RE: RE: RE: RE: RE: [virtio-comment] RE: RE: RE: RE: [RFC] virtio-net: support access and control the member devices

2023-08-07 Thread Satananda Burla
> -Original Message- > From: virtio-dev@lists.oasis-open.org > On Behalf Of Parav Pandit > Sent: Monday, August 7, 2023 9:11 PM > To: Xuan Zhuo > Cc: virtio-dev@lists.oasis-open.org; virtio-comment@lists.oasis- > open.org; Michael S. Tsirkin ; Jason Wang > > Subject: [EXT]

[virtio-dev] RE: RE: RE: RE: RE: [virtio-comment] RE: RE: RE: RE: [RFC] virtio-net: support access and control the member devices

2023-08-07 Thread Parav Pandit
> From: Jason Wang > Sent: Tuesday, August 8, 2023 9:21 AM > > The idea is to introduce filters on the new virtio switch object for tx and > > rx > both. > > It can be done in this way for sure but the question is why it must be done in > this way. This option because it is in use by very

[virtio-dev] RE: RE: RE: RE: RE: RE: [virtio-comment] RE: RE: RE: RE: [RFC] virtio-net: support access and control the member devices

2023-08-07 Thread Parav Pandit
> From: Xuan Zhuo > Sent: Tuesday, August 8, 2023 9:31 AM > > On Tue, 8 Aug 2023 03:16:44 +, Parav Pandit wrote: > > > > > > > From: Jason Wang > > > Sent: Tuesday, August 8, 2023 8:39 AM > > > > > > > > Yes, but even for TX, would it be better to filter the IP as early > > > as

[virtio-dev] Re: RE: RE: RE: RE: RE: [virtio-comment] RE: RE: RE: RE: [RFC] virtio-net: support access and control the member devices

2023-08-07 Thread Xuan Zhuo
On Tue, 8 Aug 2023 03:16:44 +, Parav Pandit wrote: > > > > From: Jason Wang > > Sent: Tuesday, August 8, 2023 8:39 AM > > > > > Yes, but even for TX, would it be better to filter the IP as early as > > possible in the > > TX path other than depend on the switch to do that? > > The idea is

[virtio-dev] Re: RE: RE: RE: RE: [virtio-comment] RE: RE: RE: RE: [RFC] virtio-net: support access and control the member devices

2023-08-07 Thread Jason Wang
On Tue, Aug 8, 2023 at 11:16 AM Parav Pandit wrote: > > > > > From: Jason Wang > > Sent: Tuesday, August 8, 2023 8:39 AM > > > > > Yes, but even for TX, would it be better to filter the IP as early as > > possible in the > > TX path other than depend on the switch to do that? > > The idea is to

[virtio-dev] RE: RE: RE: RE: RE: [virtio-comment] RE: RE: RE: RE: [RFC] virtio-net: support access and control the member devices

2023-08-07 Thread Parav Pandit
> From: Jason Wang > Sent: Tuesday, August 8, 2023 8:39 AM > > Yes, but even for TX, would it be better to filter the IP as early as > possible in the > TX path other than depend on the switch to do that? The idea is to introduce filters on the new virtio switch object for tx and rx both.

[virtio-dev] Re: RE: RE: RE: RE: [virtio-comment] RE: RE: RE: RE: [RFC] virtio-net: support access and control the member devices

2023-08-07 Thread Jason Wang
On Tue, Aug 8, 2023 at 10:46 AM Xuan Zhuo wrote: > > On Tue, 8 Aug 2023 10:18:15 +0800, Jason Wang wrote: > > On Mon, Aug 7, 2023 at 2:13 PM Xuan Zhuo wrote: > > > > > > On Fri, 4 Aug 2023 12:49:04 +, Parav Pandit wrote: > > > > > > > > > > > > > From: Michael S. Tsirkin > > > > > Sent:

[virtio-dev] Re: [RFC] virtio-net: support access and control the member devices

2023-08-07 Thread Jason Wang
On Fri, Aug 4, 2023 at 12:05 PM Parav Pandit wrote: > > > > > From: Jason Wang > > Sent: Friday, August 4, 2023 9:02 AM > > > I think we probably need some split here. > > > > E.g the fields belonging to configuration space might go with a more general > > interface like admin command/queue. > >

[virtio-dev] Re: RE: RE: RE: RE: [virtio-comment] RE: RE: RE: RE: [RFC] virtio-net: support access and control the member devices

2023-08-07 Thread Jason Wang
On Mon, Aug 7, 2023 at 2:13 PM Xuan Zhuo wrote: > > On Fri, 4 Aug 2023 12:49:04 +, Parav Pandit wrote: > > > > > > > From: Michael S. Tsirkin > > > Sent: Friday, August 4, 2023 4:03 PM > > > > > > > > > > > > At this point to have port for owner device requires creating a > > > > >

[virtio-dev] Re: [PATCH] virtio-net: support the outer source port hash for UDP-encapsulated packets

2023-08-07 Thread Michael S. Tsirkin
On Fri, Jul 28, 2023 at 04:46:35PM +0800, Heng Qi wrote: > UDP tunneling protocols usually identify a flow using the outer source UDP > port, which is useful for processing UDP-encapsulated packets, such as > increasing entropy for RSS queue selection or hashing the same flow to the > same receive

[virtio-dev] Re: [PATCH v14] virtio-net: support device stats

2023-08-07 Thread David Edmondson
On Monday, 2023-07-31 at 15:27:22 +08, Xuan Zhuo wrote: > This patch allows the driver to obtain some statistics from the device. > > In the device implementation, we can count a lot of such information, > which can be used for debugging and judging the running status of the > device. We hope to

[virtio-dev] Re: RE: RE: RE: RE: [virtio-comment] RE: RE: RE: RE: [RFC] virtio-net: support access and control the member devices

2023-08-07 Thread Xuan Zhuo
On Fri, 4 Aug 2023 12:49:04 +, Parav Pandit wrote: > > > > From: Michael S. Tsirkin > > Sent: Friday, August 4, 2023 4:03 PM > > > > > > > > > At this point to have port for owner device requires creating a > > > > dedicated > > switching object, to be located sometimes side by side inside