target-devel mail list seems not working?

2015-03-17 Thread Zhu Lingshan
Hi, seems target-devel mail list not working now, the latest mail is on 13th Mar, can not send a new mail to the mail list for days. I would send a iscsi analyze report to the list, maybe I can send it to your guys for some suggestion and comments~ thanks -- To unsubscribe from this list:

seems something wrong with the target-devel mail list

2015-03-17 Thread Zhu Lingshan
Hi, It seems target-devel mail list(target-de...@vger.kernel.org) not working, the latest mail in the list is on 13th March, I can not send mail to the list for days. I would send a ISCSI performance analyze report to the list, maybe I should send it to this list for some suggestions and

ISCSI target engine core LIO(in kernel) performance bottle neck analyze

2015-03-17 Thread Zhu Lingshan
, suggestion and why from you experts! Thanks a lot for your time to read my mail. Have a nice day! BR Zhu Lingshan -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org

Re: [PATCHv3 0/2] target: make location of /var/targets configurable

2016-05-25 Thread Zhu Lingshan
Hi experts, I think these patches are great, and I am ready to help in user space. Thanks, BR Zhu Lingshan On 05/09/2016 09:17 AM, Lee Duncan wrote: On 04/14/2016 06:18 PM, Lee Duncan wrote: These patches make the location of "/var/target" configurable, though it still defaul

[PATCH v2] .gitignore: ignore ASN.1 auto generated files

2018-02-12 Thread Zhu Lingshan
when build kernel with default configure, files: generatenet/ipv4/netfilter/nf_nat_snmp_basic-asn1.c net/ipv4/netfilter/nf_nat_snmp_basic-asn1.h will be automatically generated by ASN.1 compiler, so No need to track them in git, it's better to ignore them. Signed-off-by: Zhu Lingshan <

[PATCH] .gitignore: ignore ANS.1 auto generated files

2018-02-11 Thread Zhu Lingshan
when build kernel with default configure, files: generatenet/ipv4/netfilter/nf_nat_snmp_basic-asn1.c net/ipv4/netfilter/nf_nat_snmp_basic-asn1.h will be automatically generated by ASN.1 compiler, so No need to track them in git, it's better to ignore them. Signed-off-by: Zhu Lingshan <

Re: [PATCH] .gitignore: ignore ANS.1 auto generated files

2018-02-11 Thread Zhu Lingshan
cc Masahiro and Rob Thanks, BR Zhu Lingshan On 2018/2/11 17:55, Zhu Lingshan wrote: when build kernel with default configure, files: generatenet/ipv4/netfilter/nf_nat_snmp_basic-asn1.c net/ipv4/netfilter/nf_nat_snmp_basic-asn1.h will be automatically generated by ASN.1 compiler, so No need

[PATCH v2] .gitignore: ignore ASN.1 auto generated files

2018-02-12 Thread Zhu Lingshan
when build kernel with default configure, files: generatenet/ipv4/netfilter/nf_nat_snmp_basic-asn1.c net/ipv4/netfilter/nf_nat_snmp_basic-asn1.h will be automatically generated by ASN.1 compiler, so No need to track them in git, it's better to ignore them. Signed-off-by: Zhu Lingshan

[PATCH] vdpa: bypass waking up vhost_woker for vdpa vq kick

2020-05-25 Thread Zhu Lingshan
. Signed-off-by: Zhu Lingshan Suggested-by: Jason Wang --- drivers/vhost/vdpa.c | 100 +++ 1 file changed, 100 insertions(+) diff --git a/drivers/vhost/vdpa.c b/drivers/vhost/vdpa.c index 0968361..d3a2aca 100644 --- a/drivers/vhost/vdpa.c +++ b/drivers

[PATCH RESEND 1/5] ifcvf: move IRQ request/free to status change handlers

2020-06-05 Thread Zhu Lingshan
buffers or send any used buffer notifications to the driver before DRIVER_OK. Signed-off-by: Zhu Lingshan Acked-by: Jason Wang --- drivers/vdpa/ifcvf/ifcvf_main.c | 120 1 file changed, 73 insertions(+), 47 deletions(-) diff --git a/drivers/vdpa/ifcvf

[PATCH RESEND 0/5] vDPA:config interrupt support and IRQ improvements

2020-06-05 Thread Zhu Lingshan
Please help review Zhu Lingshan (5): ifcvf: move IRQ request/free to status change handlers ifcvf: ignore continuous setting same staus value vhost_vdpa: Support config interrupt in vhost_vdpa vhost: replace -1 with VHOST_FILE_UNBIND in iotcls ifcvf: implement config interrupt in IFCVF

[PATCH RESEND 4/5] vhost: replace -1 with VHOST_FILE_UNBIND in iotcls

2020-06-05 Thread Zhu Lingshan
This commit replaces -1 with VHOST_FILE_UNBIND in ioctls since we have added such a macro in the uapi header for vdpa_host. Signed-off-by: Zhu Lingshan Acked-by: Jason Wang --- drivers/vhost/vhost.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/vhost

[PATCH RESEND 2/5] ifcvf: ignore continuous setting same staus value

2020-06-05 Thread Zhu Lingshan
User space may try to set status of same value for multiple times, this patch can handle this case more efficiently by ignoring the same value of status settings. Signed-off-by: Zhu Lingshan --- drivers/vdpa/ifcvf/ifcvf_main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/vdpa

[PATCH RESEND 5/5] ifcvf: implement config interrupt in IFCVF

2020-06-05 Thread Zhu Lingshan
This commit implements config interrupt support in IFC VF Signed-off-by: Zhu Lingshan Acked-by: Jason Wang --- drivers/vdpa/ifcvf/ifcvf_base.c | 3 +++ drivers/vdpa/ifcvf/ifcvf_base.h | 4 drivers/vdpa/ifcvf/ifcvf_main.c | 23 ++- 3 files changed, 29 insertions(+), 1

[PATCH RESEND 3/5] vhost_vdpa: Support config interrupt in vdpa

