> From: Zhu, Lingshan <lingshan....@intel.com> > Sent: Tuesday, July 12, 2022 11:46 PM > > When the user space which invokes netlink commands, detects that _MQ > is not supported, hence it takes max_queue_pair = 1 by itself. > I think the kernel module have all necessary information and it is the only > one which have precise information of a device, so it should answer precisely > than let the user space guess. The kernel module should be reliable than stay > silent, leave the question to the user space tool. Kernel is reliable. It doesn’t expose a config space field if the field doesn’t exist regardless of field should have default or no default. User space should not guess either. User space gets to see if _MQ present/not present. If _MQ present than get reliable data from kernel. If _MQ not present, it means this device has one VQ pair. _______________________________________________ Virtualization mailing list Virtualization@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/virtualization
RE: [PATCH V3 5/6] vDPA: answer num of queue pairs = 1 to userspace when VIRTIO_NET_F_MQ == 0
Parav Pandit via Virtualization Tue, 26 Jul 2022 08:56:48 -0700
- RE: [PATCH V3 5/6] vDPA: answer num of que... Parav Pandit via Virtualization
- RE: [PATCH V3 5/6] vDPA: answer num o... Parav Pandit via Virtualization
- RE: [PATCH V3 5/6] vDPA: answer n... Parav Pandit via Virtualization
- RE: [PATCH V3 5/6] vDPA: answ... Parav Pandit via Virtualization
- RE: [PATCH V3 5/6] vDPA: ... Parav Pandit via Virtualization
- Re: [PATCH V3 5/6] v... Michael S. Tsirkin
- RE: [PATCH V3 5/... Parav Pandit via Virtualization
- RE: [PATCH V3 5/6] v... Parav Pandit via Virtualization
- RE: [PATCH V3 5/... Parav Pandit via Virtualization
- Re: [PATCH V... Michael S. Tsirkin
- Re: [PATCH V... Jason Wang
- Re: [PATCH V... Michael S. Tsirkin
- Re: [PATCH V... Jason Wang
- Re: [PATCH V... Michael S. Tsirkin
- Re: [PATCH V... Jason Wang