Re: [PATCH v1 2/2] ethdev: pass structure pointer

2023-02-28 Thread Ferruh Yigit
On 2/23/2023 12:30 PM, Ankur Dwivedi wrote: > The rte_eth_xstat_name structure is of size 64 bytes. Instead of passing > the structure as value it is passed as a pointer, to avoid copy of 64 bytes > in function call stack. > > Signed-off-by: Ankur Dwivedi > --- > lib/ethdev/ethdev_trace.h | 4 ++

[PATCH v1 2/2] ethdev: pass structure pointer

2023-02-23 Thread Ankur Dwivedi
The rte_eth_xstat_name structure is of size 64 bytes. Instead of passing the structure as value it is passed as a pointer, to avoid copy of 64 bytes in function call stack. Signed-off-by: Ankur Dwivedi --- lib/ethdev/ethdev_trace.h | 4 ++-- lib/ethdev/rte_ethdev.c | 2 +- 2 files changed, 3 i