[dpdk-dev] [RFC] remove unused functions

Zhang, Tianfei tianfei.zhang at intel.com
Tue Nov 24 11:01:17 CET 2020



> -----Original Message-----
> From: Stephen Hemminger <stephen at networkplumber.org>
> Sent: 2020年11月24日 0:07
> To: Yigit, Ferruh <ferruh.yigit at intel.com>
> Cc: Zhang, Tianfei <tianfei.zhang at intel.com>; Jerin Jacob
> <jerinj at marvell.com>; Dumitrescu, Cristian <cristian.dumitrescu at intel.com>;
> Hemant Agrawal <hemant.agrawal at nxp.com>; Sachin Saxena
> <sachin.saxena at oss.nxp.com>; Ray Kinsella <mdr at ashroe.eu>; Neil Horman
> <nhorman at tuxdriver.com>; Xu, Rosen <rosen.xu at intel.com>; Wu, Jingjing
> <jingjing.wu at intel.com>; Xing, Beilei <beilei.xing at intel.com>; Nithin
> Dabilpuram <ndabilpuram at marvell.com>; Ajit Khaparde
> <ajit.khaparde at broadcom.com>; Raveendra Padasalagi
> <raveendra.padasalagi at broadcom.com>; Vikas Gupta
> <vikas.gupta at broadcom.com>; Gagandeep Singh <g.singh at nxp.com>;
> Somalapuram Amaranath <asomalap at amd.com>; Akhil Goyal
> <akhil.goyal at nxp.com>; Jay Zhou <jianjay.zhou at huawei.com>; McDaniel,
> Timothy <timothy.mcdaniel at intel.com>; Ma, Liang J <liang.j.ma at intel.com>;
> Mccarthy, Peter <peter.mccarthy at intel.com>; Shepard Siegel
> <shepard.siegel at atomicrules.com>; Ed Czeck <ed.czeck at atomicrules.com>;
> John Miller <john.miller at atomicrules.com>; Igor Russkikh
> <igor.russkikh at aquantia.com>; Pavel Belous <pavel.belous at aquantia.com>;
> Rasesh Mody <rmody at marvell.com>; Shahed Shaikh
> <shshaikh at marvell.com>; Somnath Kotur <somnath.kotur at broadcom.com>;
> Chas Williams <chas3 at att.com>; Min Hu (Connor) <humin29 at huawei.com>;
> Rahul Lakkireddy <rahul.lakkireddy at chelsio.com>; Guo, Jia
> <jia.guo at intel.com>; Wang, Haiyue <haiyue.wang at intel.com>; Marcin
> Wojtas <mw at semihalf.com>; Michal Krawczyk <mk at semihalf.com>; Guy
> Tzalik <gtzalik at amazon.com>; Evgeny Schemeilin <evgenys at amazon.com>;
> Igor Chauskin <igorch at amazon.com>; Zhang, Qi Z <qi.z.zhang at intel.com>;
> Wang, Xiao W <xiao.w.wang at intel.com>; Yang, Qiming
> <qiming.yang at intel.com>; Alfredo Cardigliano <cardigliano at ntop.org>;
> Matan Azrad <matan at nvidia.com>; Shahaf Shuler <shahafs at nvidia.com>;
> Viacheslav Ovsiienko <viacheslavo at nvidia.com>; Zyta Szpak
> <zr at semihalf.com>; Liron Himi <lironh at marvell.com>; Stephen Hemminger
> <sthemmin at microsoft.com>; K. Y. Srinivasan <kys at microsoft.com>; Haiyang
> Zhang <haiyangz at microsoft.com>; Long Li <longli at microsoft.com>; Heinrich
> Kuhn <heinrich.kuhn at netronome.com>; Harman Kalra
> <hkalra at marvell.com>; Kiran Kumar K <kirankumark at marvell.com>; Andrew
> Rybchenko <andrew.rybchenko at oktetlabs.ru>; Singh, Jasvinder
> <jasvinder.singh at intel.com>; Jiawen Wu <jiawenwu at trustnetic.com>; Jian
> Wang <jianwang at trustnetic.com>; Ori Kam <orika at nvidia.com>; Guy Kaneti
> <guyk at marvell.com>; Burakov, Anatoly <anatoly.burakov at intel.com>;
> Maxime Coquelin <maxime.coquelin at redhat.com>; Xia, Chenbo
> <chenbo.xia at intel.com>; dev at dpdk.org
> Subject: Re: [dpdk-dev] [RFC] remove unused functions
> 
> On Mon, 23 Nov 2020 09:56:51 +0000
> Ferruh Yigit <ferruh.yigit at intel.com> wrote:
> 
> > 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 -
> > >>   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.
> >
> > If the idea is the code can be needed in the field by users, can you
> > please give example on the use case?
> 
> Dead code is buggy code. Please remove it.
> Maintaining dead code increases the overall technical debt.
> Dead code is guaranteed not to be tested.
> 
> If someone needs it in future they can resurrect it from earlier versions which
> will always be there in git.
> 
> If Intel wants to support it in DPDK then it should provide API's and tests for it.

Yes, I agree with you. I want to write some test cases for ifpga base code.


More information about the dev mailing list