RE: [PATCH 04/10] net/nfp: improve the logic readability

2024-10-10 Thread Chaoyong He
> On Thu, 10 Oct 2024 17:17:10 +0800 > Chaoyong He wrote: > > > + > > +port_cleanup: > > + for (uint32_t j = 0; j < i; j++) { > > + struct rte_eth_dev *eth_dev; > > + > > + nfp_port_name_generate(port_name, sizeof(port_name), j, > pf_dev); > > + eth_dev = rte_eth_d

[PATCH 04/10] net/nfp: improve the logic readability

2024-10-10 Thread Chaoyong He
Try our best to make the logic in secondary proess the same with the primary process and improve the readability, by add helper functions and rename function. Signed-off-by: Chaoyong He Reviewed-by: Long Wu Reviewed-by: Peng Zhang --- drivers/net/nfp/nfp_ethdev.c | 86 +++--