Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/80372/?format=api
http://patches.dpdk.org/api/patches/80372/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20201012141006.31463-6-akhil.goyal@nxp.com/", "project": { "id": 1, "url": "http://patches.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<20201012141006.31463-6-akhil.goyal@nxp.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20201012141006.31463-6-akhil.goyal@nxp.com", "date": "2020-10-12T14:10:03", "name": "[v3,5/8] crypto/dpaa_sec: enable PDCP-SDAP sessions", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "126aeeaaa1bece74f19b4569c222efcaa4e96927", "submitter": { "id": 517, "url": "http://patches.dpdk.org/api/people/517/?format=api", "name": "Akhil Goyal", "email": "akhil.goyal@nxp.com" }, "delegate": { "id": 6690, "url": "http://patches.dpdk.org/api/users/6690/?format=api", "username": "akhil", "first_name": "akhil", "last_name": "goyal", "email": "gakhil@marvell.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20201012141006.31463-6-akhil.goyal@nxp.com/mbox/", "series": [ { "id": 12883, "url": "http://patches.dpdk.org/api/series/12883/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=12883", "date": "2020-10-12T14:09:58", "name": "support PDCP-SDAP for dpaa2_sec", "version": 3, "mbox": "http://patches.dpdk.org/series/12883/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/80372/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/80372/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id F1560A04B6;\n\tMon, 12 Oct 2020 16:12:26 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id A28061D90E;\n\tMon, 12 Oct 2020 16:10:30 +0200 (CEST)", "from inva020.nxp.com (inva020.nxp.com [92.121.34.13])\n by dpdk.org (Postfix) with ESMTP id 289681D736;\n Mon, 12 Oct 2020 16:10:22 +0200 (CEST)", "from inva020.nxp.com (localhost [127.0.0.1])\n by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 0929F1A101E;\n Mon, 12 Oct 2020 16:10:22 +0200 (CEST)", "from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com\n [165.114.16.14])\n by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 6E1D91A13B6;\n Mon, 12 Oct 2020 16:10:18 +0200 (CEST)", "from lsv03273.swis.in-blr01.nxp.com (lsv03273.swis.in-blr01.nxp.com\n [92.120.147.113])\n by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id DC19640326;\n Mon, 12 Oct 2020 16:10:11 +0200 (CEST)" ], "From": "Akhil Goyal <akhil.goyal@nxp.com>", "To": "dev@dpdk.org,\n\ttechboard@dpdk.org", "Cc": "thomas@monjalon.net, anoobj@marvell.com, hemant.agrawal@nxp.com,\n declan.doherty@intel.com, david.coyle@intel.com,\n Akhil Goyal <akhil.goyal@nxp.com>", "Date": "Mon, 12 Oct 2020 19:40:03 +0530", "Message-Id": "<20201012141006.31463-6-akhil.goyal@nxp.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20201012141006.31463-1-akhil.goyal@nxp.com>", "References": "<20201011213403.21169-1-akhil.goyal@nxp.com>\n <20201012141006.31463-1-akhil.goyal@nxp.com>", "X-Virus-Scanned": "ClamAV using ClamSMTP", "Subject": "[dpdk-dev] [PATCH v3 5/8] crypto/dpaa_sec: enable PDCP-SDAP sessions", "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>,\n <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>,\n <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Based on the new field in PDCP xform, a decision is made\nto create a PDCP session with or without SDAP enabled.\n\nSigned-off-by: Akhil Goyal <akhil.goyal@nxp.com>\n---\n drivers/crypto/dpaa_sec/dpaa_sec.c | 63 +++++++++++++++++++++---------\n drivers/crypto/dpaa_sec/dpaa_sec.h | 3 +-\n 2 files changed, 47 insertions(+), 19 deletions(-)", "diff": "diff --git a/drivers/crypto/dpaa_sec/dpaa_sec.c b/drivers/crypto/dpaa_sec/dpaa_sec.c\nindex 0495422a4..f69cb5719 100644\n--- a/drivers/crypto/dpaa_sec/dpaa_sec.c\n+++ b/drivers/crypto/dpaa_sec/dpaa_sec.c\n@@ -36,6 +36,7 @@\n #include <desc/algo.h>\n #include <desc/ipsec.h>\n #include <desc/pdcp.h>\n+#include <desc/sdap.h>\n \n #include <rte_dpaa_bus.h>\n #include <dpaa_sec.h>\n@@ -293,24 +294,49 @@ dpaa_sec_prep_pdcp_cdb(dpaa_sec_session *ses)\n \t\t\t\t\t&cipherdata, &authdata,\n \t\t\t\t\t0);\n \t} else {\n-\t\tif (ses->dir == DIR_ENC)\n-\t\t\tshared_desc_len = cnstr_shdsc_pdcp_u_plane_encap(\n-\t\t\t\t\tcdb->sh_desc, 1, swap,\n-\t\t\t\t\tses->pdcp.sn_size,\n-\t\t\t\t\tses->pdcp.hfn,\n-\t\t\t\t\tses->pdcp.bearer,\n-\t\t\t\t\tses->pdcp.pkt_dir,\n-\t\t\t\t\tses->pdcp.hfn_threshold,\n-\t\t\t\t\t&cipherdata, p_authdata, 0);\n-\t\telse if (ses->dir == DIR_DEC)\n-\t\t\tshared_desc_len = cnstr_shdsc_pdcp_u_plane_decap(\n-\t\t\t\t\tcdb->sh_desc, 1, swap,\n-\t\t\t\t\tses->pdcp.sn_size,\n-\t\t\t\t\tses->pdcp.hfn,\n-\t\t\t\t\tses->pdcp.bearer,\n-\t\t\t\t\tses->pdcp.pkt_dir,\n-\t\t\t\t\tses->pdcp.hfn_threshold,\n-\t\t\t\t\t&cipherdata, p_authdata, 0);\n+\t\tif (ses->dir == DIR_ENC) {\n+\t\t\tif (ses->pdcp.sdap_enabled)\n+\t\t\t\tshared_desc_len =\n+\t\t\t\t\tcnstr_shdsc_pdcp_sdap_u_plane_encap(\n+\t\t\t\t\t\tcdb->sh_desc, 1, swap,\n+\t\t\t\t\t\tses->pdcp.sn_size,\n+\t\t\t\t\t\tses->pdcp.hfn,\n+\t\t\t\t\t\tses->pdcp.bearer,\n+\t\t\t\t\t\tses->pdcp.pkt_dir,\n+\t\t\t\t\t\tses->pdcp.hfn_threshold,\n+\t\t\t\t\t\t&cipherdata, p_authdata, 0);\n+\t\t\telse\n+\t\t\t\tshared_desc_len =\n+\t\t\t\t\tcnstr_shdsc_pdcp_u_plane_encap(\n+\t\t\t\t\t\tcdb->sh_desc, 1, swap,\n+\t\t\t\t\t\tses->pdcp.sn_size,\n+\t\t\t\t\t\tses->pdcp.hfn,\n+\t\t\t\t\t\tses->pdcp.bearer,\n+\t\t\t\t\t\tses->pdcp.pkt_dir,\n+\t\t\t\t\t\tses->pdcp.hfn_threshold,\n+\t\t\t\t\t\t&cipherdata, p_authdata, 0);\n+\t\t} else if (ses->dir == DIR_DEC) {\n+\t\t\tif (ses->pdcp.sdap_enabled)\n+\t\t\t\tshared_desc_len =\n+\t\t\t\t\tcnstr_shdsc_pdcp_sdap_u_plane_decap(\n+\t\t\t\t\t\tcdb->sh_desc, 1, swap,\n+\t\t\t\t\t\tses->pdcp.sn_size,\n+\t\t\t\t\t\tses->pdcp.hfn,\n+\t\t\t\t\t\tses->pdcp.bearer,\n+\t\t\t\t\t\tses->pdcp.pkt_dir,\n+\t\t\t\t\t\tses->pdcp.hfn_threshold,\n+\t\t\t\t\t\t&cipherdata, p_authdata, 0);\n+\t\t\telse\n+\t\t\t\tshared_desc_len =\n+\t\t\t\t\tcnstr_shdsc_pdcp_u_plane_decap(\n+\t\t\t\t\t\tcdb->sh_desc, 1, swap,\n+\t\t\t\t\t\tses->pdcp.sn_size,\n+\t\t\t\t\t\tses->pdcp.hfn,\n+\t\t\t\t\t\tses->pdcp.bearer,\n+\t\t\t\t\t\tses->pdcp.pkt_dir,\n+\t\t\t\t\t\tses->pdcp.hfn_threshold,\n+\t\t\t\t\t\t&cipherdata, p_authdata, 0);\n+\t\t}\n \t}\n \treturn shared_desc_len;\n }\n@@ -2949,6 +2975,7 @@ dpaa_sec_set_pdcp_session(struct rte_cryptodev *dev,\n \tsession->pdcp.hfn = pdcp_xform->hfn;\n \tsession->pdcp.hfn_threshold = pdcp_xform->hfn_threshold;\n \tsession->pdcp.hfn_ovd = pdcp_xform->hfn_ovrd;\n+\tsession->pdcp.sdap_enabled = pdcp_xform->sdap_enabled;\n \tif (cipher_xform)\n \t\tsession->pdcp.hfn_ovd_offset = cipher_xform->iv.offset;\n \ndiff --git a/drivers/crypto/dpaa_sec/dpaa_sec.h b/drivers/crypto/dpaa_sec/dpaa_sec.h\nindex 2cd50cc8d..ddba52982 100644\n--- a/drivers/crypto/dpaa_sec/dpaa_sec.h\n+++ b/drivers/crypto/dpaa_sec/dpaa_sec.h\n@@ -109,7 +109,8 @@ struct sec_pdcp_ctxt {\n \tint8_t pkt_dir;/*!< PDCP Frame Direction 0:UL 1:DL*/\n \tint8_t hfn_ovd;/*!< Overwrite HFN per packet*/\n \tuint8_t sn_size;\t/*!< Sequence number size, 5/7/12/15/18 */\n-\tuint32_t hfn_ovd_offset;/*!< offset from rte_crypto_op at which\n+\tuint8_t sdap_enabled;\t/*!< SDAP header is enabled */\n+\tuint16_t hfn_ovd_offset;/*!< offset from rte_crypto_op at which\n \t\t\t\t * per packet hfn is stored\n \t\t\t\t */\n \tuint32_t hfn;\t/*!< Hyper Frame Number */\n", "prefixes": [ "v3", "5/8" ] }{ "id": 80372, "url": "