DPDK patches and discussions
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: Robin Jarry <rjarry@redhat.com>
Cc: dev@dpdk.org, Vladimir Medvedkin <vladimir.medvedkin@intel.com>,
	Cristian Dumitrescu <cristian.dumitrescu@intel.com>,
	Bruce Richardson <bruce.richardson@intel.com>,
	Konstantin Ananyev <konstantin.v.ananyev@yandex.ru>,
	Wathsala Vithanage <wathsala.vithanage@arm.com>,
	Radu Nicolau <radu.nicolau@intel.com>,
	Akhil Goyal <gakhil@marvell.com>,
	Nithin Dabilpuram <ndabilpuram@marvell.com>,
	Pavan Nikhilesh <pbhagavatula@marvell.com>
Subject: Re: [PATCH dpdk v2 05/16] fib6,rib6,lpm6: use ipv6 addr struct
Date: Thu, 3 Oct 2024 16:21:22 -0700	[thread overview]
Message-ID: <20241003162122.6a2ccf65@hermes.local> (raw)
In-Reply-To: <20241001081728.301272-6-rjarry@redhat.com>

On Tue,  1 Oct 2024 10:17:17 +0200
Robin Jarry <rjarry@redhat.com> wrote:

> Replace ad-hoc uint8_t[16] array types in the API of rte_fib6, rte_rib6
> and rte_lpm6. Update all code accordingly.
> 
> Unfortunately, these three libraries are strongly intertwined, it is not
> possible to split this change in separate commits.
> 
> Signed-off-by: Robin Jarry <rjarry@redhat.com>
> ---
> 
> Notes:
>     v2: updated changelog for 24.11
> 
>  app/test-fib/main.c                    |   51 +-
>  app/test-pipeline/pipeline_lpm_ipv6.c  |   10 +-
>  app/test/test_fib6.c                   |   52 +-
>  app/test/test_fib6_perf.c              |    8 +-
>  app/test/test_lpm6.c                   |  523 +++---
>  app/test/test_lpm6_data.h              | 2025 ++++++++++++------------
>  app/test/test_lpm6_perf.c              |   10 +-
>  app/test/test_rib6.c                   |   65 +-
>  app/test/test_table_combined.c         |    2 +-
>  app/test/test_table_tables.c           |    8 +-
>  doc/guides/rel_notes/deprecation.rst   |   20 -
>  doc/guides/rel_notes/release_24_11.rst |    2 +
>  examples/ip_fragmentation/main.c       |   24 +-
>  examples/ip_pipeline/thread.c          |    2 +-
>  examples/ip_reassembly/main.c          |   24 +-
>  examples/ipsec-secgw/ipsec_lpm_neon.h  |    7 +-
>  examples/ipsec-secgw/ipsec_worker.c    |    6 +-
>  examples/ipsec-secgw/ipsec_worker.h    |    4 +-
>  examples/ipsec-secgw/rt.c              |   22 +-
>  examples/l3fwd/l3fwd_fib.c             |   39 +-
>  examples/l3fwd/l3fwd_lpm.c             |    8 +-
>  examples/l3fwd/l3fwd_route.h           |    7 +-
>  examples/l3fwd/lpm_route_parse.c       |    6 +-
>  lib/fib/meson.build                    |    4 +-
>  lib/fib/rte_fib6.c                     |   13 +-
>  lib/fib/rte_fib6.h                     |   11 +-
>  lib/fib/trie.c                         |   99 +-
>  lib/fib/trie.h                         |   16 +-
>  lib/fib/trie_avx512.c                  |   38 +-
>  lib/fib/trie_avx512.h                  |   10 +-
>  lib/lpm/meson.build                    |    1 +
>  lib/lpm/rte_lpm6.c                     |  106 +-
>  lib/lpm/rte_lpm6.h                     |   14 +-
>  lib/node/ip6_lookup.c                  |   16 +-
>  lib/rib/meson.build                    |    2 +-
>  lib/rib/rte_rib6.c                     |   74 +-
>  lib/rib/rte_rib6.h                     |   13 +-
>  lib/table/rte_table_lpm_ipv6.c         |   12 +-
>  lib/table/rte_table_lpm_ipv6.h         |    4 +-
>  39 files changed, 1683 insertions(+), 1675 deletions(-)
> 
> diff --git a/app/test-fib/main.c b/app/test-fib/main.c
> index c49bfe8bcec3..a43a0ae4df5d 100644
> --- a/app/test-fib/main.c
> +++ b/app/test-fib/main.c
> @@ -123,7 +123,7 @@ struct rt_rule_4 {
>  };
>  
>  struct rt_rule_6 {
> -	uint8_t		addr[16];
> +	struct rte_ipv6_addr addr;
>  	uint8_t		depth;
>  	uint64_t	nh;
>  };
> @@ -306,15 +306,15 @@ shuffle_rt_6(struct rt_rule_6 *rt, int n)
>  
>  	for (i = 0; i < n; i++) {
>  		j = rte_rand() % n;
> -		memcpy(tmp.addr, rt[i].addr, 16);
> +		memcpy(&tmp.addr, &rt[i].addr, 16);

Yet more places where memcpy should be replaced by assignment.

  reply	other threads:[~2024-10-03 23:24 UTC|newest]

Thread overview: 56+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-21 16:25 [PATCH dpdk v1 00/15] IPv6 APIs overhaul Robin Jarry
2024-08-21 16:25 ` [PATCH dpdk v1 01/15] net: split raw checksum functions in separate header Robin Jarry
2024-08-21 16:25 ` [PATCH dpdk v1 02/15] net: split ipv6 symbols " Robin Jarry
2024-08-21 16:25 ` [PATCH dpdk v1 03/15] net: add structure for ipv6 addresses Robin Jarry
2024-08-21 16:25 ` [PATCH dpdk v1 04/15] net: use ipv6 structure for header addresses Robin Jarry
2024-08-21 16:25 ` [PATCH dpdk v1 05/15] fib6,rib6,lpm6: use ipv6 addr struct Robin Jarry
2024-08-21 16:25 ` [PATCH dpdk v1 06/15] net: add ipv6 address utilities Robin Jarry
2024-08-21 16:25 ` [PATCH dpdk v1 07/15] fib6,rib6,lpm6: use ipv6 utils Robin Jarry
2024-08-21 16:25 ` [PATCH dpdk v1 08/15] graph,node: use ipv6 addr struct and utils Robin Jarry
2024-08-21 16:25 ` [PATCH dpdk v1 09/15] pipeline: use ipv6 addr struct Robin Jarry
2024-08-21 16:25 ` [PATCH dpdk v1 10/15] ipsec: " Robin Jarry
2024-08-21 16:25 ` [PATCH dpdk v1 11/15] thash: " Robin Jarry
2024-08-21 16:25 ` [PATCH dpdk v1 12/15] gro: " Robin Jarry
2024-08-21 16:25 ` [PATCH dpdk v1 13/15] rte_flow: " Robin Jarry
2024-08-21 16:25 ` [PATCH dpdk v1 14/15] rib6,fib6,lpm6: remove duplicate constants Robin Jarry
2024-08-21 16:25 ` [PATCH dpdk v1 15/15] net: add utilities for well known ipv6 address types Robin Jarry
2024-08-21 22:28 ` [PATCH dpdk v1 00/15] IPv6 APIs overhaul Morten Brørup
2024-08-22 14:13 ` Stephen Hemminger
2024-08-22 15:13   ` Morten Brørup
2024-08-22 15:27     ` Robin Jarry
2024-08-22 18:41       ` Morten Brørup
2024-08-22 15:14   ` Robin Jarry
2024-08-22 15:16   ` Robin Jarry
2024-10-01  8:17 ` [PATCH dpdk v2 00/16] " Robin Jarry
2024-10-01  8:17   ` [PATCH dpdk v2 01/16] net: split raw checksum functions in separate header Robin Jarry
2024-10-03 23:12     ` Stephen Hemminger
2024-10-01  8:17   ` [PATCH dpdk v2 02/16] net: split ipv6 symbols " Robin Jarry
2024-10-03 23:15     ` Stephen Hemminger
2024-10-01  8:17   ` [PATCH dpdk v2 03/16] net: add structure for ipv6 addresses Robin Jarry
2024-10-03 23:18     ` Stephen Hemminger
2024-10-04 11:59       ` Robin Jarry
2024-10-01  8:17   ` [PATCH dpdk v2 04/16] net: use ipv6 structure for header addresses Robin Jarry
2024-10-03 23:20     ` Stephen Hemminger
2024-10-04 18:01     ` Ferruh Yigit
2024-10-04 20:04       ` Robin Jarry
2024-10-01  8:17   ` [PATCH dpdk v2 05/16] fib6,rib6,lpm6: use ipv6 addr struct Robin Jarry
2024-10-03 23:21     ` Stephen Hemminger [this message]
2024-10-01  8:17   ` [PATCH dpdk v2 06/16] net: add ipv6 address utilities Robin Jarry
2024-10-01 15:35     ` Stephen Hemminger
2024-10-03 23:22     ` Stephen Hemminger
2024-10-01  8:17   ` [PATCH dpdk v2 07/16] fib6,rib6,lpm6: use ipv6 utils Robin Jarry
2024-10-01  8:17   ` [PATCH dpdk v2 08/16] graph,node: use ipv6 addr struct and utils Robin Jarry
2024-10-01  8:17   ` [PATCH dpdk v2 09/16] pipeline: use ipv6 addr struct Robin Jarry
2024-10-03 23:23     ` Stephen Hemminger
2024-10-04 11:55       ` Robin Jarry
2024-10-01  8:17   ` [PATCH dpdk v2 10/16] ipsec: " Robin Jarry
2024-10-01  8:17   ` [PATCH dpdk v2 11/16] thash: " Robin Jarry
2024-10-01  8:17   ` [PATCH dpdk v2 12/16] gro: " Robin Jarry
2024-10-01  8:17   ` [PATCH dpdk v2 13/16] rte_flow: " Robin Jarry
2024-10-01  8:17   ` [PATCH dpdk v2 14/16] rib6,fib6,lpm6: remove duplicate constants Robin Jarry
2024-10-03 23:12     ` Stephen Hemminger
2024-10-04 11:54       ` Robin Jarry
2024-10-04 16:16         ` Stephen Hemminger
2024-10-01  8:17   ` [PATCH dpdk v2 15/16] net: add utilities for well known ipv6 address types Robin Jarry
2024-10-03 23:24     ` Stephen Hemminger
2024-10-01  8:17   ` [PATCH dpdk v2 16/16] ipv6: add function to check ipv6 version Robin Jarry

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20241003162122.6a2ccf65@hermes.local \
    --to=stephen@networkplumber.org \
    --cc=bruce.richardson@intel.com \
    --cc=cristian.dumitrescu@intel.com \
    --cc=dev@dpdk.org \
    --cc=gakhil@marvell.com \
    --cc=konstantin.v.ananyev@yandex.ru \
    --cc=ndabilpuram@marvell.com \
    --cc=pbhagavatula@marvell.com \
    --cc=radu.nicolau@intel.com \
    --cc=rjarry@redhat.com \
    --cc=vladimir.medvedkin@intel.com \
    --cc=wathsala.vithanage@arm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).