Re: [PATCH dpdk v2 06/16] net: add ipv6 address utilities

2024-10-03 Thread Stephen Hemminger
On Tue, 1 Oct 2024 10:17:18 +0200 Robin Jarry wrote: > +/** > + * Copy an IPv6 address into another one. > + * > + * @param dst > + * The address into which to copy data. > + * @param src > + * The address from which to copy. > + */ > +static inline void > +rte_ipv6_addr_cpy(struct rte_ipv6_

Re: [PATCH dpdk v2 06/16] net: add ipv6 address utilities

2024-10-01 Thread Stephen Hemminger
On Tue, 1 Oct 2024 10:17:18 +0200 Robin Jarry wrote: > +/** Shorthand to initialize IPv6 address values */ > +#define RTE_IPV6_ADDR(...) ((struct rte_ipv6_addr){.a = {__VA_ARGS__}}) > + > +/** > + * Copy an IPv6 address into another one. > + * > + * @param dst > + * The address into which to c

[PATCH dpdk v2 06/16] net: add ipv6 address utilities

2024-10-01 Thread Robin Jarry
Add utility functions that use the previously introduced IPv6 address structure. Add basic unit tests to ensure everything works as expected. These functions will be used in the next commits to replace private and/or duplicated functions. Signed-off-by: Robin Jarry --- Notes: v2: -