> -----Original Message-----
> From: Su, Simei <simei...@intel.com>
> Sent: Friday, September 8, 2023 6:28 PM
> To: Wu, Jingjing <jingjing...@intel.com>; Xing, Beilei 
> <beilei.x...@intel.com>;
> Zhang, Qi Z <qi.z.zh...@intel.com>
> Cc: dev@dpdk.org; Wu, Wenjun1 <wenjun1...@intel.com>; Su, Simei
> <simei...@intel.com>
> Subject: [PATCH v3] common/idpf: refactor single queue Tx function
> 
> This patch replaces flex Tx descriptor with base Tx descriptor to align with 
> kernel
> driver practice.
> 
> Signed-off-by: Simei Su <simei...@intel.com>
> ---
> v3:
> * Change context TSO descriptor from base mode to flex mode.
> 
> v2:
> * Refine commit title and commit log.
> * Remove redundant definition.
> * Modify base mode context TSO descriptor.
> 
>  drivers/common/idpf/idpf_common_rxtx.c        | 39 +++++++++----------
>  drivers/common/idpf/idpf_common_rxtx.h        |  2 +-
>  drivers/common/idpf/idpf_common_rxtx_avx512.c | 37 +++++++++---------
>  drivers/net/idpf/idpf_rxtx.c                  |  2 +-
>  4 files changed, 39 insertions(+), 41 deletions(-)
> 


> diff --git a/drivers/net/idpf/idpf_rxtx.c b/drivers/net/idpf/idpf_rxtx.c index
> 3e3d81ca6d..64f2235580 100644
> --- a/drivers/net/idpf/idpf_rxtx.c
> +++ b/drivers/net/idpf/idpf_rxtx.c
> @@ -74,7 +74,7 @@ idpf_dma_zone_reserve(struct rte_eth_dev *dev, uint16_t
> queue_idx,
>                       ring_size = RTE_ALIGN(len * sizeof(struct
> idpf_flex_tx_sched_desc),
>                                             IDPF_DMA_MEM_ALIGN);
>               else
> -                     ring_size = RTE_ALIGN(len * sizeof(struct
> idpf_flex_tx_desc),
> +                     ring_size = RTE_ALIGN(len * sizeof(struct
> idpf_base_tx_desc),

Check if idpf_flex_tx_desc is used in cpfl PMD.

>                                             IDPF_DMA_MEM_ALIGN);
>               rte_memcpy(ring_name, "idpf Tx ring", sizeof("idpf Tx ring"));
>               break;
> --
> 2.25.1

Reply via email to