2020-06-05 Thread Zhu Lingshan
This commit implements config interrupt support in vhost_vdpa layer. Signed-off-by: Zhu Lingshan Acked-by: Jason Wang --- drivers/vhost/vdpa.c | 47 ++ include/uapi/linux/vhost.h | 4 2 files changed, 51 insertions(+) diff --git

[PATCH] .gitignore: ignore ANS.1 auto generated files

2018-02-11 Thread Zhu Lingshan
when build kernel with default configure, files: generatenet/ipv4/netfilter/nf_nat_snmp_basic-asn1.c net/ipv4/netfilter/nf_nat_snmp_basic-asn1.h will be automatically generated by ASN.1 compiler, so No need to track them in git, it's better to ignore them. Signed-off-by: Zhu Lingshan

Re: [PATCH] .gitignore: ignore ANS.1 auto generated files

2018-02-11 Thread Zhu Lingshan
cc Masahiro and Rob Thanks, BR Zhu Lingshan On 2018/2/11 17:55, Zhu Lingshan wrote: when build kernel with default configure, files: generatenet/ipv4/netfilter/nf_nat_snmp_basic-asn1.c net/ipv4/netfilter/nf_nat_snmp_basic-asn1.h will be automatically generated by ASN.1 compiler, so No need

Re: [RFC 2/2] vhost: IFC VF vdpa layer

2019-10-18 Thread Zhu, Lingshan
Hello Jason, Thanks for your comments, I am on a conference travel, I will reply next Monday. Thanks, BR Zhu Lingshan On 10/16/2019 6:19 PM, Jason Wang wrote: On 2019/10/16 上午9:30, Zhu Lingshan wrote: This commit introduced IFC VF operations for vdpa, which complys to vhost_mdev interfaces

Re: [RFC 1/2] vhost: IFC VF hardware operation layer

2019-10-22 Thread Zhu Lingshan
On 10/22/2019 9:32 AM, Jason Wang wrote: On 2019/10/22 上午12:31, Simon Horman wrote: On Mon, Oct 21, 2019 at 05:55:33PM +0800, Zhu, Lingshan wrote: On 10/16/2019 5:53 PM, Simon Horman wrote: Hi Zhu, thanks for your patch. On Wed, Oct 16, 2019 at 09:10:40AM +0800, Zhu Lingshan wrote

Re: [RFC 2/2] vhost: IFC VF vdpa layer

2019-10-22 Thread Zhu Lingshan
On 10/21/2019 6:19 PM, Jason Wang wrote: On 2019/10/21 下午5:53, Zhu, Lingshan wrote: On 10/16/2019 6:19 PM, Jason Wang wrote: On 2019/10/16 上午9:30, Zhu Lingshan wrote: This commit introduced IFC VF operations for vdpa, which complys to vhost_mdev interfaces, handles IFC VF initialization

Re: [RFC 2/2] vhost: IFC VF vdpa layer

2019-10-23 Thread Zhu, Lingshan
On 10/22/2019 9:05 PM, Jason Wang wrote: On 2019/10/22 下午2:53, Zhu Lingshan wrote: On 10/21/2019 6:19 PM, Jason Wang wrote: On 2019/10/21 下午5:53, Zhu, Lingshan wrote: On 10/16/2019 6:19 PM, Jason Wang wrote: On 2019/10/16 上午9:30, Zhu Lingshan wrote: This commit introduced IFC VF

Re: [RFC 2/2] vhost: IFC VF vdpa layer

2019-10-23 Thread Zhu, Lingshan
On 10/22/2019 2:53 PM, Zhu Lingshan wrote: On 10/21/2019 6:19 PM, Jason Wang wrote: On 2019/10/21 下午5:53, Zhu, Lingshan wrote: On 10/16/2019 6:19 PM, Jason Wang wrote: On 2019/10/16 上午9:30, Zhu Lingshan wrote: This commit introduced IFC VF operations for vdpa, which complys

[RFC 0/2] Intel IFC VF driver for vdpa

2019-10-15 Thread Zhu Lingshan
on and complys to vhost_mdev https://lkml.org/lkml/2019/9/26/15 This is a first RFC try, please help review. Thanks! BR Zhu Lingshan Zhu Lingshan (2): vhost: IFC VF hardware operation layer vhost: IFC VF vdpa layer drivers/vhost/ifcvf/ifcvf_base.c | 390 drivers

[RFC 1/2] vhost: IFC VF hardware operation layer

2019-10-15 Thread Zhu Lingshan
This commit introduced ifcvf_base layer, which handles IFC VF NIC hardware operations and configurations. Signed-off-by: Zhu Lingshan --- drivers/vhost/ifcvf/ifcvf_base.c | 390 +++ drivers/vhost/ifcvf/ifcvf_base.h | 137 ++ 2 files changed, 527

[RFC 2/2] vhost: IFC VF vdpa layer

2019-10-15 Thread Zhu Lingshan
This commit introduced IFC VF operations for vdpa, which complys to vhost_mdev interfaces, handles IFC VF initialization, configuration and removal. Signed-off-by: Zhu Lingshan --- drivers/vhost/ifcvf/ifcvf_main.c | 541 +++ 1 file changed, 541 insertions

[RFC 1/2] vhost: IFC VF hardware operation layer

2019-10-15 Thread Zhu Lingshan
This commit introduced ifcvf_base layer, which handles IFC VF NIC hardware operations and configurations. Signed-off-by: Zhu Lingshan --- drivers/vhost/ifcvf/ifcvf_base.c | 390 +++ drivers/vhost/ifcvf/ifcvf_base.h | 137 ++ 2 files changed, 527

[RFC 0/2] Intel IFC VF driver for vdpa

2019-10-15 Thread Zhu Lingshan
on and complys to vhost_mdev https://lkml.org/lkml/2019/9/26/15 This is a first RFC try, please help review. Thanks! BR Zhu Lingshan Zhu Lingshan (2): vhost: IFC VF hardware operation layer vhost: IFC VF vdpa layer drivers/vhost/ifcvf/ifcvf_base.c | 390 drivers

