Message ID | 20180618233441.21323-1-dg@adax.com (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5084F2BBD; Tue, 19 Jun 2018 01:35:06 +0200 (CEST) Received: from mail-ot0-f195.google.com (mail-ot0-f195.google.com [74.125.82.195]) by dpdk.org (Postfix) with ESMTP id F27D72AA0 for <dev@dpdk.org>; Tue, 19 Jun 2018 01:35:04 +0200 (CEST) Received: by mail-ot0-f195.google.com with SMTP id a5-v6so20503078otf.12 for <dev@dpdk.org>; Mon, 18 Jun 2018 16:35:04 -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=1cSXZUGIrZip3FjK0r2SxQSMvPlhtNmTqjbr7C0xRWA=; b=iKGGW4Td8yyTK1ESlOZkvh5u15VxY3a/M/d7CWjlAMbZ19RpT10o2VjGfKzHQaus+K Tbobhk9Gp9dxMIR8P31RJWra6wkQ6OedWOZS0onq465xXRwZrq2azSuBXKkLOU161e4E HtI67FtTks63qKP+Lo4nvPun2nW6ElZWQo4WQX/QM64A0TyyKB5FviAxId8H7rkHyqZ+ R/duMvHRmr58IhtuJbx5jze6dj6tFsYUDICQPfDmj/4kEvA5+NCSSBhBPNvCzMzZ5fpg SWInaxs6fTFEmimn74ZBSAM88FBW247D0DGVfxKx4BG+yIGRFkR2j7+qgx3//wSD+PLp p2mw== 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=1cSXZUGIrZip3FjK0r2SxQSMvPlhtNmTqjbr7C0xRWA=; b=RGI4Lw3CS05D0vlDNwCrsTlv0XsIzr7lYtfScOSeWdGKi2xnQA6ggjrvpiKuvDV2gN NiMkgZ9gB345pikvKuh3IJOAdkboQCSobmjOvr3ny++2J9gJDyt3mb+2dojwuhwgsvcQ +xj6tQgwGAXvPvF4wPeQ9DdxsUeIe/j/qd9frwESO5JVv/iaxXqB7aGrNA0rtUmGops3 bHKPd1mwHHign9W/JSMoAeyC4DdLQL41uOKHP48CvNdVjQaWpIjru63IULE4339O+pFm Lv7GQN4q945kg8VfAXzAG50VbfLFw3vQZORWJGy//mzwTym/2JzHW/0a3Z1uaqPgQQXD 8X7A== X-Gm-Message-State: APt69E0goVLiMwHPIzLVuybUziIKPl+1XIVqPBaMG7o9sJ0/2z1MNB/R a4kawEYt6N62ecH9QQKSsleEPQ== X-Google-Smtp-Source: ADUXVKKKqTh/qmIv8GyuHYqA9zBFF/XdjZtZ6eQmX97XD6ExM1/B56CpCR99P7+AVFbdDtcA/urWWg== X-Received: by 2002:a9d:9:: with SMTP id 9-v6mr9541338ota.146.1529364903979; Mon, 18 Jun 2018 16:35:03 -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 q24-v6sm868069otk.64.2018.06.18.16.35.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 18 Jun 2018 16:35:03 -0700 (PDT) From: Dan Gora <dg@adax.com> To: dev@dpdk.org Cc: Dan Gora <dg@adax.com> Date: Mon, 18 Jun 2018 16:34:41 -0700 Message-Id: <20180618233441.21323-1-dg@adax.com> X-Mailer: git-send-email 2.18.0.rc1.1.g6f333ff2f Subject: [dpdk-dev] [PATCH v2 0/4] mbuf: Add new private data area accessor function. X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Series |
mbuf: Add new private data area accessor function.
|
|
Message
Dan Gora
June 18, 2018, 11:34 p.m. UTC
Hi All, Below is a series of patches to add a new API function to allow DPDK applications to access the private data area of the mbuf, if one exists. This eliminates the repeated code in applications to access the private data area and makes the API a bit more complete, since there are already accessor functions to access the start of the buffer, the start of data, etc. The first patch [1 of 4] adds the accessor function to rte_mbuf.h. The other three patches clean up other code to use this new function. Please let me know what you think. thanks dan v2: * Change 'md' to 'm' in rte_mbuf_to_priv(). * Remove check of m->priv_len in rte_mbuf_to_priv() to avoid confusion if used with indirect mbufs. Dan Gora (4): mbuf: add accessor function for private data area examples/ipsec-secgw: use rte fcn to access private area examples/ipsec-secgw: use ipsec fcn to access private area vhost/crypto: use rte fcn to access private area examples/ipsec-secgw/ipsec.h | 2 +- examples/ipsec-secgw/sa.c | 2 +- lib/librte_mbuf/rte_mbuf.h | 18 ++++++++++++++++++ lib/librte_vhost/vhost_crypto.c | 6 ++---- 4 files changed, 22 insertions(+), 6 deletions(-)