[EXTERNAL] Re: [PATCH v2 1/2] ethdev: remove unnecessary type conversion
Sunil Kumar Kori
skori at marvell.com
Tue Jul 29 07:31:03 CEST 2025
Hi Stephen,
I will take care of it and resubmit.
Thanks
Sunil Kumar Kori
From: Stephen Hemminger <stephen at networkplumber.org>
Sent: Tuesday, July 29, 2025 9:59 AM
To: Sunil Kumar Kori <skori at marvell.com>
Cc: Shepard Siegel <shepard.siegel at atomicrules.com>; Ed Czeck <ed.czeck at atomicrules.com>; John Miller <john.miller at atomicrules.com>; Igor Russkikh <irusskikh at marvell.com>; Ajit Khaparde <ajit.khaparde at broadcom.com>; Somnath Kotur <somnath.kotur at broadcom.com>; Nithin Kumar Dabilpuram <ndabilpuram at marvell.com>; Kiran Kumar Kokkilagadda <kirankumark at marvell.com>; Satha Koteswara Rao Kottidi <skoteshwar at marvell.com>; Harman Kalra <hkalra at marvell.com>; Hemant Agrawal <hemant.agrawal at nxp.com>; Sachin Saxena <sachin.saxena at nxp.com>; John Daley <johndale at cisco.com>; Hyong Youb Kim <hyonkim at cisco.com>; Jie Hai <haijie1 at huawei.com>; Ian Stokes <ian.stokes at intel.com>; Bruce Richardson <bruce.richardson at intel.com>; Vladimir Medvedkin <vladimir.medvedkin at intel.com>; Anatoly Burakov <anatoly.burakov at intel.com>; Dariusz Sosnowski <dsosnowski at nvidia.com>; Viacheslav Ovsiienko <viacheslavo at nvidia.com>; Bing Zhao <bingz at nvidia.com>; Ori Kam <orika at nvidia.com>; Suanming Mou <suanmingm at nvidia.com>; Matan Azrad <matan at nvidia.com>; Long Li <longli at microsoft.com>; Wei Hu <weh at microsoft.com>; Chaoyong He <chaoyong.he at corigine.com>; Jiawen Wu <jiawenwu at trustnetic.com>; Andrew Rybchenko <andrew.rybchenko at oktetlabs.ru>; Jerin Jacob <jerinj at marvell.com>; Maciej Czekaj [C] <mczekaj at marvell.com>; Jian Wang <jianwang at trustnetic.com>; Maxime Coquelin <maxime.coquelin at redhat.com>; Chenbo Xia <chenbox at nvidia.com>; Jochen Behrens <jochen.behrens at broadcom.com>; Thomas Monjalon <thomas at monjalon.net>; Ferruh Yigit <ferruh.yigit at amd.com>; dev at dpdk.org
Subject: [EXTERNAL] Re: [PATCH v2 1/2] ethdev: remove unnecessary type conversion
On Mon, 12 May 2025 20: 37: 19 +0530 <skori@ marvell. com> wrote: > From: Sunil Kumar Kori <skori@ marvell. com> > > As rte_eth_rx_queue_count() returns signed value to represent > the error cases but internally invoked callback
ZjQcmQRYFpfptBannerStart
Prioritize security for external emails:
Confirm sender and content safety before clicking links or opening attachments
Report Suspicious <https://us-phishalarm-ewt.proofpoint.com/EWT/v1/CRVmXkqW!tO3Z1f8UAnU6tQ_8mZxaDpsd9S1Slu0Hp4J3JKyA7OZCT6lylV5T0yFk--SXWH2bVATYaqk7jqFo_2iyTw$>
ZjQcmQRYFpfptBannerEnd
On Mon, 12 May 2025 20:37:19 +0530
<skori at marvell.com<mailto:skori at marvell.com>> wrote:
> From: Sunil Kumar Kori <skori at marvell.com<mailto:skori at marvell.com>>
>
> As rte_eth_rx_queue_count() returns signed value to represent
> the error cases but internally invoked callback is returning
> unsigned value. Hence unnecessary type conversion is done.
>
> To avoid this typecasting from signed to unsigned, fixed
> return type of callback functions.
>
> Signed-off-by: Sunil Kumar Kori <skori at marvell.com<mailto:skori at marvell.com>>
> ---
> drivers/net/ark/ark_ethdev_rx.c | 2 +-
> drivers/net/ark/ark_ethdev_rx.h | 2 +-
> drivers/net/atlantic/atl_ethdev.h | 2 +-
> drivers/net/atlantic/atl_rxtx.c | 2 +-
> drivers/net/bnxt/bnxt_ethdev.c | 2 +-
> drivers/net/cnxk/cnxk_ethdev.h | 2 +-
> drivers/net/cnxk/cnxk_ethdev_ops.c | 2 +-
> drivers/net/dpaa/dpaa_ethdev.c | 2 +-
> drivers/net/dpaa2/dpaa2_ethdev.c | 2 +-
> drivers/net/enic/enic_ethdev.c | 2 +-
> drivers/net/hns3/hns3_rxtx.c | 2 +-
> drivers/net/hns3/hns3_rxtx.h | 2 +-
> drivers/net/intel/e1000/e1000_ethdev.h | 4 ++--
> drivers/net/intel/e1000/em_rxtx.c | 2 +-
> drivers/net/intel/e1000/igb_rxtx.c | 2 +-
> drivers/net/intel/e1000/igc_txrx.c | 2 +-
> drivers/net/intel/e1000/igc_txrx.h | 2 +-
> drivers/net/intel/fm10k/fm10k.h | 2 +-
> drivers/net/intel/fm10k/fm10k_rxtx.c | 2 +-
> drivers/net/intel/i40e/i40e_rxtx.c | 2 +-
> drivers/net/intel/i40e/i40e_rxtx.h | 2 +-
> drivers/net/intel/iavf/iavf_rxtx.c | 2 +-
> drivers/net/intel/iavf/iavf_rxtx.h | 2 +-
> drivers/net/intel/ice/ice_rxtx.c | 2 +-
> drivers/net/intel/ice/ice_rxtx.h | 2 +-
> drivers/net/intel/ixgbe/ixgbe_ethdev.h | 2 +-
> drivers/net/intel/ixgbe/ixgbe_rxtx.c | 2 +-
> drivers/net/mlx5/mlx5_rx.c | 4 ++--
> drivers/net/mlx5/mlx5_rx.h | 2 +-
> drivers/net/netvsc/hn_rxtx.c | 2 +-
> drivers/net/netvsc/hn_var.h | 2 +-
> drivers/net/nfp/nfp_rxtx.c | 2 +-
> drivers/net/nfp/nfp_rxtx.h | 2 +-
> drivers/net/ngbe/ngbe_ethdev.h | 2 +-
> drivers/net/ngbe/ngbe_rxtx.c | 2 +-
> drivers/net/sfc/sfc_ethdev.c | 2 +-
> drivers/net/thunderx/nicvf_rxtx.c | 2 +-
> drivers/net/thunderx/nicvf_rxtx.h | 2 +-
> drivers/net/txgbe/txgbe_ethdev.h | 2 +-
> drivers/net/txgbe/txgbe_rxtx.c | 2 +-
> drivers/net/vhost/rte_eth_vhost.c | 2 +-
> drivers/net/vmxnet3/vmxnet3_ethdev.h | 2 +-
> drivers/net/vmxnet3/vmxnet3_rxtx.c | 2 +-
> lib/ethdev/rte_ethdev.h | 2 +-
> lib/ethdev/rte_ethdev_core.h | 2 +-
> 45 files changed, 47 insertions(+), 47 deletions(-)
Was going to apply this for 25.11 (next-net).
But the Intel drivers got rearranged and no longer applies.
Would prefer that you rebase and resubmit, instead of me trying to patch a patch for this.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/dev/attachments/20250729/03b35bfc/attachment-0001.htm>
More information about the dev
mailing list