[RFC 2/2] vhost: IFC VF vdpa layer

2019-10-15 Thread Zhu Lingshan
This commit introduced IFC VF operations for vdpa, which complys to vhost_mdev interfaces, handles IFC VF initialization, configuration and removal. Signed-off-by: Zhu Lingshan --- drivers/vhost/ifcvf/ifcvf_main.c | 541 +++ 1 file changed, 541 insertions

[RFC 0/2] Intel IFC VF driver for vdpa

2019-10-15 Thread Zhu Lingshan
on and complys to vhost_mdev https://lkml.org/lkml/2019/9/26/15 This is a first RFC try, please help review. Thanks! BR Zhu Lingshan Zhu Lingshan (2): vhost: IFC VF hardware operation layer vhost: IFC VF vdpa layer drivers/vhost/ifcvf/ifcvf_base.c | 390 drivers

[RFC 2/2] vhost: IFC VF vdpa layer

2019-10-15 Thread Zhu Lingshan
This commit introduced IFC VF operations for vdpa, which complys to vhost_mdev interfaces, handles IFC VF initialization, configuration and removal. Signed-off-by: Zhu Lingshan --- drivers/vhost/ifcvf/ifcvf_main.c | 541 +++ 1 file changed, 541 insertions

[RFC 1/2] vhost: IFC VF hardware operation layer

2019-10-15 Thread Zhu Lingshan
This commit introduced ifcvf_base layer, which handles IFC VF NIC hardware operations and configurations. Signed-off-by: Zhu Lingshan --- drivers/vhost/ifcvf/ifcvf_base.c | 390 +++ drivers/vhost/ifcvf/ifcvf_base.h | 137 ++ 2 files changed, 527

Re: [RFC 0/2] Intel IFC VF driver for vdpa

2019-10-15 Thread Zhu Lingshan
failed to send to kvm list, resend, sorry for the inconvenience. THanks, BR Zhu Lingshan On 10/16/2019 9:30 AM, Zhu Lingshan wrote: Hi all: This series intends to introduce Intel IFC VF NIC driver for Vhost Data Plane Acceleration. Here comes two main parts, one is ifcvf_base layer

[PATCH] ifcvf: move IRQ request/free to status change handlers

2020-05-11 Thread Zhu Lingshan
DRIVER_OK. Signed-off-by: Zhu Lingshan --- drivers/vdpa/ifcvf/ifcvf_main.c | 119 1 file changed, 73 insertions(+), 46 deletions(-) diff --git a/drivers/vdpa/ifcvf/ifcvf_main.c b/drivers/vdpa/ifcvf/ifcvf_main.c index abf6a061..4d58bf2 100644 --- a/drivers/vdpa

Re: [RFC 0/2] Intel IFC VF driver for vdpa

2019-10-21 Thread Zhu, Lingshan
On 10/16/2019 4:26 PM, Jason Wang wrote: On 2019/10/16 上午9:36, Zhu Lingshan wrote: failed to send to kvm list, resend, sorry for the inconvenience. THanks, BR Zhu Lingshan On 10/16/2019 9:30 AM, Zhu Lingshan wrote: Hi all:   This series intends to introduce Intel IFC VF NIC driver

Re: [RFC 2/2] vhost: IFC VF vdpa layer

2019-10-21 Thread Zhu, Lingshan
On 10/16/2019 5:53 PM, Simon Horman wrote: Hi Zhu, thanks for your patch. On Wed, Oct 16, 2019 at 09:03:18AM +0800, Zhu Lingshan wrote: This commit introduced IFC VF operations for vdpa, which complys to vhost_mdev interfaces, handles IFC VF initialization, configuration and removal

Re: [RFC 2/2] vhost: IFC VF vdpa layer

2019-10-21 Thread Zhu, Lingshan
On 10/16/2019 6:19 PM, Jason Wang wrote: On 2019/10/16 上午9:30, Zhu Lingshan wrote: This commit introduced IFC VF operations for vdpa, which complys to vhost_mdev interfaces, handles IFC VF initialization, configuration and removal. Signed-off-by: Zhu Lingshan ---   drivers/vhost/ifcvf

Re: [RFC 1/2] vhost: IFC VF hardware operation layer

2019-10-21 Thread Zhu, Lingshan
On 10/16/2019 5:53 PM, Simon Horman wrote: Hi Zhu, thanks for your patch. On Wed, Oct 16, 2019 at 09:10:40AM +0800, Zhu Lingshan wrote: This commit introduced ifcvf_base layer, which handles IFC VF NIC hardware operations and configurations. Signed-off-by: Zhu Lingshan --- drivers/vhost

Re: [RFC 1/2] vhost: IFC VF hardware operation layer

2019-10-21 Thread Zhu, Lingshan
On 10/16/2019 4:45 PM, Jason Wang wrote: On 2019/10/16 上午9:30, Zhu Lingshan wrote: + */ +#define IFCVF_TRANSPORT_F_START 28 +#define IFCVF_TRANSPORT_F_END   34 + +#define IFC_SUPPORTED_FEATURES \ +    ((1ULL << VIRTIO_NET_F_MAC)    | \ + (1ULL << VIRTIO_

Re: [RFC 1/2] vhost: IFC VF hardware operation layer

2019-10-21 Thread Zhu, Lingshan
On 10/16/2019 4:40 PM, Jason Wang wrote: On 2019/10/16 上午9:30, Zhu Lingshan wrote: This commit introduced ifcvf_base layer, which handles IFC VF NIC hardware operations and configurations. It's better to describe the difference between ifc vf and virtio in the commit log

[PATCH V2] ifcvf: move IRQ request/free to status change handlers

2020-05-12 Thread Zhu Lingshan
DRIVER_OK. Signed-off-by: Zhu Lingshan --- changes from V1: remove ifcvf_stop_datapath() in status == 0 handler, we don't need to do this twice; handle status == 0 after DRIVER_OK -> !DRIVER_OK handler (Jason Wang) drivers/vdpa/ifcvf/ifcvf_main.c | 120 1 f

