From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70089.outbound.protection.outlook.com [40.107.7.89]) by dpdk.org (Postfix) with ESMTP id 7C3A14C74 for ; Mon, 8 Oct 2018 11:49:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9P4Fw3Hbm5bA82gbY78fX/5BIfzpfRSg5cnwhOvwtiQ=; b=IGDI4Fmi+KAIqbxG6+PQrCdsxf68PAnXEh7rtdG9YWRXuVhqrm5QGuMeN+wTUy5OVCfSXp41q4CjMS8q6NZ9KkoUdtRaNm4BfRbMe1/JoDcgr/iXDOz8MLjBwujLWKSWth4iJTAktXcZHqjw1r6J9ZIoKgluFeZ41zmSdhsCyj0= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=akhil.goyal@nxp.com; Received: from [10.232.134.144] (14.143.30.134) by AM0PR04MB4882.eurprd04.prod.outlook.com (2603:10a6:208:c5::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1207.28; Mon, 8 Oct 2018 09:49:36 +0000 To: "Joseph, Anoob" Cc: dev@dpdk.org, Declan Doherty , Pablo de Lara , Radu Nicolau , Jerin Jacob , Narayana Prasad , "Verma, Shally" , Vidya Sagar Velumuri References: <20180828130105.30779-1-akhil.goyal@nxp.com> <20180828130105.30779-2-akhil.goyal@nxp.com> <0b682c3f-bb01-8970-f271-7ffa61cbface@nxp.com> <26ac4ab0-bb36-918a-23fe-41833eba9e7e@caviumnetworks.com> From: Akhil Goyal Message-ID: <08b3f2b9-260f-bea0-4cc1-61a40982190e@nxp.com> Date: Mon, 8 Oct 2018 15:19:24 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <26ac4ab0-bb36-918a-23fe-41833eba9e7e@caviumnetworks.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Originating-IP: [14.143.30.134] X-ClientProxiedBy: PN1PR01CA0111.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00::27) To AM0PR04MB4882.eurprd04.prod.outlook.com (2603:10a6:208:c5::11) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 82c59ca5-0763-4607-dc07-08d62d035cd9 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM0PR04MB4882; X-Microsoft-Exchange-Diagnostics: 1; AM0PR04MB4882; 3:x38vcMYn/GmK3Q9TCH6Z2xkeHlOO76c7azUN/pmFFf79tYQKm+q8lhg5IZPibhR58QqNpySENJFZf11vuah5tqQJCVebRoSnoX4iAyRWlqDVaid1qpK35N4K8VDt8qG1IILm1yan/4mI1ti6a/w9TTUJwB+6vgl6j9rQyhXT99dOnj9OiBxO8B/3xBHH9c8r3Ih9qOt15qnikdScCBVZliRozjh+RzssJwb8j4l3kbbnXIhb2e/aqiTHFxhMSjac; 25:jGebu0gdXucQUHxrXuySuh+0eEnjVMcEa+JJWDfpNh+H6+RYV2No7WIk9h43f/Q1UZ7vuBp0uv9us7Lijh4ty+waTUzfscxUwnFiug55C054rz8ur4VRMkEug2JM6/z2+E56thd+YuSR4Yl5xEpCITkRNHpwzkRtyivNBOSBR6coe41cCdEY9trK+6bNSLQCGKgCwH+XivaBPtkRkb8qjDU6JP8viqd35tdYc9yYxud7a+ZU6vLVTG94e5VNIgjGAqz1qhRkklOfKPxz9oElKxO4ZbAbFLnzA91ZoBdN9Prh816RRLd6fZDdj/T/rfmMYcIxhn0+D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md+I0xN2It8sssXxEtp+Il+P1VzrBoaVWzSW5XRj7ASiefM21zUKGeJt4e7WDLz8wG9PqEAaP/Jys91oG56P1qIvtqtjOi6sZyU7iww9B4zSIBGGz6bCBH8gbcIhCShLi5ueFQ= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(192374486261705)(269456686620040); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(3231355)(944501410)(52105095)(93006095)(93001095)(10201501046)(6055026)(149066)(150057)(6041310)(20161123560045)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(201708071742011)(7699051)(76991055); SRVR:AM0PR04MB4882; BCL:0; PCL:0; RULEID:; SRVR:AM0PR04MB4882; X-Forefront-PRVS: 081904387B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6049001)(396003)(136003)(39860400002)(376002)(366004)(346002)(189003)(199004)(67846002)(5009440100003)(97736004)(93886005)(68736007)(81166006)(52146003)(2486003)(58126008)(8676002)(76176011)(23676004)(81156014)(316002)(54906003)(8936002)(186003)(77096007)(16576012)(16526019)(26005)(2906002)(478600001)(52116002)(55236004)(53936002)(386003)(446003)(11346002)(25786009)(3846002)(3260700006)(6116002)(14444005)(106356001)(31686004)(105586002)(2616005)(486006)(476003)(956004)(44832011)(229853002)(50466002)(4326008)(64126003)(305945005)(2870700001)(5660300001)(31696002)(7736002)(86362001)(15650500001)(36756003)(65806001)(6666003)(6916009)(65826007)(47776003)(66066001)(6246003)(65956001)(6486002)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR04MB4882; H:[10.232.134.144]; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtBTTBQUj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kyWk1OWlZvWTBoSzQ0?= =?utf-8?B?eTg5VTBuaXRJVU4vMGVSemlucDRlZHVtS0picnpkYzJtZnlveGxiRitUNHdZ?= =?utf-8?B?aGhna0dCRSs3SjNMMXhHbzUwYWgwckpMS2R0Wm5lT24yZXduaS9UYi9jbHFK?= =?utf-8?B?V0NxdzNIVU1jMStCZ0lHRkFrc09wcGNwKzdzSVloVDRmNnY3SjlVQUFEVEJF?= =?utf-8?B?R3hCcTRUUUNnemU2bWJUUk9xS2Q0azEwYmhwL2Z1Rk1ONS90T3krZTh6Y0pt?= =?utf-8?B?MjBuazhQd3pNbmtlbE80QnFqeWJyNkF3V3E3VENpR3laWjZXamVWZFcxMTJ5?= =?utf-8?B?clE4N21QWkcxK3VBejdxVmVWN0hHSTk1L0dXaDA3V2swRHZkQVNGQkFSYTg0?= =?utf-8?B?U2RydTlJQzQwdXR6RkpGTFJQdzR3PT0=?= X-Microsoft-Antispam-Message-Info: Ex1gH1jAGT39ji0DmnWQkw8bH6RXZ+MlBIJTh+2He8uRKDUtfRenS07FYNXnUcRT0zZRreI2OPrhjVtpYSumTm4WQ1KOnXUy1FRpIpafCotO86SlN5Sx3f4viBZsvLSHgYE8H1t/lfVP81h93JPyR9L/7VqYmmwPkJskpqBjQyC0YQTKzHCBw9EpjbqVl3BWmHWOLF7pX3TR6CPrGitF6k4gStxMvKvm9GDsux81PInFv4p98WtcxDrmk410sluTn8i2stTMtmSDRCTjp8897nx1mehUjBAivebjH3r5qDPgSGFW2Zr0jTVKDJ/yGFkuBZFpLhDbH6/iqcs8gf3BJjqmBT9LFk9Yg5u84I9RpO0= X-Microsoft-Exchange-Diagnostics: 1; AM0PR04MB4882; 6:kG9AuInjuiPPQV2oeLshL2Ss/rhmSRZv1laiTZoTkS2frKyXVj6KROPrMhAiVcXDohl76UHTmMoeA3hsqwTcC8JpyPmH21pclsVw+rPDiDlml6c8taaOWe2l+SoVY5IVFVls9wod6xLBNW67i1FGOyA6oDWGM4p3i1aGibW8u6TNSXHI8ks4ALrBe9XF2SdaOYRNeGoCNrpnS2jB0JjuaBuAnDsvm34p7y8MwQY46LEHrcg8dkwRGiSSW9v+820vaPm5QjVU1iPAKWPejRHWSTDTGHszHQtjIunbncNZRWZeYgD4U7LO17vvGLIyTPfinRIY6s8GmVxjmjTFKDVRg+947DS7p/TCgiKXzOqNjjWl38tg6XhmFJNzLF5oXevOPQAaNmjiC8hucEL5IEopVpNkSq64hQ0Bx2+qY24oLlF/4cFufDeqFCJX2QysSrmf0cdYkXWjOPtK6GX5eUToJw==; 5:53RqqMbOzOuzU94ibUMN81xnrb12WDwvjbwxtB2Wmrt8lwqozWmdumCXHWMAdEDxe3eTNMHMN0kqe/sc2KxTG1JaB6YrSL+xy0WhHMdSnj13A5QNTzhVGr7ibxXhzr2yU2PVb0ubMxX5a1XjWQrQL5c/cBV2W3V9CcLc+rX5+/w=; 7:KgUo0fVrhTWagIUjOJTKyG6nICwczPjwiDcFoc53ij0sTIhkWNAZaACN77o9eBve+lw22lwaQCWncBxDIoPDI4RM6uXlicMrn8nT4uCl0C+RP/KW90nRZGl49TV0J9nLrJQc0B7L+8yjrlk6pql0DwNPAaxDV8wORNR6zQ9N7vzntbOHrIH68JQvtsrGrib8EX5giIzwojWRswx1/FYOAdjXnlPTyor05FQ4w7VP0PHoUnmkvhcOLrFmfw3b1gI5 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Oct 2018 09:49:36.6374 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 82c59ca5-0763-4607-dc07-08d62d035cd9 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB4882 Subject: Re: [dpdk-dev] [PATCH 1/3] security: support pdcp protocol 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, 08 Oct 2018 09:49:40 -0000 Hi Anoob, >>>> @@ -494,6 +553,23 @@ IPsec related configuration parameters are >>>> defined in ``rte_security_ipsec_xform >>>>            /**< Tunnel parameters, NULL for transport mode */ >>>>        }; >>>> +PDCP related configuration parameters are defined in >>>> ``rte_security_pdcp_xform`` >>>> + >>>> +.. code-block:: c >>>> + >>>> +    struct rte_security_pdcp_xform { >>>> +        int8_t bearer; /**< PDCP bearer ID */ >>>> +        enum rte_security_pdcp_domain domain; >>>> +        /** < PDCP mode of operation: Control or data */ >>>> +        enum rte_security_pdcp_direction pkt_dir; >>>> +        /**< PDCP Frame Direction 0:UL 1:DL */ >>>> +        enum rte_security_pdcp_sn_size sn_size; >>>> +        /**< Sequence number size, 5/7/12/15 */ >>>> +        int8_t hfn_ovd; /**< Overwrite HFN per operation */ >>>> +        uint32_t hfn;  /**< Hyper Frame Number */ >>>> +        uint32_t hfn_threshold;        /**< HFN Threashold for key >>>> renegotiation */ >>>> +    }; >>>> + >>> [Anoob] PDCP packet ordering should be both a capability and a setting. >>> HFN will be incremented overtime and starts at 0. So why is it part of >>> the xform? >> >> The Security accelerators may assume packet in order. Latest PDCP TS >> suggest to do de-Ciphering before re-Ordering the Rx PDCP PDUs. In this >> situation, the accelerator may use wrong HFN value. The PDCP application >> can provide the appropriate HFN value along with PDU to the security >> accelerator. >> > So what is the expectation with regards to ordering? Would PDCP know > the order or is it unaware of the order? > If implementation of this Spec knows the order of packets(which is > implied by the "In order delivery and Duplicate detection > Sequence Numbering" statement in the PDCP flow diagram), then there > should be no need to override the > HFN. If the implementation does not know the order of packets, then > the flow diagram should be corrected. > Also, is implementation expected to support ordered delivery and > duplicate detection. Perhaps it should be > a capability or 2. This patchset is basically talking about full protocol offload with look aside accelerators. And when we are talking about full protocol offload, all protocol related stuff like ordering, headers etc. needs to be handled by the HW/driver. So the expectation is driver/HW should be able to perform in order delivery and detect duplicates. If somebody have support for PDCP in the hardware, we can add capabilities as per the specific requirements. In v2/v3 I have removed the hfn_override. Will add it later when it will be supported. Thanks, Akhil