From: Ferruh Yigit <ferruh.yigit@intel.com>
To: "Zhang, Tianfei" <tianfei.zhang@intel.com>,
Jerin Jacob <jerinj@marvell.com>,
"Dumitrescu, Cristian" <cristian.dumitrescu@intel.com>,
Hemant Agrawal <hemant.agrawal@nxp.com>,
Sachin Saxena <sachin.saxena@oss.nxp.com>,
Ray Kinsella <mdr@ashroe.eu>, Neil Horman <nhorman@tuxdriver.com>,
"Xu, Rosen" <rosen.xu@intel.com>,
"Wu, Jingjing" <jingjing.wu@intel.com>,
"Xing, Beilei" <beilei.xing@intel.com>,
Nithin Dabilpuram <ndabilpuram@marvell.com>,
Ajit Khaparde <ajit.khaparde@broadcom.com>,
Raveendra Padasalagi <raveendra.padasalagi@broadcom.com>,
Vikas Gupta <vikas.gupta@broadcom.com>,
Gagandeep Singh <g.singh@nxp.com>,
Somalapuram Amaranath <asomalap@amd.com>,
Akhil Goyal <akhil.goyal@nxp.com>,
Jay Zhou <jianjay.zhou@huawei.com>,
"McDaniel, Timothy" <timothy.mcdaniel@intel.com>,
"Ma, Liang J" <liang.j.ma@intel.com>,
"Mccarthy, Peter" <peter.mccarthy@intel.com>,
Shepard Siegel <shepard.siegel@atomicrules.com>,
Ed Czeck <ed.czeck@atomicrules.com>,
John Miller <john.miller@atomicrules.com>,
Igor Russkikh <igor.russkikh@aquantia.com>,
Pavel Belous <pavel.belous@aquantia.com>,
Rasesh Mody <rmody@marvell.com>,
Shahed Shaikh <shshaikh@marvell.com>,
Somnath Kotur <somnath.kotur@broadcom.com>,
Chas Williams <chas3@att.com>,
"Min Hu (Connor)" <humin29@huawei.com>,
Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>,
"Guo, Jia" <jia.guo@intel.com>,
"Wang, Haiyue" <haiyue.wang@intel.com>,
Marcin Wojtas <mw@semihalf.com>,
Michal Krawczyk <mk@semihalf.com>,
Guy Tzalik <gtzalik@amazon.com>,
Evgeny Schemeilin <evgenys@amazon.com>,
Igor Chauskin <igorch@amazon.com>,
"Zhang, Qi Z" <qi.z.zhang@intel.com>,
"Wang, Xiao W" <xiao.w.wang@intel.com>,
"Yang, Qiming" <qiming.yang@intel.com>,
Alfredo Cardigliano <cardigliano@ntop.org>,
Matan Azrad <matan@nvidia.com>,
Shahaf Shuler <shahafs@nvidia.com>,
Viacheslav Ovsiienko <viacheslavo@nvidia.com>,
Zyta Szpak <zr@semihalf.com>, Liron Himi <lironh@marvell.com>,
Stephen Hemminger <sthemmin@microsoft.com>,
"K. Y. Srinivasan" <kys@microsoft.com>,
Haiyang Zhang <haiyangz@microsoft.com>,
Long Li <longli@microsoft.com>,
Heinrich Kuhn <heinrich.kuhn@netronome.com>,
Harman Kalra <hkalra@marvell.com>,
Kiran Kumar K <kirankumark@marvell.com>,
Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>,
"Singh, Jasvinder" <jasvinder.singh@intel.com>,
Jiawen Wu <jiawenwu@trustnetic.com>,
Jian Wang <jianwang@trustnetic.com>, Ori Kam <orika@nvidia.com>,
Guy Kaneti <guyk@marvell.com>,
"Burakov, Anatoly" <anatoly.burakov@intel.com>,
Maxime Coquelin <maxime.coquelin@redhat.com>,
"Xia, Chenbo" <chenbo.xia@intel.com>
Cc: "dev@dpdk.org" <dev@dpdk.org>
Subject: Re: [dpdk-dev] [RFC] remove unused functions
Date: Tue, 24 Nov 2020 11:31:07 +0000 [thread overview]
Message-ID: <4613b0c1-c7fe-0f89-7cf6-a9acd3a3cd84@intel.com> (raw)
In-Reply-To: <DM6PR11MB3131AB6DEF3046DCAD737A86E3FB0@DM6PR11MB3131.namprd11.prod.outlook.com>
On 11/24/2020 11:01 AM, Zhang, Tianfei wrote:
>
>
>> -----Original Message-----
>> From: Ferruh Yigit <ferruh.yigit@intel.com>
>> Sent: 2020年11月24日 18:26
>> To: Zhang, Tianfei <tianfei.zhang@intel.com>; Jerin Jacob
>> <jerinj@marvell.com>; Dumitrescu, Cristian <cristian.dumitrescu@intel.com>;
>> Hemant Agrawal <hemant.agrawal@nxp.com>; Sachin Saxena
>> <sachin.saxena@oss.nxp.com>; Ray Kinsella <mdr@ashroe.eu>; Neil Horman
>> <nhorman@tuxdriver.com>; Xu, Rosen <rosen.xu@intel.com>; Wu, Jingjing
>> <jingjing.wu@intel.com>; Xing, Beilei <beilei.xing@intel.com>; Nithin
>> Dabilpuram <ndabilpuram@marvell.com>; Ajit Khaparde
>> <ajit.khaparde@broadcom.com>; Raveendra Padasalagi
>> <raveendra.padasalagi@broadcom.com>; Vikas Gupta
>> <vikas.gupta@broadcom.com>; Gagandeep Singh <g.singh@nxp.com>;
>> Somalapuram Amaranath <asomalap@amd.com>; Akhil Goyal
>> <akhil.goyal@nxp.com>; Jay Zhou <jianjay.zhou@huawei.com>; McDaniel,
>> Timothy <timothy.mcdaniel@intel.com>; Ma, Liang J <liang.j.ma@intel.com>;
>> Mccarthy, Peter <peter.mccarthy@intel.com>; Shepard Siegel
>> <shepard.siegel@atomicrules.com>; Ed Czeck <ed.czeck@atomicrules.com>;
>> John Miller <john.miller@atomicrules.com>; Igor Russkikh
>> <igor.russkikh@aquantia.com>; Pavel Belous <pavel.belous@aquantia.com>;
>> Rasesh Mody <rmody@marvell.com>; Shahed Shaikh
>> <shshaikh@marvell.com>; Somnath Kotur <somnath.kotur@broadcom.com>;
>> Chas Williams <chas3@att.com>; Min Hu (Connor) <humin29@huawei.com>;
>> Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>; Guo, Jia
>> <jia.guo@intel.com>; Wang, Haiyue <haiyue.wang@intel.com>; Marcin
>> Wojtas <mw@semihalf.com>; Michal Krawczyk <mk@semihalf.com>; Guy
>> Tzalik <gtzalik@amazon.com>; Evgeny Schemeilin <evgenys@amazon.com>;
>> Igor Chauskin <igorch@amazon.com>; Zhang, Qi Z <qi.z.zhang@intel.com>;
>> Wang, Xiao W <xiao.w.wang@intel.com>; Yang, Qiming
>> <qiming.yang@intel.com>; Alfredo Cardigliano <cardigliano@ntop.org>;
>> Matan Azrad <matan@nvidia.com>; Shahaf Shuler <shahafs@nvidia.com>;
>> Viacheslav Ovsiienko <viacheslavo@nvidia.com>; Zyta Szpak
>> <zr@semihalf.com>; Liron Himi <lironh@marvell.com>; Stephen Hemminger
>> <sthemmin@microsoft.com>; K. Y. Srinivasan <kys@microsoft.com>; Haiyang
>> Zhang <haiyangz@microsoft.com>; Long Li <longli@microsoft.com>; Heinrich
>> Kuhn <heinrich.kuhn@netronome.com>; Harman Kalra
>> <hkalra@marvell.com>; Kiran Kumar K <kirankumark@marvell.com>; Andrew
>> Rybchenko <andrew.rybchenko@oktetlabs.ru>; Singh, Jasvinder
>> <jasvinder.singh@intel.com>; Jiawen Wu <jiawenwu@trustnetic.com>; Jian
>> Wang <jianwang@trustnetic.com>; Ori Kam <orika@nvidia.com>; Guy Kaneti
>> <guyk@marvell.com>; Burakov, Anatoly <anatoly.burakov@intel.com>;
>> Maxime Coquelin <maxime.coquelin@redhat.com>; Xia, Chenbo
>> <chenbo.xia@intel.com>
>> Cc: dev@dpdk.org
>> Subject: Re: [RFC] remove unused functions
>>
>> On 11/24/2020 10:00 AM, Zhang, Tianfei wrote:
>>>
>>>
>>>> -----Original Message-----
>>>> From: Ferruh Yigit <ferruh.yigit@intel.com>
>>>> Sent: 2020年11月23日 17:57
>>>> To: Zhang, Tianfei <tianfei.zhang@intel.com>; Jerin Jacob
>>>> <jerinj@marvell.com>; Dumitrescu, Cristian
>>>> <cristian.dumitrescu@intel.com>; Hemant Agrawal
>>>> <hemant.agrawal@nxp.com>; Sachin Saxena
>> <sachin.saxena@oss.nxp.com>;
>>>> Ray Kinsella <mdr@ashroe.eu>; Neil Horman <nhorman@tuxdriver.com>;
>>>> Xu, Rosen <rosen.xu@intel.com>; Wu, Jingjing <jingjing.wu@intel.com>;
>>>> Xing, Beilei <beilei.xing@intel.com>; Nithin Dabilpuram
>>>> <ndabilpuram@marvell.com>; Ajit Khaparde
>>>> <ajit.khaparde@broadcom.com>; Raveendra Padasalagi
>>>> <raveendra.padasalagi@broadcom.com>; Vikas Gupta
>>>> <vikas.gupta@broadcom.com>; Gagandeep Singh <g.singh@nxp.com>;
>>>> Somalapuram Amaranath <asomalap@amd.com>; Akhil Goyal
>>>> <akhil.goyal@nxp.com>; Jay Zhou <jianjay.zhou@huawei.com>; McDaniel,
>>>> Timothy <timothy.mcdaniel@intel.com>; Ma, Liang J
>>>> <liang.j.ma@intel.com>; Mccarthy, Peter <peter.mccarthy@intel.com>;
>>>> Shepard Siegel <shepard.siegel@atomicrules.com>; Ed Czeck
>>>> <ed.czeck@atomicrules.com>; John Miller
>>>> <john.miller@atomicrules.com>; Igor Russkikh
>>>> <igor.russkikh@aquantia.com>; Pavel Belous
>>>> <pavel.belous@aquantia.com>; Rasesh Mody <rmody@marvell.com>;
>> Shahed
>>>> Shaikh <shshaikh@marvell.com>; Somnath Kotur
>>>> <somnath.kotur@broadcom.com>; Chas Williams <chas3@att.com>; Min
>> Hu
>>>> (Connor) <humin29@huawei.com>; Rahul Lakkireddy
>>>> <rahul.lakkireddy@chelsio.com>; Guo, Jia <jia.guo@intel.com>; Wang,
>>>> Haiyue <haiyue.wang@intel.com>; Marcin Wojtas <mw@semihalf.com>;
>>>> Michal Krawczyk <mk@semihalf.com>; Guy Tzalik <gtzalik@amazon.com>;
>>>> Evgeny Schemeilin <evgenys@amazon.com>; Igor Chauskin
>>>> <igorch@amazon.com>; Zhang, Qi Z <qi.z.zhang@intel.com>; Wang, Xiao
>> W
>>>> <xiao.w.wang@intel.com>; Yang, Qiming <qiming.yang@intel.com>;
>>>> Alfredo Cardigliano <cardigliano@ntop.org>; Matan Azrad
>>>> <matan@nvidia.com>; Shahaf Shuler <shahafs@nvidia.com>; Viacheslav
>>>> Ovsiienko <viacheslavo@nvidia.com>; Zyta Szpak <zr@semihalf.com>;
>>>> Liron Himi <lironh@marvell.com>; Stephen Hemminger
>>>> <sthemmin@microsoft.com>; K. Y. Srinivasan <kys@microsoft.com>;
>>>> Haiyang Zhang <haiyangz@microsoft.com>; Long Li
>>>> <longli@microsoft.com>; Heinrich Kuhn
>> <heinrich.kuhn@netronome.com>;
>>>> Harman Kalra <hkalra@marvell.com>; Kiran Kumar K
>>>> <kirankumark@marvell.com>; Andrew Rybchenko
>>>> <andrew.rybchenko@oktetlabs.ru>; Singh, Jasvinder
>>>> <jasvinder.singh@intel.com>; Jiawen Wu <jiawenwu@trustnetic.com>;
>>>> Jian Wang <jianwang@trustnetic.com>; Ori Kam <orika@nvidia.com>; Guy
>>>> Kaneti <guyk@marvell.com>; Burakov, Anatoly
>>>> <anatoly.burakov@intel.com>; Maxime Coquelin
>>>> <maxime.coquelin@redhat.com>; Xia, Chenbo <chenbo.xia@intel.com>
>>>> Cc: dev@dpdk.org
>>>> Subject: Re: [RFC] remove unused functions
>>>>
>>>> On 11/23/2020 2:55 AM, Zhang, Tianfei wrote:
>>>>>> drivers/raw/ifpga/base/opae_eth_group.c | 25 -
>>>>>> drivers/raw/ifpga/base/opae_eth_group.h | 1 -
>
> For those unused functions on opae_eth_group.c are release functions, like eth_group_release(), it should be called by fme_eth_group_uinit(),
> I will send a patch to fix it.
>
>>>>>> drivers/raw/ifpga/base/opae_hw_api.c | 212 --
>>>>>> drivers/raw/ifpga/base/opae_hw_api.h | 36 -
>>>>>> drivers/raw/ifpga/base/opae_i2c.c | 12 -
>>>>>> drivers/raw/ifpga/base/opae_i2c.h | 4 -
>>>>>> drivers/raw/ifpga/base/opae_ifpga_hw_api.c | 99 -
>>>>>> drivers/raw/ifpga/base/opae_ifpga_hw_api.h | 15 -
>>>>>
>>>>> The ifpga base code is want to provide fully functionality low level
>>>>> hardware
>>>> support for Intel FPGA card like N3000, even though some APIs are not
>>>> used by DPDK framework now,but it will useful for end-users or other
>>>> customers developing their own productions , my opinion is keeping
>>>> those APIs of ifpga base code in DPDK.
>>>>>
>>>>
>>>> The code is hidden behind the driver code, it is not accessible to user
>> directly.
>>>>
>>>> If the idea is the code can be used later, it can be added when needed.
>>>
>>> Sound good!
>>>>
>>>> If the idea is the code can be needed in the field by users, can you
>>>> please give example on the use case?
>>>
>>> Do you mean write some test cases in examples folder?
>>>
>>
>> You mentioned end user may need some of the removed functions, can you
>> give an example how an end user may need them?
>
> Currently, there is only one DPDK PMD driver using the ifpga base code, it is called ipn3ke, which is target for VBNG applications.
> The ipn3ke is not using all of our APIs which provided by ifpga base code. I am agree remove the unused functions firstly. And I plan to write
> an test application to test all of APIs ( including those unused functions ) and add those functions back in future, and I think the test applications should be a good example for the end-user how to use those APIs.
>
I am not clear how a test application can help to test driver base code functions.
Driver should call them to configure the HW, if there is no DPDK API to request
that configuration, or current device doesn't support it, what application can do?
next prev parent reply other threads:[~2020-11-24 11:31 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-19 3:52 Ferruh Yigit
2020-11-19 7:22 ` Xu, Rosen
2020-11-19 19:01 ` Stephen Hemminger
2020-11-23 2:55 ` Zhang, Tianfei
2020-11-23 9:56 ` Ferruh Yigit
2020-11-23 16:07 ` Stephen Hemminger
2020-11-24 10:01 ` Zhang, Tianfei
2020-11-24 10:00 ` Zhang, Tianfei
2020-11-24 10:26 ` Ferruh Yigit
2020-11-24 11:01 ` Zhang, Tianfei
2020-11-24 11:31 ` Ferruh Yigit [this message]
2020-11-24 12:17 ` Zhang, Tianfei
2020-11-23 16:20 ` Maxime Coquelin
2020-11-24 3:32 ` Jiawen Wu
2021-02-11 11:29 ` Burakov, Anatoly
2023-06-14 21:59 ` Stephen Hemminger
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=4613b0c1-c7fe-0f89-7cf6-a9acd3a3cd84@intel.com \
--to=ferruh.yigit@intel.com \
--cc=ajit.khaparde@broadcom.com \
--cc=akhil.goyal@nxp.com \
--cc=anatoly.burakov@intel.com \
--cc=andrew.rybchenko@oktetlabs.ru \
--cc=asomalap@amd.com \
--cc=beilei.xing@intel.com \
--cc=cardigliano@ntop.org \
--cc=chas3@att.com \
--cc=chenbo.xia@intel.com \
--cc=cristian.dumitrescu@intel.com \
--cc=dev@dpdk.org \
--cc=ed.czeck@atomicrules.com \
--cc=evgenys@amazon.com \
--cc=g.singh@nxp.com \
--cc=gtzalik@amazon.com \
--cc=guyk@marvell.com \
--cc=haiyangz@microsoft.com \
--cc=haiyue.wang@intel.com \
--cc=heinrich.kuhn@netronome.com \
--cc=hemant.agrawal@nxp.com \
--cc=hkalra@marvell.com \
--cc=humin29@huawei.com \
--cc=igor.russkikh@aquantia.com \
--cc=igorch@amazon.com \
--cc=jasvinder.singh@intel.com \
--cc=jerinj@marvell.com \
--cc=jia.guo@intel.com \
--cc=jianjay.zhou@huawei.com \
--cc=jianwang@trustnetic.com \
--cc=jiawenwu@trustnetic.com \
--cc=jingjing.wu@intel.com \
--cc=john.miller@atomicrules.com \
--cc=kirankumark@marvell.com \
--cc=kys@microsoft.com \
--cc=liang.j.ma@intel.com \
--cc=lironh@marvell.com \
--cc=longli@microsoft.com \
--cc=matan@nvidia.com \
--cc=maxime.coquelin@redhat.com \
--cc=mdr@ashroe.eu \
--cc=mk@semihalf.com \
--cc=mw@semihalf.com \
--cc=ndabilpuram@marvell.com \
--cc=nhorman@tuxdriver.com \
--cc=orika@nvidia.com \
--cc=pavel.belous@aquantia.com \
--cc=peter.mccarthy@intel.com \
--cc=qi.z.zhang@intel.com \
--cc=qiming.yang@intel.com \
--cc=rahul.lakkireddy@chelsio.com \
--cc=raveendra.padasalagi@broadcom.com \
--cc=rmody@marvell.com \
--cc=rosen.xu@intel.com \
--cc=sachin.saxena@oss.nxp.com \
--cc=shahafs@nvidia.com \
--cc=shepard.siegel@atomicrules.com \
--cc=shshaikh@marvell.com \
--cc=somnath.kotur@broadcom.com \
--cc=sthemmin@microsoft.com \
--cc=tianfei.zhang@intel.com \
--cc=timothy.mcdaniel@intel.com \
--cc=viacheslavo@nvidia.com \
--cc=vikas.gupta@broadcom.com \
--cc=xiao.w.wang@intel.com \
--cc=zr@semihalf.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).