target-devel mail list seems not working?

2015-03-17 Thread Zhu Lingshan
Hi, seems target-devel mail list not working now, the latest mail is on 13th Mar, can not send a new mail to the mail list for days. I would send a iscsi analyze report to the list, maybe I can send it to your guys for some suggestion and comments~ thanks -- To unsubscribe from this list:

seems something wrong with the target-devel mail list

2015-03-17 Thread Zhu Lingshan
Hi, It seems target-devel mail list(target-de...@vger.kernel.org) not working, the latest mail in the list is on 13th March, I can not send mail to the list for days. I would send a ISCSI performance analyze report to the list, maybe I should send it to this list for some suggestions and

ISCSI target engine core LIO(in kernel) performance bottle neck analyze

2015-03-17 Thread Zhu Lingshan
ce the transaction traffic to all cores? Hope can get some hints, suggestion and why from you experts! Thanks a lot for your time to read my mail. Have a nice day! BR Zhu Lingshan -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a messag

Re: [PATCHv3 0/2] target: make location of /var/targets configurable

2016-05-25 Thread Zhu Lingshan
Hi experts, I think these patches are great, and I am ready to help in user space. Thanks, BR Zhu Lingshan On 05/09/2016 09:17 AM, Lee Duncan wrote: On 04/14/2016 06:18 PM, Lee Duncan wrote: These patches make the location of "/var/target" configurable, though it still defaul

[PATCH V3 4/6] vDPA/ifcvf: remove the version number string

2021-03-10 Thread Zhu Lingshan
This commit removes the version number string, using kernel version is enough. Signed-off-by: Zhu Lingshan --- drivers/vdpa/ifcvf/ifcvf_main.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/vdpa/ifcvf/ifcvf_main.c b/drivers/vdpa/ifcvf/ifcvf_main.c index fd5befc5cbcc..c34e1eec6b6c

[PATCH V3 3/6] vDPA/ifcvf: rename original IFCVF dev ids to N3000 ids

2021-03-10 Thread Zhu Lingshan
IFCVF driver probes multiple types of devices now, to distinguish the original device driven by IFCVF from others, it is renamed as "N3000". Signed-off-by: Zhu Lingshan --- drivers/vdpa/ifcvf/ifcvf_base.h | 8 drivers/vdpa/ifcvf/ifcvf_main.c | 8 2 files changed, 8

[PATCH V3 5/6] vDPA/ifcvf: fetch device feature bits when probe

2021-03-10 Thread Zhu Lingshan
This commit would read and store device feature bits when probe. rename ifcvf_get_features() to ifcvf_get_hw_features(), it reads and stores features of the probed device. new ifcvf_get_features() simply returns stored feature bits. Signed-off-by: Zhu Lingshan --- drivers/vdpa/ifcvf

[PATCH V3 6/6] vDPA/ifcvf: verify mandatory feature bits for vDPA

2021-03-10 Thread Zhu Lingshan
vDPA requres VIRTIO_F_ACCESS_PLATFORM as a must, this commit examines this when set features. Signed-off-by: Zhu Lingshan --- drivers/vdpa/ifcvf/ifcvf_base.c | 8 drivers/vdpa/ifcvf/ifcvf_base.h | 1 + drivers/vdpa/ifcvf/ifcvf_main.c | 5 + 3 files changed, 14 insertions(+) diff

[PATCH V3 2/6] vDPA/ifcvf: enable Intel C5000X-PL virtio-net for vDPA

2021-03-10 Thread Zhu Lingshan
This commit enabled Intel FPGA SmartNIC C5000X-PL virtio-net for vDPA Signed-off-by: Zhu Lingshan --- drivers/vdpa/ifcvf/ifcvf_base.h | 5 + drivers/vdpa/ifcvf/ifcvf_main.c | 5 + 2 files changed, 10 insertions(+) diff --git a/drivers/vdpa/ifcvf/ifcvf_base.h b/drivers/vdpa/ifcvf

[PATCH V3 1/6] vDPA/ifcvf: get_vendor_id returns a device specific vendor id

2021-03-10 Thread Zhu Lingshan
In this commit, ifcvf_get_vendor_id() will return a device specific vendor id of the probed pci device than a hard code. Signed-off-by: Zhu Lingshan --- drivers/vdpa/ifcvf/ifcvf_main.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/vdpa/ifcvf/ifcvf_main.c b

[PATCH V3 0/6] vDPA/ifcvf: enables Intel C5000X-PL virtio-net

2021-03-10 Thread Zhu Lingshan
(Leon) add new device ids and remove original device ids in separate patches(Jason) Zhu Lingshan (6): vDPA/ifcvf: get_vendor_id returns a device specific vendor id vDPA/ifcvf: enable Intel C5000X-PL virtio-net for vDPA vDPA/ifcvf: rename original IFCVF dev ids to N3000 ids vDPA/ifcvf: remove

Re: [PATCH 1/2] vhost-vdpa: fix use-after-free of v->config_ctx

2021-03-11 Thread Zhu, Lingshan
f (v->config_ctx) + if (v->config_ctx) { eventfd_ctx_put(v->config_ctx); + v->config_ctx = NULL; + } } static long vhost_vdpa_set_config_call(struct vhost_vdpa *v, u32 __user *argp) Thanks Stefano! Reviewed-by: Zhu Lingshan

[PATCH V4 6/7] vDPA/ifcvf: verify mandatory feature bits for vDPA

2021-03-15 Thread Zhu Lingshan
vDPA requres VIRTIO_F_ACCESS_PLATFORM as a must, this commit examines this when set features. Signed-off-by: Zhu Lingshan --- drivers/vdpa/ifcvf/ifcvf_base.c | 12 drivers/vdpa/ifcvf/ifcvf_base.h | 1 + drivers/vdpa/ifcvf/ifcvf_main.c | 5 + 3 files changed, 18 insertions

[PATCH V4 1/7] vDPA/ifcvf: get_vendor_id returns a device specific vendor id

