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 D4ACE43D47; Mon, 25 Mar 2024 16:20:42 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 91C7040298; Mon, 25 Mar 2024 16:20:41 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id E936140271 for ; Mon, 25 Mar 2024 16:20:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1711380039; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jDGNMrqb2LX6M9RjgvFOfDQQJH5AXan+Pt6dJEC3E2M=; b=G0jwmBVIoIhvXcD40B5HQw0wh++6+605Hlis9fOkA4BZBzwt1dy1vbRvEyOhzoLcmM8tp5 UACZR2fw8e5xKgIbNwUdT2vLsiZP+OimJ91eV1bUj8zEQRLfTA9h+bNSUr7G0ituFu1Qmi 3QZVgqqMVF/EP8UaQa7uOvWumAE5WXU= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-130-MTMz01dMN32xgEr3YH8tIw-1; Mon, 25 Mar 2024 11:20:37 -0400 X-MC-Unique: MTMz01dMN32xgEr3YH8tIw-1 Received: by mail-wm1-f69.google.com with SMTP id 5b1f17b1804b1-412c7ee0c97so21535935e9.0 for ; Mon, 25 Mar 2024 08:20:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711380036; x=1711984836; h=in-reply-to:references:user-agent:from:cc:subject:to:message-id :date:content-transfer-encoding:mime-version:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=jDGNMrqb2LX6M9RjgvFOfDQQJH5AXan+Pt6dJEC3E2M=; b=C20MkcbrTzGz0DnphNOFlMbHrAogNA8TWCJgdLMpFPCrTN+EcA0pqvUSWLsTChPkM6 dF6LHiHNrF99C/cGascUVP5op6vGcRbbGSHrnZCxUBmQVqJA0CVSnKBa4wk63tyTZkYe LNmAj9RsynTTNSXWhSEXYLNQhSd9GcGvs9twsTj3RamZeA3gj7BlTiEvHugo1w6Il/YR VGdmiL7nfVrT1MkO1tcJj30HIUjRu7wueOtL42BSrMVlE71Oy+7GnX1q/FPT2HhpDdnl G6uUaoTw0bF3x9CJB4IdWSvqH+NvtLdySJpYn94Ua7ItPXB7h/qgcVhF465gavTi3yJC Mw6g== X-Gm-Message-State: AOJu0YwW7OraFe1gV6D+mP+b3AZM6/WwralAP/voEcyPpbtnDQDqps3j FXVmPSJLDfLYY7UUMqomof2ZEgDZBv37EkaUTBOWC6kNxbfjrYlSH4am3W8U3tEL8ExrscewRzm O1SOGRv0FJwMpYUi56Q9AGtvTK7uHaDE7miIf2HfG X-Received: by 2002:a05:600c:998:b0:414:22b5:c32c with SMTP id w24-20020a05600c099800b0041422b5c32cmr5774470wmp.37.1711380036627; Mon, 25 Mar 2024 08:20:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHL+TjTCAlZHmxfzlzvZBw8mkdMa02/Wk9TWAh/thuEmMYS1a9TkaF+SBhR9Y6VzccNhiOYYA== X-Received: by 2002:a05:600c:998:b0:414:22b5:c32c with SMTP id w24-20020a05600c099800b0041422b5c32cmr5774461wmp.37.1711380036322; Mon, 25 Mar 2024 08:20:36 -0700 (PDT) Received: from localhost (2a01cb000f8b9700598da2e1679e8383.ipv6.abo.wanadoo.fr. [2a01:cb00:f8b:9700:598d:a2e1:679e:8383]) by smtp.gmail.com with ESMTPSA id p11-20020a056000018b00b0033e75e5f280sm9728153wrx.113.2024.03.25.08.20.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 Mar 2024 08:20:35 -0700 (PDT) Mime-Version: 1.0 Date: Mon, 25 Mar 2024 16:20:35 +0100 Message-Id: To: "Jerin Jacob" Subject: Re: [PATCH v3] graph: expose node context as pointers Cc: , "Jerin Jacob" , "Kiran Kumar K" , "Nithin Dabilpuram" , "Zhirun Yan" , "Tyler Retzlaff" From: "Robin Jarry" User-Agent: aerc/0.17.0-81-gd2764918eb55 References: <20240325100500.694748-2-rjarry@redhat.com> In-Reply-To: X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8; format=Flowed 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 Jerin Jacob, Mar 25, 2024 at 12:35: > Another option could be to have a helper inline function/macro to take > care of casting to make app code clean of casting. Would something like this be suitable? #define RTE_NODE_CTX_PTR1(n) ((void **)(n)->ctx)[0] #define RTE_NODE_CTX_PTR2(n) ((void **)(n)->ctx)[1]