dev.dpdk.org archive mirror
 help / color / mirror / Atom feed
From: "Wangxiaoyun (Cloud, Network Chip Application Development Dept)" <cloud.wangxiaoyun@huawei.com>
To: "Gavin Hu (Arm Technology China)" <Gavin.Hu@arm.com>,
	"ferruh.yigit@intel.com" <ferruh.yigit@intel.com>
Cc: "dev@dpdk.org" <dev@dpdk.org>,
	"xuanziyang2@huawei.com" <xuanziyang2@huawei.com>,
	"shahar.belkar@huawei.com" <shahar.belkar@huawei.com>,
	"luoxianjun@huawei.com" <luoxianjun@huawei.com>,
	"tanya.brokhman@huawei.com" <tanya.brokhman@huawei.com>,
	"zhouguoyang@huawei.com" <zhouguoyang@huawei.com>,
	Honnappa Nagarahalli <Honnappa.Nagarahalli@arm.com>,
	"Joyce Kong (Arm Technology China)" <Joyce.Kong@arm.com>,
	nd <nd@arm.com>
Subject: Re: [dpdk-dev] [PATCH v4 01/19] net/hinic/base: add mbox command channel for SRIOV
Date: Tue, 29 Oct 2019 14:57:06 +0800	[thread overview]
Message-ID: <c633782c-d9a4-7bf5-3b61-ac1e2aad3446@huawei.com> (raw)
In-Reply-To: <VI1PR08MB537647183297975480C8614B8F970@VI1PR08MB5376.eurprd08.prod.outlook.com>

Hi Gavin,
     Thanks for your comments, I will fix the code style issue in Patch v5, and the bit operation for
hinic_test_bit and others has beed replaced with common rte_io_XX_bit APIs by Joyce Kong's pathces, I will check
other remained bit operations and replace it with the common one.

Best Regards
Xiaoyun Wang