2021-03-15 Thread Zhu Lingshan
In this commit, ifcvf_get_vendor_id() will return a device specific vendor id of the probed pci device than a hard code. Signed-off-by: Zhu Lingshan --- drivers/vdpa/ifcvf/ifcvf_main.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/vdpa/ifcvf/ifcvf_main.c b

[PATCH V4 0/7] vDPA/ifcvf: enables Intel C5000X-PL virtio-net

2021-03-15 Thread Zhu Lingshan
in get_device_id(Jason) Changes from V2: verify VIRTIO_F_ACCESS_PLATFORM when set features(Jason) Changes from V1: remove version number string(Leon) add new device ids and remove original device ids in separate patches(Jason) Zhu Lingshan (7): vDPA/ifcvf: get_vendor_id returns a device specific vendor id

[PATCH V4 4/7] vDPA/ifcvf: remove the version number string

2021-03-15 Thread Zhu Lingshan
This commit removes the version number string, using kernel version is enough. Signed-off-by: Zhu Lingshan Reviewed-by: Leon Romanovsky --- drivers/vdpa/ifcvf/ifcvf_main.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/vdpa/ifcvf/ifcvf_main.c b/drivers/vdpa/ifcvf/ifcvf_main.c

[PATCH V4 2/7] vDPA/ifcvf: enable Intel C5000X-PL virtio-net for vDPA

2021-03-15 Thread Zhu Lingshan
This commit enabled Intel FPGA SmartNIC C5000X-PL virtio-net for vDPA Signed-off-by: Zhu Lingshan --- drivers/vdpa/ifcvf/ifcvf_base.h | 5 + drivers/vdpa/ifcvf/ifcvf_main.c | 5 + 2 files changed, 10 insertions(+) diff --git a/drivers/vdpa/ifcvf/ifcvf_base.h b/drivers/vdpa/ifcvf

[PATCH V4 3/7] vDPA/ifcvf: rename original IFCVF dev ids to N3000 ids

2021-03-15 Thread Zhu Lingshan
IFCVF driver probes multiple types of devices now, to distinguish the original device driven by IFCVF from others, it is renamed as "N3000". Signed-off-by: Zhu Lingshan --- drivers/vdpa/ifcvf/ifcvf_base.h | 8 drivers/vdpa/ifcvf/ifcvf_main.c | 8 2 files changed, 8

[PATCH V4 5/7] vDPA/ifcvf: fetch device feature bits when probe

2021-03-15 Thread Zhu Lingshan
This commit would read and store device feature bits when probe. rename ifcvf_get_features() to ifcvf_get_hw_features(), it reads and stores features of the probed device. new ifcvf_get_features() simply returns stored feature bits. Signed-off-by: Zhu Lingshan --- drivers/vdpa/ifcvf

[PATCH V4 7/7] vDPA/ifcvf: deduce VIRTIO device ID from pdev ids

2021-03-15 Thread Zhu Lingshan
This commit checks the device ids from pdev, then deduce VIRTIO device ID from the probed device. Here we checks all four device ids than only subsystem_device_id, help detecting a certain device for furture enabling. Signed-off-by: Zhu Lingshan --- drivers/vdpa/ifcvf/ifcvf_base.c | 42

[PATCH V5 5/7] vDPA/ifcvf: fetch device feature bits when probe

2021-03-17 Thread Zhu Lingshan
This commit would read and store device feature bits when probe. rename ifcvf_get_features() to ifcvf_get_hw_features(), it reads and stores features of the probed device. new ifcvf_get_features() simply returns stored feature bits. Signed-off-by: Zhu Lingshan Acked-by: Jason Wang

[PATCH V5 0/7] vDPA/ifcvf: enables Intel C5000X-PL virtio-net

2021-03-17 Thread Zhu Lingshan
patches(Jason) Zhu Lingshan (7): vDPA/ifcvf: get_vendor_id returns a device specific vendor id vDPA/ifcvf: enable Intel C5000X-PL virtio-net for vDPA vDPA/ifcvf: rename original IFCVF dev ids to N3000 ids vDPA/ifcvf: remove the version number string vDPA/ifcvf: fetch device feature bits when

[PATCH V5 1/7] vDPA/ifcvf: get_vendor_id returns a device specific vendor id

2021-03-17 Thread Zhu Lingshan
In this commit, ifcvf_get_vendor_id() will return a device specific vendor id of the probed pci device than a hard code. Signed-off-by: Zhu Lingshan Acked-by: Jason Wang --- drivers/vdpa/ifcvf/ifcvf_main.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/vdpa

[PATCH V5 2/7] vDPA/ifcvf: enable Intel C5000X-PL virtio-net for vDPA

2021-03-17 Thread Zhu Lingshan
This commit enabled Intel FPGA SmartNIC C5000X-PL virtio-net for vDPA Signed-off-by: Zhu Lingshan Acked-by: Jason Wang --- drivers/vdpa/ifcvf/ifcvf_base.h | 5 + drivers/vdpa/ifcvf/ifcvf_main.c | 5 + 2 files changed, 10 insertions(+) diff --git a/drivers/vdpa/ifcvf/ifcvf_base.h b

[PATCH V5 4/7] vDPA/ifcvf: remove the version number string

2021-03-17 Thread Zhu Lingshan
This commit removes the version number string, using kernel version is enough. Signed-off-by: Zhu Lingshan Reviewed-by: Leon Romanovsky Acked-by: Jason Wang --- drivers/vdpa/ifcvf/ifcvf_main.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/vdpa/ifcvf/ifcvf_main.c b/drivers/vdpa

[PATCH V5 3/7] vDPA/ifcvf: rename original IFCVF dev ids to N3000 ids

2021-03-17 Thread Zhu Lingshan
IFCVF driver probes multiple types of devices now, to distinguish the original device driven by IFCVF from others, it is renamed as "N3000". Signed-off-by: Zhu Lingshan Acked-by: Jason Wang --- drivers/vdpa/ifcvf/ifcvf_base.h | 8 drivers/vdpa/ifcvf/ifcvf_main.c | 8 ---

