On Fri, 19 Mar 2021 08:02:06 -0400 Venkata Suresh Kumar P <[email protected]> wrote:
> +static void
> +reader_stats_read(void *port, struct rte_swx_port_in_stats *stats)
> +{
> + struct reader *p = port;
> +
> + memcpy(stats, &p->stats, sizeof(p->stats));
> +}
Why not use structure assignment (which is type safe) instead of memcpy?

