From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 910F745B09; Thu, 10 Oct 2024 21:42:18 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7F23640689; Thu, 10 Oct 2024 21:42:18 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id 1E18F40684 for ; Thu, 10 Oct 2024 21:42:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1728589336; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=L4Co0lmWU2oRlgNFLwevP7a8nlue8iZ9dIwiK1IETko=; b=P3o71epu+yfApyDrv0fRVRDkA2MdD+kJTd4Pgo34sht5dQR5TJ2xklCEf26aSXB/Qus6E2 Obw/f4Ky8LcMj5UDA7j1WzG7vOyTpEaYKjHjcaEzMrfK5UEEXI9kGNVlPh8q1uxsUDl2ey MK1kJqFBPx7rqUXFBLBgPaQVt4Pa6bY= Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-549-7uQ287QkMi2LTN5ikI7SOw-1; Thu, 10 Oct 2024 15:42:15 -0400 X-MC-Unique: 7uQ287QkMi2LTN5ikI7SOw-1 Received: from mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.40]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 94AEC19560A3 for ; Thu, 10 Oct 2024 19:42:14 +0000 (UTC) Received: from ringo.redhat.com (unknown [10.39.208.7]) by mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 961A019560AA; Thu, 10 Oct 2024 19:42:13 +0000 (UTC) From: Robin Jarry To: dev@dpdk.org Subject: [PATCH dpdk v3 03/17] net: add structure for ipv6 addresses Date: Thu, 10 Oct 2024 21:41:33 +0200 Message-ID: <20241010194148.1877659-4-rjarry@redhat.com> In-Reply-To: <20241010194148.1877659-1-rjarry@redhat.com> References: <20240821162516.610624-17-rjarry@redhat.com> <20241010194148.1877659-1-rjarry@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.40 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org There is currently no structure defined for IPv6 addresses. Introduce one that is simply a uint8_t array of 16 elements. The idea is to ensure this structure alignment is 1 so that it can be mapped directly on unaligned packet memory. Signed-off-by: Robin Jarry --- Notes: v3: move RTE_IPV6_MAX_DEPTH to next commit lib/net/rte_ip6.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/net/rte_ip6.h b/lib/net/rte_ip6.h index 9ed737d5eb81..a5ebe065b61e 100644 --- a/lib/net/rte_ip6.h +++ b/lib/net/rte_ip6.h @@ -35,6 +35,15 @@ extern "C" { #endif +#define RTE_IPV6_ADDR_SIZE 16 + +/** + * IPv6 Address + */ +struct rte_ipv6_addr { + uint8_t a[RTE_IPV6_ADDR_SIZE]; +}; + /** * IPv6 Header */ -- 2.46.2