[PATCH V5 7/7] vDPA/ifcvf: deduce VIRTIO device ID from pdev ids

2021-03-17 Thread Zhu Lingshan
This commit deduces the VIRTIO device ID of a probed device from its pdev device ids. Signed-off-by: Zhu Lingshan --- drivers/vdpa/ifcvf/ifcvf_base.h | 1 + drivers/vdpa/ifcvf/ifcvf_main.c | 14 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/drivers/vdpa/ifcvf

[PATCH V5 6/7] vDPA/ifcvf: verify mandatory feature bits for vDPA

2021-03-17 Thread Zhu Lingshan
vDPA requres VIRTIO_F_ACCESS_PLATFORM as a must, this commit examines this when set features. Signed-off-by: Zhu Lingshan Acked-by: Jason Wang --- drivers/vdpa/ifcvf/ifcvf_base.c | 12 drivers/vdpa/ifcvf/ifcvf_base.h | 1 + drivers/vdpa/ifcvf/ifcvf_main.c | 5 + 3 files

Re: [PATCH V3 3/6] vDPA/ifcvf: rename original IFCVF dev ids to N3000 ids

2021-03-10 Thread Zhu Lingshan
On 3/11/2021 11:25 AM, Jason Wang wrote: On 2021/3/10 5:00 下午, Zhu Lingshan wrote: IFCVF driver probes multiple types of devices now, to distinguish the original device driven by IFCVF from others, it is renamed as "N3000". Signed-off-by: Zhu Lingshan ---   drivers/vdpa/ifcvf/if

Re: [PATCH V3 6/6] vDPA/ifcvf: verify mandatory feature bits for vDPA

2021-03-10 Thread Zhu Lingshan
On 3/11/2021 11:20 AM, Jason Wang wrote: On 2021/3/10 5:00 下午, Zhu Lingshan wrote: vDPA requres VIRTIO_F_ACCESS_PLATFORM as a must, this commit examines this when set features. Signed-off-by: Zhu Lingshan ---   drivers/vdpa/ifcvf/ifcvf_base.c | 8   drivers/vdpa/ifcvf/ifcvf_base.h

Re: [PATCH V3 1/6] vDPA/ifcvf: get_vendor_id returns a device specific vendor id

2021-03-10 Thread Zhu Lingshan
On 3/11/2021 11:23 AM, Jason Wang wrote: On 2021/3/10 5:00 下午, Zhu Lingshan wrote: In this commit, ifcvf_get_vendor_id() will return a device specific vendor id of the probed pci device than a hard code. Signed-off-by: Zhu Lingshan ---   drivers/vdpa/ifcvf/ifcvf_main.c | 5 -   1 file

Re: [PATCH V3 1/6] vDPA/ifcvf: get_vendor_id returns a device specific vendor id

2021-03-10 Thread Zhu, Lingshan
On 3/11/2021 2:13 PM, Jason Wang wrote: On 2021/3/11 12:21 下午, Zhu Lingshan wrote: On 3/11/2021 11:23 AM, Jason Wang wrote: On 2021/3/10 5:00 下午, Zhu Lingshan wrote: In this commit, ifcvf_get_vendor_id() will return a device specific vendor id of the probed pci device than a hard code

Re: [PATCH V3 6/6] vDPA/ifcvf: verify mandatory feature bits for vDPA

2021-03-10 Thread Zhu, Lingshan
On 3/11/2021 2:20 PM, Jason Wang wrote: On 2021/3/11 12:16 下午, Zhu Lingshan wrote: On 3/11/2021 11:20 AM, Jason Wang wrote: On 2021/3/10 5:00 下午, Zhu Lingshan wrote: vDPA requres VIRTIO_F_ACCESS_PLATFORM as a must, this commit examines this when set features. Signed-off-by: Zhu

Re: [PATCH V3 6/6] vDPA/ifcvf: verify mandatory feature bits for vDPA

2021-03-11 Thread Zhu, Lingshan
On 3/12/2021 1:52 PM, Jason Wang wrote: On 2021/3/11 3:19 下午, Zhu, Lingshan wrote: On 3/11/2021 2:20 PM, Jason Wang wrote: On 2021/3/11 12:16 下午, Zhu Lingshan wrote: On 3/11/2021 11:20 AM, Jason Wang wrote: On 2021/3/10 5:00 下午, Zhu Lingshan wrote: vDPA requres

Re: [PATCH V3 6/6] vDPA/ifcvf: verify mandatory feature bits for vDPA

2021-03-11 Thread Zhu, Lingshan
On 3/12/2021 3:00 PM, Jason Wang wrote: On 2021/3/12 2:40 下午, Zhu, Lingshan wrote: On 3/12/2021 1:52 PM, Jason Wang wrote: On 2021/3/11 3:19 下午, Zhu, Lingshan wrote: On 3/11/2021 2:20 PM, Jason Wang wrote: On 2021/3/11 12:16 下午, Zhu Lingshan wrote: On 3/11/2021 11:20 AM, Jason

Re: [PATCH 3/3] vDPA/ifcvf: bump version string to 1.0

2021-03-07 Thread Zhu, Lingshan
Hi Leon, Thanks for point this out, will send a V2 patchset delete it. Thanks Zhu Lingshan On 3/7/2021 5:01 PM, Leon Romanovsky wrote: On Fri, Mar 05, 2021 at 10:20:00PM +0800, Zhu Lingshan wrote: This commit bumps ifcvf driver version string to 1.0 Signed-off-by: Zhu Lingshan

[PATCH V2 0/4] vDPA/ifcvf: enables Intel C5000X-PL virtio-net

2021-03-08 Thread Zhu Lingshan
This series enabled Intel FGPA SmartNIC C5000X-PL virtio-net for vDPA changes from V1: remove version number string(Leon) add new device ids and remove original device ids in separate patches(Jason) Zhu Lingshan (4): vDPA/ifcvf: get_vendor_id returns a device specific vendor id vDPA/ifcvf

