We want to distinguish between NFD3 and NFDk, and maybe it is not necessary, I will update it, thanks
-----Original Message----- From: Ferruh Yigit <[email protected]> Sent: Friday, June 3, 2022 06:54 To: Kevin Liu <[email protected]>; [email protected] Cc: Niklas Soderlund <[email protected]>; Diana Wang <[email protected]>; Nole Zhang <[email protected]>; Chaoyong He <[email protected]> Subject: Re: [PATCH 08/14] net/nfp: structure adjustment On 6/2/2022 2:52 AM, Jin Liu wrote: > Add and modify the nfp PMD struct and macro that will be used by NFDK > firmware. > > Signed-off-by: Jin Liu <[email protected]> > Signed-off-by: Diana Wang <[email protected]> > Signed-off-by: Peng Zhang <[email protected]> > Signed-off-by: Chaoyong He <[email protected]> > Signed-off-by: Niklas Söderlund <[email protected]> <...> > @@ -114,9 +166,14 @@ struct nfp_net_txq { > * For each descriptor keep a reference to the mbuf and > * DMA address used until completion is signalled. > */ > - struct { > - struct rte_mbuf *mbuf; > - } *txbufs; > + union { > + struct { > + struct rte_mbuf *mbuf; > + } *txbufs; > + struct { > + struct rte_mbuf *mbuf; > + } *ktxbufs; What is the point of this union? Both structs are same.

