From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1093146C14; Sat, 26 Jul 2025 11:15:54 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 94370402DD; Sat, 26 Jul 2025 11:15:53 +0200 (CEST) Received: from shelob.oktetlabs.ru (shelob.oktetlabs.ru [91.220.146.113]) by mails.dpdk.org (Postfix) with ESMTP id C756C40144 for ; Sat, 26 Jul 2025 11:15:51 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 shelob.oktetlabs.ru F366450 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=oktetlabs.ru; s=default; t=1753521351; bh=dteQFKv3jfmrE1s/9p9F6RMsictFE3pEiG8/lgrAB7k=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=Ti8jJfhGp/0mkDrE2ufTvTqE0k/tNsMh7CD2PWIa5tzjcf8qP50F57OlzbLCanOm5 voU7w9ZCWn0jHPRWgupyrvfAyPV2AsE2vkd+ovRTHja6k3+WVXH4ua00yaMIjYxZWP lJfHguzq9PoDFYAwGmrPxKJlJI8wg7lyxPO1yJGs= Received: from [192.168.1.39] (unknown [188.170.87.221]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by shelob.oktetlabs.ru (Postfix) with ESMTPSA id F366450; Sat, 26 Jul 2025 12:15:50 +0300 (MSK) Message-ID: Date: Sat, 26 Jul 2025 12:15:50 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 2/2] ethdev: remove callback checks from fast path To: skori@marvell.com, Thomas Monjalon , Ferruh Yigit Cc: dev@dpdk.org References: <20250429181132.2544771-1-skori@marvell.com> <20250512150732.65743-1-skori@marvell.com> <20250512150732.65743-2-skori@marvell.com> Content-Language: en-US From: Andrew Rybchenko In-Reply-To: <20250512150732.65743-2-skori@marvell.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On 5/12/25 18:07, skori@marvell.com wrote: > From: Sunil Kumar Kori > > rte_eth_fp_ops contains ops for fast path APIs. Each API > validates availability of callback and then invoke it. > These checks impact data path performace. > > Hence removing these NULL checks instead using dummy > callbacks. > > Signed-off-by: Sunil Kumar Kori with few nits fixed (see below): Acked-by: Andrew Rybchenko [snip] > diff --git a/lib/ethdev/ethdev_driver.h b/lib/ethdev/ethdev_driver.h > index 2b4d2ae9c3..71085bddff 100644 > --- a/lib/ethdev/ethdev_driver.h > +++ b/lib/ethdev/ethdev_driver.h > @@ -1874,6 +1874,77 @@ rte_eth_pkt_burst_dummy(void *queue __rte_unused, > struct rte_mbuf **pkts __rte_unused, > uint16_t nb_pkts __rte_unused); > > +/** > + * @internal > + * Dummy DPDK callback for Tx packet prepare. > + * > + * @param queue > + * Pointer to Tx queue > + * @param pkts > + * Packet array > + * @param nb_pkts > + * Number of packets in packet array Such descriptions do not help. Please, document return value since it is always the same. Fix all descriptions in the patch.