[PATCH V2 1/4] vDPA/ifcvf: get_vendor_id returns a device specific vendor id

2021-03-08 Thread Zhu Lingshan
In this commit, ifcvf_get_vendor_id() will return a device specific vendor id of the probed pci device than a hard code. Signed-off-by: Zhu Lingshan --- drivers/vdpa/ifcvf/ifcvf_main.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/vdpa/ifcvf/ifcvf_main.c b

[PATCH V2 3/4] vDPA/ifcvf: rename original IFCVF dev ids to N3000 ids

2021-03-08 Thread Zhu Lingshan
IFCVF driver probes multiple types of devices now, to distinguish the original device driven by IFCVF from others, it is renamed as "N3000". Signed-off-by: Zhu Lingshan --- drivers/vdpa/ifcvf/ifcvf_base.h | 8 drivers/vdpa/ifcvf/ifcvf_main.c | 8 2 files changed, 8

[PATCH V2 2/4] vDPA/ifcvf: enable Intel C5000X-PL virtio-net for vDPA

2021-03-08 Thread Zhu Lingshan
This commit enabled Intel FPGA SmartNIC C5000X-PL virtio-net for vDPA Signed-off-by: Zhu Lingshan --- drivers/vdpa/ifcvf/ifcvf_base.h | 5 + drivers/vdpa/ifcvf/ifcvf_main.c | 5 + 2 files changed, 10 insertions(+) diff --git a/drivers/vdpa/ifcvf/ifcvf_base.h b/drivers/vdpa/ifcvf

[PATCH V2 4/4] vDPA/ifcvf: remove the version number string

2021-03-08 Thread Zhu Lingshan
This commit removes the version number string, using kernel version is enough. Signed-off-by: Zhu Lingshan --- drivers/vdpa/ifcvf/ifcvf_main.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/vdpa/ifcvf/ifcvf_main.c b/drivers/vdpa/ifcvf/ifcvf_main.c index fd5befc5cbcc..c34e1eec6b6c

Re: [PATCH V2 2/4] vDPA/ifcvf: enable Intel C5000X-PL virtio-net for vDPA

2021-03-08 Thread Zhu, Lingshan
On 3/9/2021 10:23 AM, Jason Wang wrote: On 2021/3/8 4:35 下午, Zhu Lingshan wrote: This commit enabled Intel FPGA SmartNIC C5000X-PL virtio-net for vDPA Signed-off-by: Zhu Lingshan ---   drivers/vdpa/ifcvf/ifcvf_base.h | 5 +   drivers/vdpa/ifcvf/ifcvf_main.c | 5 +   2 files changed

Re: [PATCH V2 2/4] vDPA/ifcvf: enable Intel C5000X-PL virtio-net for vDPA

2021-03-08 Thread Zhu, Lingshan
On 3/9/2021 10:42 AM, Jason Wang wrote: On 2021/3/9 10:28 上午, Zhu, Lingshan wrote: On 3/9/2021 10:23 AM, Jason Wang wrote: On 2021/3/8 4:35 下午, Zhu Lingshan wrote: This commit enabled Intel FPGA SmartNIC C5000X-PL virtio-net for vDPA Signed-off-by: Zhu Lingshan ---   drivers/vdpa

[PATCH 2/3] vDPA/ifcvf: enable Intel C5000X-PL virtio-net for vDPA

2021-03-05 Thread Zhu Lingshan
This commit enabled Intel FPGA SmartNIC C5000X-PL virtio-net for vDPA. C5000X-PL vendor id 0x1AF4, device id 0x1000, subvendor id 0x8086, sub device id 0x0001 To distinguish C5000X-PL from other ifcvf driven devices, the original ifcvf device is named "N3000". Signed-off-by: Zh

[PATCH 1/3] vDPA/ifcvf: get_vendor_id returns a device specific vendor id

2021-03-05 Thread Zhu Lingshan
In this commit, ifcvf_get_vendor_id() will return a device specific vendor id of the probed pci device than a hard code. Signed-off-by: Zhu Lingshan --- drivers/vdpa/ifcvf/ifcvf_main.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/vdpa/ifcvf/ifcvf_main.c b

[PATCH 0/3] vDPA/ifcvf: enables Intel C5000X-PL virtio-net

2021-03-05 Thread Zhu Lingshan
This series enabled Intel FGPA SmartNIC C5000X-PL virtio-net for vDPA Zhu Lingshan (3): vDPA/ifcvf: get_vendor_id returns a device specific vendor id vDPA/ifcvf: enable Intel C5000X-PL virtio-net for vDPA vDPA/ifcvf: bump version string to 1.0 drivers/vdpa/ifcvf/ifcvf_base.h | 13

[PATCH 3/3] vDPA/ifcvf: bump version string to 1.0

2021-03-05 Thread Zhu Lingshan
This commit bumps ifcvf driver version string to 1.0 Signed-off-by: Zhu Lingshan --- drivers/vdpa/ifcvf/ifcvf_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/vdpa/ifcvf/ifcvf_main.c b/drivers/vdpa/ifcvf/ifcvf_main.c index fd5befc5cbcc..56a0974cf93c 100644

Re: [PATCH 1/3] vDPA/ifcvf: deduce VIRTIO device ID when probe

2021-04-15 Thread Zhu Lingshan
On 4/15/2021 2:30 PM, Jason Wang wrote: 在 2021/4/15 下午1:52, Zhu Lingshan 写道: On 4/15/2021 11:30 AM, Jason Wang wrote: 在 2021/4/14 下午5:18, Zhu Lingshan 写道: This commit deduces VIRTIO device ID as device type when probe, then ifcvf_vdpa_get_device_id() can simply return the ID

Re: [PATCH 1/3] vDPA/ifcvf: deduce VIRTIO device ID when probe

2021-04-14 Thread Zhu Lingshan
On 4/15/2021 11:30 AM, Jason Wang wrote: 在 2021/4/14 下午5:18, Zhu Lingshan 写道: This commit deduces VIRTIO device ID as device type when probe, then ifcvf_vdpa_get_device_id() can simply return the ID. ifcvf_vdpa_get_features() and ifcvf_vdpa_get_config_size() can work properly based

