From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi0-f67.google.com (mail-oi0-f67.google.com [209.85.218.67]) by dpdk.org (Postfix) with ESMTP id 2BF752BC8 for ; Tue, 19 Jun 2018 01:36:27 +0200 (CEST) Received: by mail-oi0-f67.google.com with SMTP id l22-v6so16498103oib.4 for ; Mon, 18 Jun 2018 16:36:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id; bh=0Bm5xljVvGHuFYWUar4GYEJBOvI6WBdYxEBVkNvt7yg=; b=o2kfsYlruKQezgsLcBzdkEJdGnUvZAxUIjeeMiP+ytFi1dWSWVwWj4J1UT6P2H3N4x Wj8XgmT5ILouKbya5Avfxo7FdWfV0kNNJTA8tYzm69hA4ElhF7ZY8EEwYCLpEbtOKiXT bjgO7VEt0KovXrkiR1sen/r/+AOlbHIHUltunYq8v/sBlne+L2HlYOv/u5yQpgfsYPq5 q17lfxnmcF14u5KMWIcGO/qcGRowxsvUEIwFunZ3qecwEO/cQktY0Ft9Tlx3MuIjjvPk wX0qI4k7S3DW/4hGY8gg7slWInmx7rDKnIQEld9JYXIe8fXrdswUlx3Jmv4o2hS4QsK9 ebJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=0Bm5xljVvGHuFYWUar4GYEJBOvI6WBdYxEBVkNvt7yg=; b=pBCohSBY4JnjmLnp4hFGcnSEFNXef67fVPuYkpEC9UknBsJP2TLK5PvGnC9XwPs9IR Ghs/JSWYE5pSdeEZwE0F5nB1BUEXTO3qhYWQeKtWv8xXidTN+zAzm6IbV8Ok0e9eVMNC CxdbJM+E1Vaw+wHusotntawxVqZCVmRNMJ9paQ7CDyb9sObro9vMRDiiS/h60beYGIz9 EPKKmbRRqfHwx7KsDSvGbqWhvF3eihnmAyCcUxP4Ec7LHjk7XcguZHNpNClJO+av6Ncq vh96gFW8YowaXwv532cWJyx1Crg9bTe1eMlfSlwyRLaqG2n+/C9frVl8NyUhoCB4300E 7lzg== X-Gm-Message-State: APt69E0toGcDVDFeRWRSP0AKMGCpKCLSmkzG96PR5zkbiiXNpRoOltKq Uc/MdknQ6a8cd9uxRjNUkozzew== X-Google-Smtp-Source: ADUXVKI/1xyKatOWmIiis0TFOYop/lDG1tXqBScdLCpN7vDKzHlu1OZ1X4CU+XKNGCcHA9rKY2XrEA== X-Received: by 2002:aca:fc82:: with SMTP id a124-v6mr8566642oii.69.1529364986107; Mon, 18 Jun 2018 16:36:26 -0700 (PDT) Received: from linux.adax.com (172-11-198-60.lightspeed.sntcca.sbcglobal.net. [172.11.198.60]) by smtp.gmail.com with ESMTPSA id f14-v6sm9761160ote.53.2018.06.18.16.36.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 18 Jun 2018 16:36:25 -0700 (PDT) Sender: Dan Gora From: Dan Gora To: dev@dpdk.org Cc: Dan Gora , Remy Horton , Ori Kam , Bruce Richardson , Pablo de Lara , Radu Nicolau , Akhil Goyal , Tomasz Kantecki Date: Mon, 18 Jun 2018 16:36:18 -0700 Message-Id: <20180618233618.21729-1-dg@adax.com> X-Mailer: git-send-email 2.18.0.rc1.1.g6f333ff2f Subject: [dpdk-dev] [PATCH v2 2/4] examples/ipsec-secgw: use rte fcn to access private area X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jun 2018 23:36:27 -0000 Update get_priv() to use rte_mbuf_to_priv() to access the private area in the mbuf. Signed-off-by: Dan Gora --- examples/ipsec-secgw/ipsec.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/ipsec-secgw/ipsec.h b/examples/ipsec-secgw/ipsec.h index 9b87278c1..3b5c3ec8c 100644 --- a/examples/ipsec-secgw/ipsec.h +++ b/examples/ipsec-secgw/ipsec.h @@ -191,7 +191,7 @@ ipsec_metadata_size(void) static inline struct ipsec_mbuf_metadata * get_priv(struct rte_mbuf *m) { - return RTE_PTR_ADD(m, sizeof(struct rte_mbuf)); + return (ipsec_mbuf_metadata *)rte_mbuf_to_priv(m); } static inline void * -- 2.18.0.rc1.1.g6f333ff2f