From patchwork Fri May 5 12:34:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petri Savolainen X-Patchwork-Id: 98635 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp99445qge; Fri, 5 May 2017 05:36:24 -0700 (PDT) X-Received: by 10.36.70.204 with SMTP id j195mr7847002itb.22.1493987784025; Fri, 05 May 2017 05:36:24 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id y6si714260iof.98.2017.05.05.05.36.23; Fri, 05 May 2017 05:36:24 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 8B193609BE; Fri, 5 May 2017 12:36:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id E3B0260939; Fri, 5 May 2017 12:35:50 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 6F8A760796; Fri, 5 May 2017 12:35:46 +0000 (UTC) Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10116.outbound.protection.outlook.com [40.107.1.116]) by lists.linaro.org (Postfix) with ESMTPS id CD8596098B for ; Fri, 5 May 2017 12:35:23 +0000 (UTC) Received: from AM4PR0701CA0029.eurprd07.prod.outlook.com (2603:10a6:200:42::39) by DB5PR07MB0903.eurprd07.prod.outlook.com (2a01:111:e400:5105::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1084.7; Fri, 5 May 2017 12:35:22 +0000 Received: from VE1EUR03FT059.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e09::207) by AM4PR0701CA0029.outlook.office365.com (2603:10a6:200:42::39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1084.7 via Frontend Transport; Fri, 5 May 2017 12:35:21 +0000 Received-SPF: SoftFail (protection.outlook.com: domain of transitioning linaro.org discourages use of 131.228.2.241 as permitted sender) Received: from mailrelay.int.nokia.com (131.228.2.241) by VE1EUR03FT059.mail.protection.outlook.com (10.152.19.60) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1047.9 via Frontend Transport; Fri, 5 May 2017 12:35:21 +0000 Received: from fihe3nok0735.emea.nsn-net.net (localhost [127.0.0.1]) by fihe3nok0735.emea.nsn-net.net (8.14.9/8.14.5) with ESMTP id v45CYZ8o005643 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 5 May 2017 15:34:35 +0300 Received: from 10.144.19.15 ([10.144.104.219]) by fihe3nok0735.emea.nsn-net.net (8.14.9/8.14.5) with ESMTP id v45CYZWu005640 (version=TLSv1/SSLv3 cipher=AES128-SHA256 bits=128 verify=NOT) for ; Fri, 5 May 2017 15:34:35 +0300 X-HPESVCS-Source-Ip: 10.144.104.219 From: Petri Savolainen To: Date: Fri, 5 May 2017 15:34:33 +0300 Message-ID: <20170505123435.11019-1-petri.savolainen@linaro.org> X-Mailer: git-send-email 2.11.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:131.228.2.241; IPV:CAL; CTRY:FI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(39840400002)(39850400002)(39450400003)(39410400002)(39860400002)(39400400002)(2980300002)(199003)(189002)(9170700003)(110136004)(77096006)(38730400002)(5660300001)(36756003)(81166006)(2351001)(8676002)(48376002)(47776003)(86362001)(50466002)(22756006)(5003940100001)(2906002)(6916009)(356003)(50986999)(305945005)(53936002)(105596002)(8936002)(50226002)(106466001)(189998001)(33646002)(1076002)(508600001)(217873001); DIR:OUT; SFP:1102; SCL:1; SRVR:DB5PR07MB0903; H:mailrelay.int.nokia.com; FPR:; SPF:SoftFail; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; VE1EUR03FT059; 1:1a+T+6iLgUK6rrAyoZPR2LZLG+CQPM6z4pTmbcWdGXW3nZKYVvVaF/c00tZn+Lp9nKhrgoDC1bgAHA4Rxkrvz34bI64Wg1nQuteLS82TeyI5fBiEZuEYrdArtQojVRbB9miDzicqpWPhaB2XrZVA23yDMlxJY8E46x+srO4Deat/ld1RkeVEMxauQdGLgko8nTiIdadkYcNJ3bGJOQv1wUbC2ywxaFeKNz37VjGBqiAxKjnzIc/rcu70i9m6ONqVXyb1NwJW+tRn6wp+w4DVmbn4HzqzLgAhZMoObpdpUXQjbWK/Em2qPaeCb2cP/DTMQH/j2lC7mtld6seGw6Mo7s1NWZDMTSvJYdK7OYsc2eOCgqAUB6fyZTf6Ms1Fx0rZGJ0BFInrF4J3Q8a+rdVIpegz1jXntzkd0JidSaGG5c8TahgYGMz4nhItzCLfojHlqAZ0wJLzBiv2iL7IhMSLinBRHyVvrRjbVnYXmASLjZA8ptZR4mfHR5mvX8Z307mUTbE7z71gJsgMRp4n6tqnMA== MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7ad99d54-adba-4960-cc88-08d493b33205 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(201703131423075)(201703031133081); SRVR:DB5PR07MB0903; X-Microsoft-Exchange-Diagnostics: 1; DB5PR07MB0903; 3:RqqM7gJihtpTly6xC8NapFQKYc2CSvqGpU7J8zNEum8xlKXefI+U7o0oY53BioKerDu8U6WEgy8idSz/0IhZnzPDbn9Gur8fj6lyElSwcmcLJPj665CoGIaAFqh+pA6BM2L1daFkUOExb6ql2YzhT6B86Xrw4GoKoDMpSMhvR/AnbNj9x/siBBhNxUx0WqRVKsQ6wJtnXgxbOuXJ8yX5eDyGI4Y6//XbjiZEiW1jboalB8aTt4td0gxuZJ7XWjIyFRXUwNzQTPnuCk7ebj5VdE4cN7U5bcMEozdxkUtZt8q+LZq+jsZk8MEti7WKj05B1it16Q+dj1R1oJ+COAvHI5AcfUz7eEf53m7fBDPRgcO57sU9/0qHdcn4DEh2pTvw1hhnb6YNYylc9ngA5IF+vUMD8v1pEklInnHRanpMjE51+o10sC7jRRFOdNbW/JuItM8yqS73X/Cc53nKPyww0Q== X-Microsoft-Exchange-Diagnostics: 1; DB5PR07MB0903; 25:/JA2zmGGCzfvevJoYU/nWZX0Yf9kVKLxVnVMnBnbnn8Qrw27GX6AwB/F/+XJood8yjmEWNuJTwi7xyEwjenXimKTZGtFEJZNCMLuF/ge52MOrPYM5j6i/F4StjF/AWzjhmoBPtSSwtNxfjDzmSmy1iFhx43bHmnFdCfC3xiuG6fbrZcPGI2PQKc/LNoqkVnqvVIvwT2ya7ABCvVJ1OeYm3HRZ8xplOeEEnJ+3Qk9aInWhnI2Y5yGXGwsnP98IZwkRebTqtyBs/djSYN9ZpKdWDluAjE0GnPIfV5peaeL0BJhXQd1+Em8oZjlDBS8W8QAMXgeSaoXgUn2//uxurBo/D7y1pMbwM638e5QKKuTCaB7JRWDyiznnchSk6ncbqSv4xGjth2B9gyZep99At0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exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(13023025)(13021025)(13013025)(93006095)(93003095)(10201501046)(3002001)(6055026)(6041248)(201703131423075)(201703011903075)(201702281528075)(201703061421075)(20161123555025)(20161123558100)(20161123560025)(20161123562025)(20161123564025)(6072148); SRVR:DB5PR07MB0903; BCL:0; PCL:0; RULEID:; SRVR:DB5PR07MB0903; X-Microsoft-Exchange-Diagnostics: 1; DB5PR07MB0903; 4:QOLX3igskVN4R73d5g/twuSxwvKC0xcYMoeBstwJP5ECuIOqMniRHF4T3ZryBxtam9dGta1t0SUWjmmhab53++pKjDNBsQp1m7SHYRMST7BlLZsmH74KZRj1XZppLiJwtQ6G/UvV4Sb8pe5LPb6Nb+vIoysHqT/BsIj3h1GfV362bZFfdJ6Owy4cbI3NKgUczvXLwXUuc05Jn8HgfCbRc/vkq6RBDV0OJ3Iy5necilb3R6jfpK8wsIdA6/LvHkoLK4YEH/cYrsDpuC7zMkwCA3nV2y856gWUj5sSIEoikbeSyyqF5FeQhpHy/drVwBGfQovBcH8GE7nQ+lN49ezIE7uUMZbmVlOOLuZb6dUj5He0V0UKiac/oFgiikNXTOJgnBt37X34z1J41o7ZXr6Nm1OB635E2zeTFUjK11ujW7lbKkkxNBVfq/UNrjtRSJjFCRVdiC+NKMZTl03WO9kQUcLQAvyOdSCzoiPhi7dm8eZIo/sX9xUz7ONvhVCxJX8t8Yz0caxLPfQjlYfY7H8TT6eogT81Ll2h7Zadp7+aQ/Th/bBrPPXWd4G6UYWJ/x+fBKgahdziqQFrodxIyilV43C5IkZP0F0U65fnCKYsp+G2Itg9dR8OnUqno80KiXcV1wZE13HqCxSjtcoxpZDCacFKKOJ3XxHD6ipleT9wbI+UxHuS+zNxXVEoeNWdpSdGC+47E2T9Y1Vbad7th9JNOK5Lx8ivpuAsoAlnqyyymHNuY79QpAn5mjFFU+jYHcNVBNMTOG94RV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R07MB0903; 7:ghLf3f/AP2NCfvC/h4Md58Y9iBQpyIw7/rKBYcXxDT9kO5s4glFG8xnmb3cpkr/t+6rL32wXclsqzub9OiQxNzgRDdjO7XeyDBjaZzIBLmuEdDcgiYyJPb8Y+JtwKS5mRbqI+Ol+TR47681ZATUgKZdOtVn+XYzbUO51lQBNhgWqfm4q1sofid0sJX14DH2O6WfXU5mE/xuKGS8krh5tk7hgCMF5XyDib3GH4SILMcHdmlAAVpmJ+ql4COqFlhsgzIrn12RS2fhz8P5arpSWDl9ugO2rgV5p1QzO7VfxFFsqwsOwiSDWGsSiXwOAfc1O1b8ff6i1EFZurS2KUJRxtw== X-OriginatorOrg: nokia.onmicrosoft.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 May 2017 12:35:21.1877 (UTC) X-MS-Exchange-CrossTenant-Id: 5d471751-9675-428d-917b-70f44f9630b0 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5d471751-9675-428d-917b-70f44f9630b0; Ip=[131.228.2.241]; Helo=[mailrelay.int.nokia.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5PR07MB0903 Subject: [lng-odp] [API-NEXT PATCH 1/3] api: ipsec: refine packet order specification X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" State more explicitly that async ipsec operations maintain packet order the same way as odp_queue_enq_multi(). Signed-off-by: Petri Savolainen --- include/odp/api/spec/ipsec.h | 40 ++++++++++++++++++++++++++-------------- 1 file changed, 26 insertions(+), 14 deletions(-) -- 2.11.0 Reviewed-by: Bill Fischofer diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h index e83494d3..bec9c561 100644 --- a/include/odp/api/spec/ipsec.h +++ b/include/odp/api/spec/ipsec.h @@ -1192,13 +1192,19 @@ int odp_ipsec_out(const odp_ipsec_op_param_t *input, * results through one or more ODP_EVENT_IPSEC_RESULT events with the following * ordering considerations. * - * Asynchronous mode maintains (operation input) packet order per SA when - * application calls the operation within an ordered or atomic scheduler context - * of the same queue. Packet order is also maintained when application - * otherwise guarantees (e.g. using locks) that the operation is not called - * simultaneously from multiple threads for the same SA(s). Resulting - * events for the same SA are enqueued in order, and packet handles (for the - * same SA) are stored in order within an event. + * Asynchronous mode maintains packet order per SA when application calls the + * operation within an ordered or atomic scheduler context of the same queue. + * Resulting events for the same SA are enqueued in order and packet handles + * (for the same SA) are stored in order within an event. Packet order per SA at + * a destination queue is the same as if application would have enqueued packets + * there with odp_queue_enq_multi(). + * + * Packet order is also maintained when application otherwise guarantees + * (e.g. using locks) that the operation is not called simultaneously from + * multiple threads for the same SA(s). + * + * Logically, packet processing (e.g. sequence number check) happens in the + * output order as defined above. * * The function may be used also in inline processing mode, e.g. for IPSEC * packets for which inline processing is not possible. Packets for the same SA @@ -1222,13 +1228,19 @@ int odp_ipsec_in_enq(const odp_ipsec_op_param_t *input); * results through one or more ODP_EVENT_IPSEC_RESULT events with the following * ordering considerations. * - * Asynchronous mode maintains (operation input) packet order per SA when - * application calls the operation within an ordered or atomic scheduler context - * of the same queue. Packet order is also maintained when application - * otherwise guarantees (e.g. using locks) that the operation is not called - * simultaneously from multiple threads for the same SA(s). Resulting - * events for the same SA are enqueued in order, and packet handles (for the - * same SA) are stored in order within an event. + * Asynchronous mode maintains packet order per SA when application calls the + * operation within an ordered or atomic scheduler context of the same queue. + * Resulting events for the same SA are enqueued in order and packet handles + * (for the same SA) are stored in order within an event. Packet order per SA at + * a destination queue is the same as if application would have enqueued packets + * there with odp_queue_enq_multi(). + * + * Packet order is also maintained when application otherwise guarantees + * (e.g. using locks) that the operation is not called simultaneously from + * multiple threads for the same SA(s). + * + * Logically, packet processing (e.g. sequence number assignment) happens in the + * output order as defined above. * * The function may be used also in inline processing mode, e.g. for IPSEC * packets for which inline processing is not possible. From patchwork Fri May 5 12:34:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petri Savolainen X-Patchwork-Id: 98634 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp99265qge; Fri, 5 May 2017 05:35:55 -0700 (PDT) X-Received: by 10.237.60.23 with SMTP id t23mr10868710qte.206.1493987755264; Fri, 05 May 2017 05:35:55 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id m80si4949756qkh.175.2017.05.05.05.35.55; Fri, 05 May 2017 05:35:55 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id E9C6160991; Fri, 5 May 2017 12:35:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 69E4E6069B; Fri, 5 May 2017 12:35:49 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 2D15D60796; Fri, 5 May 2017 12:35:46 +0000 (UTC) Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0139.outbound.protection.outlook.com [104.47.2.139]) by lists.linaro.org (Postfix) with ESMTPS id C9C5260A4F for ; Fri, 5 May 2017 12:35:18 +0000 (UTC) Received: from AM4PR0701CA0013.eurprd07.prod.outlook.com (10.165.102.23) by VI1PR0701MB2125.eurprd07.prod.outlook.com (10.169.137.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1084.7; Fri, 5 May 2017 12:35:17 +0000 Received: from VE1EUR03FT059.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e09::206) by AM4PR0701CA0013.outlook.office365.com (2603:10a6:200:42::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1084.7 via Frontend Transport; Fri, 5 May 2017 12:35:16 +0000 Received-SPF: SoftFail (protection.outlook.com: domain of transitioning linaro.org discourages use of 131.228.2.241 as permitted sender) Received: from mailrelay.int.nokia.com (131.228.2.241) by VE1EUR03FT059.mail.protection.outlook.com (10.152.19.60) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1047.9 via Frontend Transport; Fri, 5 May 2017 12:35:16 +0000 Received: from fihe3nok0735.emea.nsn-net.net (localhost [127.0.0.1]) by fihe3nok0735.emea.nsn-net.net (8.14.9/8.14.5) with ESMTP id v45CYZu8005646 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 5 May 2017 15:34:35 +0300 Received: from 10.144.19.15 ([10.144.104.219]) by fihe3nok0735.emea.nsn-net.net (8.14.9/8.14.5) with ESMTP id v45CYZWv005640 (version=TLSv1/SSLv3 cipher=AES128-SHA256 bits=128 verify=NOT) for ; Fri, 5 May 2017 15:34:35 +0300 X-HPESVCS-Source-Ip: 10.144.104.219 From: Petri Savolainen To: Date: Fri, 5 May 2017 15:34:34 +0300 Message-ID: <20170505123435.11019-2-petri.savolainen@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170505123435.11019-1-petri.savolainen@linaro.org> References: <20170505123435.11019-1-petri.savolainen@linaro.org> X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:131.228.2.241; IPV:CAL; CTRY:FI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(39410400002)(39400400002)(39450400003)(39840400002)(39850400002)(39860400002)(2980300002)(189002)(199003)(9170700003)(81166006)(53936002)(2906002)(2351001)(305945005)(50986999)(86362001)(76176999)(1076002)(508600001)(33646002)(8676002)(8936002)(105596002)(106466001)(2950100002)(189998001)(6916009)(110136004)(38730400002)(50466002)(22756006)(356003)(5003940100001)(36756003)(47776003)(5660300001)(77096006)(48376002)(50226002)(217873001); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR0701MB2125; H:mailrelay.int.nokia.com; FPR:; SPF:SoftFail; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; VE1EUR03FT059; 1:YbJqNdcJ3neBBw8QAhqSHOlCvv74VpP/eRW2nXq61znwm24aPe7IxSQIqUNQfhvys6IfBf+7MekIcD2f54T3ACVjDiclSIm4fUeqtdBHAESTeux9zMBOPjw74zSe+0APnUlRA7xmSOZYALYt/DKrgmEMLESWerMh0N5d3G3bgoHPpvUy3WHZXW72jhvEZ3MTmpSs6LAcdmO4PcxXe4iZ2vRHvPPSQEhZtmAFXWWBi31Upenqiip5JVaKGQu3OYV543x3FCPZiwEVVGFQlj77CkdJI2BOhc9yLIcuviGRldMmmDwZUO5jriqP33mRhNCFZsqhI0XJ7fkeAu+DHyAY/XWn1r9Q7fhwKiTfj4l4ae5fVjJkKr9KrecvXVKe8O2o832MLFzBL9MdvoaOvv05rfTfS+ahwW7sqmTsyIrddASNmgdG/ECVMaOdmMAF7BvNk6lU3TDLEa9pZxaZHO9pFU4JY/qM3lilDT4f5e7Sr77ILs0YOotHtZSn//A/QdBw/vhVrRIuwGpQusIuSABT5A== MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b134ea4d-0b75-4c3d-9d15-08d493b32ef0 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(201703131423075)(201703031133081); SRVR:VI1PR0701MB2125; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0701MB2125; 3:9yz0F/v1uG5TRnhzokoDY9HK/EZLcm9nqiD8ZjyHg5in/9xQthFw3mLZIbqktCk2pmwZ+NyObi05pLgOJb4Ytw2UTKEerbvJfNo5bYLZk7a59b39eNq3LhGGYc8sLc1Itilhh6/OBrxQukj1Q7gJoIEgjcPzy5UF1q64dLpWWrqPwAQiN7eB+yiq19YLHiXwVzojF2FBwoY3boZABGUPznILnuHj5u15wMKlaxTn3N7+BKwTA/OjpSHmde+V1isy9F2pIZtq5ECzDXLnvyEBm2eAyDlhdCTNI8CTQ3YUEk/cdsGrPsdV25FKhPo7oeRHIt9HdEBUiv7hRhZt5LHQSVmkFn2qibQ1wZg6A6pMOs4JTpGoI1y9M3+X1tNxWtmzQ4U4AgwDYpiDXxptdHzh69GdiAUMc2SCltx6RDyFVVgIImihYFqm//ByLj13r2g2fdHsKT1WwSRzLquT9f6TAw== X-Microsoft-Exchange-Diagnostics: 1; VI1PR0701MB2125; 25:br4lHvG/JPWAubdghYCt+IhPvyr0OtT/Wr7FXjsbnmAtSTrbfT4A5bj1F0cTmh1SHvnhWEq29/IfCSCIuwOLPTKGeC+NK4Tptu0qKl5voRhQoMrDqDkgHxVUCBnTNiC1YnlWXSn/Bnjsd0KE/KhXwEb8KH4EnbbedRB9Vsbu1EUTldi3XNi+3JU3roDcV28yQ8E6LMIHx9rWkv/wM3aYNUC0OIJJo5vaDgu1ELQcFyB0QxWUiTMQJsmaVMBv/SMS1kbug6muF/30JF1WUgvyD+72L+kp8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86GzG58ZFZoEPG6MgA2aqy7MCPUfwFdWMjpKrzwi8F7Q1mRM69JJe2Agq+t5nZyEPpwCyEgIiP5yEgya3gqkcHDxIDmVc= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(13021025)(13013025)(13023025)(5005006)(8121501046)(10201501046)(3002001)(93006095)(93003095)(6055026)(6041248)(201703131423075)(201703011903075)(201702281528075)(201703061421075)(20161123558100)(20161123560025)(20161123555025)(20161123564025)(20161123562025)(6072148); SRVR:VI1PR0701MB2125; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0701MB2125; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0701MB2125; 4:+IV3JA0yhZuL/JVRT3q8XzK5yp66WPSfs60OSe/LVRDHxBxwLI2X+AuSsfZuPiFBRnIZ5HsLt6SwvFfGRq5/Q2oHya2uiDvr5/VQ7g9pvPC7uH+lw8z1jmGif+a498HCv2dbm2O5PH4Zuoeo0+39wDfS2vApLvdcH1AArldrhbZQkomnxDjG1hIl2B4EJW9B4+Fo1ARi59o0P7htHB+xjMNFviOE3JHDdO3jn7A5u57r49Wv1L6+8jIU5B0cFZUPxBXh3zpFoDnk4Gz6A63xEv/2laaGpf/VqMt5JImnRnK3jU7pamusgnHbQoXEqCMA1O41oXrX74cDz2bKDputay2tRxJmKJXT+KHkoMxcpJyg3MWdBZAddEJKoGSO3zpsTo8vOCWEiZbnRYEOU9Htl78HNHU4bz0eKC3/zNUJWwL3Bt2KvqeQK9EzI8wwupSqrU9NYjmCMt/W8xPyRcbYIwYIEb794GqP9fjhutXKIT7HdwDhYpq4yNu02sYL1mQq60C+R3FQCVQ7378TesbV2hqLpbd8dPC6K3b7Dx7doE641nW6RD6p5Hu4Dqy4+dJycbtgnkLmqaCU0YBLVkgWqKuyKf9VKMKyBsDo8qlNbPSJzP6hvOX3GpsE49f7IMrjcYsoJJEVLQmW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L7YPXZPFqUU43TYpHILy+Ig1Qo0Vxo+NZjNvNdxGdHhSr5xTLgLvTF7xZuHbS0C6oByz6WgTA2/h0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; VI1PR0701MB2125; 7:OOD/10Ygj1/k8BHSZCDhhPjCznf0T92hduSDQK9Cuk1AfoNxUVrxGoL5n0YFBh7yfA+RiAHEyuNr4AeB+k3/q5sBexjgopZmpyr6BAdC+lAnYY/SbwGiMW9bM+JXXapq8EVhjFyMyDyLSwTm1kb2Z2j/SIJEPn9rFuBKh2cem4hAb23Dr6cGkaPEpOPpZhD+08Z0Mc8DXo0EI+m6yafe/PIHE6H+L4iReo8bqvK4vufwrBd+7m5h1H3TizKzcN5PvIJ0sS49TtguG8ZhVgRV0c7czEBOo3Nd6TE2V5YMr+0WStxjM9YXwg15Ym00IDmJPDtu9WKPW2t1hCng93CQRQ== X-OriginatorOrg: nokia.onmicrosoft.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 May 2017 12:35:16.0001 (UTC) X-MS-Exchange-CrossTenant-Id: 5d471751-9675-428d-917b-70f44f9630b0 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5d471751-9675-428d-917b-70f44f9630b0; Ip=[131.228.2.241]; Helo=[mailrelay.int.nokia.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0701MB2125 Subject: [lng-odp] [API-NEXT PATCH 2/3] api: ipsec: add capability for max packets per result event X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Added maximum number of packets per result event to make it easy for application to prepare enough storage for packets. Signed-off-by: Petri Savolainen --- include/odp/api/spec/ipsec.h | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) -- 2.11.0 Reviewed-by: Dmitry Eremin-Solenikov diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h index bec9c561..255fee50 100644 --- a/include/odp/api/spec/ipsec.h +++ b/include/odp/api/spec/ipsec.h @@ -270,6 +270,11 @@ typedef struct odp_ipsec_capability_t { /** Supported authentication algorithms */ odp_crypto_auth_algos_t auths; + /** Maximum number of packets in operation result + * (odp_ipsec_op_result_t) per event. + */ + int max_op_res_pkt; + } odp_ipsec_capability_t; /** @@ -1283,14 +1288,18 @@ int odp_ipsec_out_inline(const odp_ipsec_op_param_t *op_param, * type ODP_EVENT_IPSEC_RESULT. It must be freed before the application passes * any resulting packet handles to other ODP calls. * + * The operation returns number of packets in the event. If this is larger than + * 'result.num_pkt', all packets did not fit into result struct and + * application must call the function again with a larger result struct. IPsec + * capability max_op_res_pkt defines the maximum number of packets an event may + * contain. + * * @param[out] result Pointer to operation result for output. Maybe NULL, if * application is interested only on the number of * packets. * @param event An ODP_EVENT_IPSEC_RESULT event * - * @return Number of packets in the event. If this is larger than - * 'result.num_pkt', all packets did not fit into result struct and - * application must call the function again with a larger result struct. + * @return Number of packets in the event. * @retval <0 On failure * * @see odp_ipsec_in_enq(), odp_ipsec_out_enq() From patchwork Fri May 5 12:34:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petri Savolainen X-Patchwork-Id: 98633 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp99057qge; Fri, 5 May 2017 05:35:23 -0700 (PDT) X-Received: by 10.55.73.71 with SMTP id w68mr14147529qka.76.1493987722333; Fri, 05 May 2017 05:35:22 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id t81si3763929qki.244.2017.05.05.05.35.21; Fri, 05 May 2017 05:35:22 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id C8DA56098B; Fri, 5 May 2017 12:35:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-4.7 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id D256660A32; Fri, 5 May 2017 12:35:17 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 7A36F60A46; Fri, 5 May 2017 12:35:15 +0000 (UTC) Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0094.outbound.protection.outlook.com [104.47.2.94]) by lists.linaro.org (Postfix) with ESMTPS id 3D4D56098B for ; Fri, 5 May 2017 12:35:14 +0000 (UTC) Received: from DB6PR07CA0003.eurprd07.prod.outlook.com (10.175.239.13) by HE1PR0701MB3020.eurprd07.prod.outlook.com (10.168.93.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1075.1; Fri, 5 May 2017 12:35:12 +0000 Received: from DB5EUR03FT037.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e0a::209) by DB6PR07CA0003.outlook.office365.com (2603:10a6:6:2d::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1084.7 via Frontend Transport; Fri, 5 May 2017 12:35:11 +0000 Received-SPF: SoftFail (protection.outlook.com: domain of transitioning linaro.org discourages use of 131.228.2.241 as permitted sender) Received: from mailrelay.int.nokia.com (131.228.2.241) by DB5EUR03FT037.mail.protection.outlook.com (10.152.20.215) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1047.9 via Frontend Transport; Fri, 5 May 2017 12:35:11 +0000 Received: from fihe3nok0735.emea.nsn-net.net (localhost [127.0.0.1]) by fihe3nok0735.emea.nsn-net.net (8.14.9/8.14.5) with ESMTP id v45CYZWa005649 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 5 May 2017 15:34:35 +0300 Received: from 10.144.19.15 ([10.144.104.219]) by fihe3nok0735.emea.nsn-net.net (8.14.9/8.14.5) with ESMTP id v45CYZWw005640 (version=TLSv1/SSLv3 cipher=AES128-SHA256 bits=128 verify=NOT) for ; Fri, 5 May 2017 15:34:35 +0300 X-HPESVCS-Source-Ip: 10.144.104.219 From: Petri Savolainen To: Date: Fri, 5 May 2017 15:34:35 +0300 Message-ID: <20170505123435.11019-3-petri.savolainen@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170505123435.11019-1-petri.savolainen@linaro.org> References: <20170505123435.11019-1-petri.savolainen@linaro.org> X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:131.228.2.241; IPV:CAL; CTRY:FI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(39860400002)(39410400002)(39450400003)(39850400002)(39840400002)(39400400002)(2980300002)(199003)(189002)(9170700003)(22756006)(5003940100001)(5660300001)(305945005)(76176999)(106466001)(2906002)(50986999)(1076002)(105596002)(356003)(33646002)(38730400002)(508600001)(8676002)(47776003)(86362001)(53936002)(110136004)(50226002)(81166006)(8936002)(77096006)(36756003)(48376002)(2950100002)(189998001)(50466002)(2351001)(6916009)(217873001); DIR:OUT; SFP:1102; SCL:1; SRVR:HE1PR0701MB3020; H:mailrelay.int.nokia.com; FPR:; SPF:SoftFail; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; DB5EUR03FT037; 1:siimJSn9CNxChJi6/J18yVpEYLgTi5W9gC+mnyxV1usCncUWPqNiUO4djVsbmXX5E6CSkO+9NATopTQkRiyo1HTd6NPZ7/a3frTPSU5AYmrHOuV+cMV9i7DKLGM/zwHt5swxKPlM89N1QsvJ+abu7dnpm/c+p+iHw17gvHTL2p3AatDZ8YWv7bMQxXLKhZ+p4qFYhZn1Fye493XtNe48WTCUW3OBCFcFi2ngWi/afdEQg+S/a4rCvn6z8tRtNm1H1xIgBu0OuiidBLDl+/ihazyE2UV3na6Fba0UZuq52BRr9+6qif/g6mVZT5Zw8hHGY6oY1IKTAdqBmrAi25BpyGkOCYWDVuBRO5xNntImQ8+Po3LP2PshuRgJDC+d9g0Sgdsfw5W27wONR9Kw7790dR+5zQrF5t/aZWaGzEz4JcvGOUWjtwtWX+DQt9cN4dNWSLiUiZq7MO5/F3s7MFje3YL4yxjNr0TkX82ayKReQrc1nhkneEfo1Ucj08Jx/kPGDCFLxCwEef7g5gI069Tdpg== MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: fc0b6840-1e00-467c-cb29-08d493b32c55 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(201703131423075)(201703031133081); SRVR:HE1PR0701MB3020; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0701MB3020; 3:cFjus1wB6T1Y/Hbqmt0CYH/pNdWsKcaln18jxLBNT/n9bdKftCD1f3xFGtBT12+YoKLLEOtuGTMm2eg8N7Zf//3nY8NJj4rlSbN8MV4bUQX1En6LZrKFkwjlGlb7HxlYSvNwGudNd6F4ARJCmy40sz/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GpG006BYfx4ieY7CiJEKYrHMWZe7XevBN2Q8bJ3iC+q/EA== X-Microsoft-Exchange-Diagnostics: 1; HE1PR0701MB3020; 20:fm+n9qtUKQW/I/TKjYpYTKcNRz9eprCY4yecEF3wWeedJBb2IJEqmiAqU0z7r+JqKuTU+sHQIRXw5CtkNLMABWCv2mHCSkbQ/TOpNeeLaFrd6e8JApHXdq+rZOkr6ioQ4SeT9Xs3EtprZUBAvT4TSZXNuWDGCqaGhZKGZpMSUJTtP49ll8ck7133PUmsU9tq5ctvBjK1691StNmq02ofj9VDeQyhabT3N20DXE3YqmACgKpOQ9Mb2Xr68z0JGUoArscchbn1kEaFSsGugMRoTReGbeQNK3EC02s+u8j4/+prs+l9gb3mUpg+t87B8P1VCaij6qDeA0/FLE/t8Ip59yFN+wrHtcNOoxgW+sf1PTfaJMlyF4qckVYSfcVvwIXagEvmp4iaM6AqUmRgx6owDkF4UPaN4phwMQksAqCbEmOnxdaIZrZXrhBWXn6mlEG96roL82pvmqt9cOD8YcfXnkc2SGteb0qvgmHX6yshHvx7s9Q6qt02GNqNtf05oYAZyU4++NM2p+fG67asdrse6vbHAGzuxwvmPZPt9WE6C9GUcdmwVBVZkKPWoRNRQvPwtKFoVa+VlK+ztJhoJde2nuvUOcbADWgE2FGe5gcvwkI= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(13021025)(13023025)(5005006)(8121501046)(13013025)(3002001)(93006095)(93003095)(10201501046)(6055026)(6041248)(20161123564025)(20161123560025)(201703131423075)(201703011903075)(201702281528075)(201703061421075)(20161123558100)(20161123555025)(20161123562025)(6072148); SRVR:HE1PR0701MB3020; BCL:0; PCL:0; RULEID:; SRVR:HE1PR0701MB3020; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0701MB3020; 4:2YDKeZBVPV9FgtTlCKgDWPJafv/48F79x95W9VtfjTZDHxY2NtG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9zgAKgKbgK5jDQq40yzmNIWt8gRNS8RGGRp6cZhHT4Yuu/4lAg== X-OriginatorOrg: nokia.onmicrosoft.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 May 2017 12:35:11.6300 (UTC) X-MS-Exchange-CrossTenant-Id: 5d471751-9675-428d-917b-70f44f9630b0 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5d471751-9675-428d-917b-70f44f9630b0; Ip=[131.228.2.241]; Helo=[mailrelay.int.nokia.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0701MB3020 Subject: [lng-odp] [API-NEXT PATCH 3/3] api: ipsec: add max number of cos capability X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Added capability for maximum number of different CoS in CLS pipelining. Signed-off-by: Petri Savolainen --- include/odp/api/spec/ipsec.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) -- 2.11.0 diff --git a/include/odp/api/spec/ipsec.h b/include/odp/api/spec/ipsec.h index 255fee50..6be8169a 100644 --- a/include/odp/api/spec/ipsec.h +++ b/include/odp/api/spec/ipsec.h @@ -250,6 +250,11 @@ typedef struct odp_ipsec_capability_t { */ odp_support_t pipeline_cls; + /** Maximum number of different destination CoSes in classification + * pipelining. The same CoS may be used for many SAs. + */ + uint32_t max_cls_cos; + /** Soft expiry limit in seconds support * * 0: Limit is not supported @@ -658,7 +663,8 @@ typedef struct odp_ipsec_sa_param_t { * classification through this CoS. Other result events are sent to * 'dest_queue'. This field is considered only when 'pipeline' is * ODP_IPSEC_PIPELINE_CLS. The CoS must not be shared between any pktio - * interface default CoS. + * interface default CoS. The maximum number of different CoS supported + * is defined by IPsec capability max_cls_cos. */ odp_cos_t dest_cos;