From: Zhu Lingshan <lingshan.zhu@linux.intel.com>
To: Mark D Rustad <mrustad@gmail.com>, Zhu Lingshan <lingshan.zhu@intel.com>
Cc: mst@redhat.com, jasowang@redhat.com, alex.williamson@redhat.com,
linux-kernel@vger.kernel.org,
virtualization@lists.linux-foundation.org, kvm@vger.kernel.org,
netdev@vger.kernel.org, dan.daly@intel.com,
cunming.liang@intel.com, tiwei.bie@intel.com,
jason.zeng@intel.com
Subject: Re: [PATCH 2/2] IFC VDPA layer
Date: Tue, 12 Nov 2019 16:40:15 +0800 [thread overview]
Message-ID: <8df224df-f8f3-54f5-e8c3-ea3ad04f6eda@linux.intel.com> (raw)
In-Reply-To: <A48EFA5D-56C6-404B-96FF-75736FCFD11E@gmail.com>
Hello Mark,
Thanks for your comments, I will change the lines in next patchset.
Thanks,
BR
Zhu Lingshan
On 11/10/2019 3:56 AM, Mark D Rustad wrote:
> On Nov 5, 2019, at 1:37 AM, Zhu Lingshan <lingshan.zhu@intel.com> wrote:
>
>> This commit introduced IFC operations for vdpa, which complys to
>> virtio_mdev and vhost_mdev interfaces, handles IFC VF
>> initialization, configuration and removal.
>>
>> Signed-off-by: Zhu Lingshan <lingshan.zhu@intel.com>
>> ---
>> drivers/vhost/ifcvf/ifcvf_main.c | 605
>> +++++++++++++++++++++++++++++++++++++++
>> 1 file changed, 605 insertions(+)
>> create mode 100644 drivers/vhost/ifcvf/ifcvf_main.c
>>
>> diff --git a/drivers/vhost/ifcvf/ifcvf_main.c
>> b/drivers/vhost/ifcvf/ifcvf_main.c
>> new file mode 100644
>> index 0000000..7165457
>> --- /dev/null
>> +++ b/drivers/vhost/ifcvf/ifcvf_main.c
>> @@ -0,0 +1,605 @@
>
> <snip>
>
>> + for (i = 0; i < IFCVF_MAX_QUEUE_PAIRS * 2; i++) {
>> + if (!vf->vring[i].ready) {
>> + IFC_ERR(ifcvf->dev,
>> + "Failed to start datapath, vring %d not ready.\n", i);
>> + return -EINVAL;
>> + }
>> +
>> + if (!vf->vring[i].size) {
>> + IFC_ERR(ifcvf->dev,
>> + "Failed to start datapath, vring %d size is
>> zero.\n", i);
>> + return -EINVAL;
>> + }
>> +
>> + if (!vf->vring[i].desc || !vf->vring[i].avail ||
>> + !vf->vring[i].used) {
>> + IFC_ERR(ifcvf->dev,
>> + "Failed to start datapath, "
>> + "invaild value for vring %d desc,"
>> + "avail_idx or usex_idx.\n", i);
>
> Please don't break up the format string. Start it on the second line
> and let it run as long as it needs to. Also you will find that it is
> improperly spaced as it is. It makes it easier to grep the source to
> find the source of a message. The coding style has an explicit
> exception for such long lines for this reason.
>
> Also, please don't put .'s on the end of log messages. It serves no
> purpose and just adds to the log, the binary size and the source size.
> There are quite a few of these.
>
> <snip>
>
> --
> Mark Rustad, MRustad@gmail.com
prev parent reply other threads:[~2019-11-12 8:40 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-05 9:37 [PATCH 0/2] Intel IFC VF driver for VDPA Zhu Lingshan
2019-11-05 9:37 ` [PATCH 1/2] IFC hardware operation layer Zhu Lingshan
2019-11-05 11:29 ` Michael S. Tsirkin
2019-11-08 11:55 ` Zhu Lingshan
2019-11-05 12:45 ` Michael S. Tsirkin
2019-11-05 12:47 ` Jason Wang
2019-11-08 8:04 ` Zhu Lingshan
2019-11-06 10:09 ` Jason Wang
2019-11-08 12:24 ` Zhu Lingshan
2019-11-08 12:57 ` Michael S. Tsirkin
2019-11-08 13:07 ` Zhu Lingshan
2019-11-09 20:07 ` Mark D Rustad
2019-11-05 9:37 ` [PATCH 2/2] IFC VDPA layer Zhu Lingshan
2019-11-06 10:39 ` Jason Wang
2019-11-08 12:46 ` Zhu Lingshan
2019-11-12 8:54 ` Zhu Lingshan
2019-11-09 19:56 ` Mark D Rustad
2019-11-12 8:40 ` Zhu Lingshan [this message]
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=8df224df-f8f3-54f5-e8c3-ea3ad04f6eda@linux.intel.com \
--to=lingshan.zhu@linux.intel.com \
--cc=alex.williamson@redhat.com \
--cc=cunming.liang@intel.com \
--cc=dan.daly@intel.com \
--cc=jason.zeng@intel.com \
--cc=jasowang@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=lingshan.zhu@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mrustad@gmail.com \
--cc=mst@redhat.com \
--cc=netdev@vger.kernel.org \
--cc=tiwei.bie@intel.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).