在 2019/10/11 17:37, Gavin Hu (Arm Technology China) 写道:
> Hi Xiaoyun,
>
> Please pay attention to the coding style issue, and some other inline comments.
> For the bit operation functions, we are consolidating the bit operations functions into a common eal API family, when it is ready,
> the cpu_to_be32 and vice versa APIs scattered here and there can be replaced with the common one. This can
> largely reduce code duplications. The work was started and is ongoing, I don't intend to block the proceeding of your patches,
> Just keep an eye on it and please do the replacement after the common bit APIs are accepted.
> /Gavin
>
>> -----Original Message-----
>> From: dev <dev-bounces@dpdk.org> On Behalf Of Xiaoyun wang
>> Sent: Thursday, October 10, 2019 10:52 PM
>> To: ferruh.yigit@intel.com
>> Cc: dev@dpdk.org; xuanziyang2@huawei.com; shahar.belkar@huawei.com;
>> luoxianjun@huawei.com; tanya.brokhman@huawei.com;
>> zhouguoyang@huawei.com; Xiaoyun wang
>> <cloud.wangxiaoyun@huawei.com>
>> Subject: [dpdk-dev] [PATCH v4 01/19] net/hinic/base: add mbox command
>> channel for SRIOV
>>
>> Add mbox command channel for SR-IOV, which is used to
>> communicate between VF and VF, VF and PF. This patch
>> introduces data structures, initialization, interfaces
>> and commands of mbox channel.
>>
>> Signed-off-by: Xiaoyun wang <cloud.wangxiaoyun@huawei.com>
>> ---
>>   doc/guides/nics/features/hinic.ini       |   1 +
>>   doc/guides/nics/hinic.rst                |   1 +
>>   drivers/net/hinic/Makefile               |   1 +
>>   drivers/net/hinic/base/hinic_compat.h    |  36 +-
>>   drivers/net/hinic/base/hinic_pmd_hwdev.h |   5 +-
>>   drivers/net/hinic/base/hinic_pmd_mbox.c  | 937
>> +++++++++++++++++++++++++++++++
>>   drivers/net/hinic/base/hinic_pmd_mbox.h  |  93 +++
>>   drivers/net/hinic/base/meson.build       |   1 +
>>   8 files changed, 1070 insertions(+), 5 deletions(-)
>>   create mode 100644 drivers/net/hinic/base/hinic_pmd_mbox.c
>>   create mode 100644 drivers/net/hinic/base/hinic_pmd_mbox.h
>>
>> diff --git a/doc/guides/nics/features/hinic.ini
>> b/doc/guides/nics/features/hinic.ini
>> index fe063d6..c858411 100644
>> --- a/doc/guides/nics/features/hinic.ini
>> +++ b/doc/guides/nics/features/hinic.ini
>> @@ -19,6 +19,7 @@ RSS hash             = Y
>>   RSS key update       = Y
>>   RSS reta update      = Y
>>   Inner RSS            = Y
>> +SR-IOV               = Y
>>   CRC offload          = Y
>>   L3 checksum offload  = Y
>>   L4 checksum offload  = Y
>> diff --git a/doc/guides/nics/hinic.rst b/doc/guides/nics/hinic.rst
>> index c9329bc..c3ce101 100644
>> --- a/doc/guides/nics/hinic.rst
>> +++ b/doc/guides/nics/hinic.rst
>> @@ -24,6 +24,7 @@ Features
>>   - Link state information
>>   - Link flow control
>>   - Scattered and gather for TX and RX
>> +- SR-IOV - Partially supported at this point, VFIO only
>>
>>   Prerequisites
>>   -------------
>> diff --git a/drivers/net/hinic/Makefile b/drivers/net/hinic/Makefile
>> index 42b4a78..20a338e 100644
>> --- a/drivers/net/hinic/Makefile
>> +++ b/drivers/net/hinic/Makefile
>> @@ -59,6 +59,7 @@ SRCS-$(CONFIG_RTE_LIBRTE_HINIC_PMD) +=
>> hinic_pmd_mgmt.c
>>   SRCS-$(CONFIG_RTE_LIBRTE_HINIC_PMD) += hinic_pmd_niccfg.c
>>   SRCS-$(CONFIG_RTE_LIBRTE_HINIC_PMD) += hinic_pmd_nicio.c
>>   SRCS-$(CONFIG_RTE_LIBRTE_HINIC_PMD) += hinic_pmd_wq.c
>> +SRCS-$(CONFIG_RTE_LIBRTE_HINIC_PMD) += hinic_pmd_mbox.c
>>
>>   SRCS-$(CONFIG_RTE_LIBRTE_HINIC_PMD) += hinic_pmd_ethdev.c
>>   SRCS-$(CONFIG_RTE_LIBRTE_HINIC_PMD) += hinic_pmd_rx.c
>> diff --git a/drivers/net/hinic/base/hinic_compat.h
>> b/drivers/net/hinic/base/hinic_compat.h
>> index f599947..fe26aad 100644
>> --- a/drivers/net/hinic/base/hinic_compat.h
>> +++ b/drivers/net/hinic/base/hinic_compat.h
>> @@ -121,9 +121,7 @@ static inline int hinic_test_bit(int nr, volatile unsigned
>> long *addr)
>>   {
>>   	int res;
>>
>> -	rte_mb();
> Why is the barrier removed?
> If the barrier is moved outside, it should also be reflected in the commit log, as this is a critical change.
> /Gavin
>>   	res = ((*addr) & (1UL << nr)) != 0;
>> -	rte_mb();
> Ditto.
>>   	return res;
>>   }
>>

  reply	other threads:[~2019-10-29  6:57 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-10 14:51 [dpdk-dev] [PATCH v4 00/19] Add advanced features for Huawei hinic pmd Xiaoyun wang
2019-10-10 14:51 ` [dpdk-dev] [PATCH v4 01/19] net/hinic/base: add mbox command channel for SRIOV Xiaoyun wang
2019-10-11  9:37   ` Gavin Hu (Arm Technology China)
2019-10-29  6:57     ` Wangxiaoyun (Cloud, Network Chip Application Development Dept) [this message]
2019-10-10 14:51 ` [dpdk-dev] [PATCH v4 02/19] net/hinic/base: add HW interfaces for SR-IOV Xiaoyun wang
2019-10-10 14:51 ` [dpdk-dev] [PATCH v4 03/19] net/hinic: add VF PMD operation interfaces Xiaoyun wang
2019-10-10 14:51 ` [dpdk-dev] [PATCH v4 04/19] net/hinic: add VLAN filter and offload Xiaoyun wang
2019-10-10 14:51 ` [dpdk-dev] [PATCH v4 05/19] net/hinic: add allmulticast mode and MTU set Xiaoyun wang
2019-10-10 14:51 ` [dpdk-dev] [PATCH v4 06/19] net/hinic: add unicast and multicast MAC set Xiaoyun wang
2019-10-10 14:51 ` [dpdk-dev] [PATCH v4 07/19] net/hinic/base: add fdir config interface Xiaoyun wang
2019-10-10 14:51 ` [dpdk-dev] [PATCH v4 08/19] net/hinic: add fdir validate flow operations Xiaoyun wang
2019-10-10 14:51 ` [dpdk-dev] [PATCH v4 09/19] net/hinic: create and destroy ntuple filter Xiaoyun wang
2019-10-10 14:51 ` [dpdk-dev] [PATCH v4 10/19] net/hinic: create and destroy fdir filter Xiaoyun wang
2019-10-10 14:51 ` [dpdk-dev] [PATCH v4 11/19] net/hinic: flush " Xiaoyun wang
2019-10-10 14:51 ` [dpdk-dev] [PATCH v4 12/19] net/hinic: set link down and up Xiaoyun wang
2019-10-10 14:51 ` [dpdk-dev] [PATCH v4 13/19] net/hinic: get firmware version Xiaoyun wang
2019-10-10 14:51 ` [dpdk-dev] [PATCH v4 14/19] net/hinic: support inner L3 checksum offload Xiaoyun wang
2019-10-10 14:51 ` [dpdk-dev] [PATCH v4 15/19] net/hinic: support LRO offload Xiaoyun wang
2019-10-10 14:52 ` [dpdk-dev] [PATCH v4 16/19] net/hinic: add hinic PMD doc files Xiaoyun wang
2019-10-11  9:25   ` Ferruh Yigit
2019-10-12 14:16     ` Wangxiaoyun (Cloud, Network Chip Application Development Dept)
2019-10-10 14:52 ` [dpdk-dev] [PATCH v4 17/19] net/hinic/base: optimize aeq interfaces Xiaoyun wang
2019-10-10 14:52 ` [dpdk-dev] [PATCH v4 18/19] net/hinic: optimize RX performance Xiaoyun wang
2019-10-10 14:52 ` [dpdk-dev] [PATCH v4 19/19] net/hinic: add support for getting rxq or txq info Xiaoyun wang
2019-10-11  9:26 ` [dpdk-dev] [PATCH v4 00/19] Add advanced features for Huawei hinic pmd Ferruh Yigit
2019-10-25  9:04 ` Thomas Monjalon
2019-10-25 12:15   ` Ferruh Yigit

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=c633782c-d9a4-7bf5-3b61-ac1e2aad3446@huawei.com \
    --to=cloud.wangxiaoyun@huawei.com \
    --cc=Gavin.Hu@arm.com \
    --cc=Honnappa.Nagarahalli@arm.com \
    --cc=Joyce.Kong@arm.com \
    --cc=dev@dpdk.org \
    --cc=ferruh.yigit@intel.com \
    --cc=luoxianjun@huawei.com \
    --cc=nd@arm.com \
    --cc=shahar.belkar@huawei.com \
    --cc=tanya.brokhman@huawei.com \
    --cc=xuanziyang2@huawei.com \
    --cc=zhouguoyang@huawei.com \
    /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).