Re: [PATCH 2/3] vDPA/ifcvf: enable Intel C5000X-PL virtio-block for vDPA

2021-04-14 Thread Zhu Lingshan
On 4/15/2021 11:34 AM, Jason Wang wrote: 在 2021/4/14 下午5:18, Zhu Lingshan 写道: This commit enabled Intel FPGA SmartNIC C5000X-PL virtio-block for vDPA. Signed-off-by: Zhu Lingshan ---   drivers/vdpa/ifcvf/ifcvf_base.h | 17 -   drivers/vdpa/ifcvf/ifcvf_main.c | 10

Re: [PATCH 2/3] vDPA/ifcvf: enable Intel C5000X-PL virtio-block for vDPA

2021-04-15 Thread Zhu Lingshan
On 4/15/2021 3:17 PM, Jason Wang wrote: 在 2021/4/15 下午2:41, Zhu Lingshan 写道: I think we've discussed this sometime in the past but what's the reason for such whitelist consider there's already a get_features() implemention? E.g Any reason to block VIRTIO_BLK_F_WRITE_ZEROS

Re: [PATCH 2/3] vDPA/ifcvf: enable Intel C5000X-PL virtio-block for vDPA

2021-04-15 Thread Zhu Lingshan
On 4/15/2021 2:31 PM, Jason Wang wrote: 在 2021/4/15 下午1:55, Zhu Lingshan 写道: On 4/15/2021 11:34 AM, Jason Wang wrote: 在 2021/4/14 下午5:18, Zhu Lingshan 写道: This commit enabled Intel FPGA SmartNIC C5000X-PL virtio-block for vDPA. Signed-off-by: Zhu Lingshan ---   drivers/vdpa/ifcvf

Re: [PATCH 1/3] vDPA/ifcvf: deduce VIRTIO device ID when probe

2021-04-15 Thread Zhu Lingshan
On 4/15/2021 3:16 PM, Jason Wang wrote: 在 2021/4/15 下午2:36, Zhu Lingshan 写道: On 4/15/2021 2:30 PM, Jason Wang wrote: 在 2021/4/15 下午1:52, Zhu Lingshan 写道: On 4/15/2021 11:30 AM, Jason Wang wrote: 在 2021/4/14 下午5:18, Zhu Lingshan 写道: This commit deduces VIRTIO device ID as device

[PATCH V2 0/3] vDPA/ifcvf: enables Intel C5000X-PL virtio-blk

2021-04-15 Thread Zhu Lingshan
comments to explain this driver drives virtio modern devices and transitional devices in modern mode.(Jason) (2)remove IFCVF_BLK_SUPPORTED_FEATURES, use hardware feature bits directly(Jason) (3)add error handling and message in get_config_size(Stefano) Thanks! Zhu Lingshan (3): vDPA/ifcvf: deduce

[PATCH V2 1/3] vDPA/ifcvf: deduce VIRTIO device ID when probe

2021-04-15 Thread Zhu Lingshan
This commit deduces VIRTIO device ID as device type when probe, then ifcvf_vdpa_get_device_id() can simply return the ID. ifcvf_vdpa_get_features() and ifcvf_vdpa_get_config_size() can work properly based on the device ID. Signed-off-by: Zhu Lingshan --- drivers/vdpa/ifcvf/ifcvf_base.h | 1

[PATCH V2 2/3] vDPA/ifcvf: enable Intel C5000X-PL virtio-block for vDPA

2021-04-15 Thread Zhu Lingshan
This commit enabled Intel FPGA SmartNIC C5000X-PL virtio-block for vDPA. Signed-off-by: Zhu Lingshan --- drivers/vdpa/ifcvf/ifcvf_base.h | 8 +++- drivers/vdpa/ifcvf/ifcvf_main.c | 10 +- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/drivers/vdpa/ifcvf

[PATCH V2 3/3] vDPA/ifcvf: get_config_size should return dev specific config size

2021-04-15 Thread Zhu Lingshan
get_config_size() should return the size based on the decected device type. Signed-off-by: Zhu Lingshan --- drivers/vdpa/ifcvf/ifcvf_main.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/drivers/vdpa/ifcvf/ifcvf_main.c b/drivers/vdpa/ifcvf/ifcvf_main.c

Re: [PATCH V2 2/3] vDPA/ifcvf: enable Intel C5000X-PL virtio-block for vDPA

2021-04-15 Thread Zhu Lingshan
On 4/15/2021 9:41 PM, Stefano Garzarella wrote: On Thu, Apr 15, 2021 at 05:53:35PM +0800, Zhu Lingshan wrote: This commit enabled Intel FPGA SmartNIC C5000X-PL virtio-block for vDPA. Signed-off-by: Zhu Lingshan --- drivers/vdpa/ifcvf/ifcvf_base.h |  8 +++- drivers/vdpa/ifcvf

Re: [PATCH V2 3/3] vDPA/ifcvf: get_config_size should return dev specific config size

2021-04-15 Thread Zhu Lingshan
On 4/15/2021 9:48 PM, Stefano Garzarella wrote: On Thu, Apr 15, 2021 at 05:53:36PM +0800, Zhu Lingshan wrote: get_config_size() should return the size based on the decected device type. Signed-off-by: Zhu Lingshan --- drivers/vdpa/ifcvf/ifcvf_main.c | 18 +- 1 file changed

[PATCH V4 2/3] vDPA/ifcvf: enable Intel C5000X-PL virtio-block for vDPA

2021-04-19 Thread Zhu Lingshan
This commit enabled Intel FPGA SmartNIC C5000X-PL virtio-block for vDPA. Signed-off-by: Zhu Lingshan Reviewed-by: Stefano Garzarella Acked-by: Jason Wang --- drivers/vdpa/ifcvf/ifcvf_base.h | 8 +++- drivers/vdpa/ifcvf/ifcvf_main.c | 19 ++- 2 files changed, 25 insertions

  1   2   >