From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0066.outbound.protection.outlook.com [104.47.37.66]) by dpdk.org (Postfix) with ESMTP id 25E8C1B1F7 for ; Wed, 25 Oct 2017 14:05:48 +0200 (CEST) Received: from MWHPR03CA0004.namprd03.prod.outlook.com (10.175.133.142) by CY4PR03MB2695.namprd03.prod.outlook.com (10.173.43.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.156.4; Wed, 25 Oct 2017 12:05:46 +0000 Received: from BN1AFFO11OLC004.protection.gbl (2a01:111:f400:7c10::163) by MWHPR03CA0004.outlook.office365.com (2603:10b6:300:117::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.77.21 via Frontend Transport; Wed, 25 Oct 2017 12:05:46 +0000 Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1AFFO11OLC004.mail.protection.outlook.com (10.58.53.75) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.156.4 via Frontend Transport; Wed, 25 Oct 2017 12:05:46 +0000 Received: from [10.232.134.49] (B35197-11.ap.freescale.net [10.232.134.49]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v9PC5egu015772; Wed, 25 Oct 2017 05:05:40 -0700 To: Olivier MATZ CC: , , , , , , , , , , , , References: <20171014221734.15511-1-akhil.goyal@nxp.com> <20171024141545.30837-1-akhil.goyal@nxp.com> <20171024141545.30837-6-akhil.goyal@nxp.com> <20171025093816.w5ujncito5o7qjuj@platinum> From: Akhil Goyal Message-ID: <83fd3af3-2e9b-11ca-5d6a-f64df341dba7@nxp.com> Date: Wed, 25 Oct 2017 17:35:39 +0530 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20171025093816.w5ujncito5o7qjuj@platinum> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-Matching-Connectors: 131534067465062360; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(7966004)(39380400002)(39860400002)(346002)(376002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(24454002)(68736007)(15650500001)(64126003)(77096006)(50466002)(76176999)(54356999)(50986999)(305945005)(229853002)(97736004)(189998001)(23676002)(8656006)(2906002)(356003)(81156014)(81166006)(8676002)(8936002)(104016004)(316002)(58126008)(7416002)(106466001)(4326008)(498600001)(230700001)(54906003)(6916009)(93886005)(2950100002)(33646002)(83506002)(5660300001)(65826007)(47776003)(65956001)(65806001)(31686004)(36756003)(6246003)(31696002)(53546010)(53936002)(105606002)(86362001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR03MB2695; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11OLC004; 1:pP2FikxWumCwXePYlOhXnHoodnx8h8GZdnVDn0apCzStL9sJcSt6915/1MoGntIfLO2pyyCmkOO7rgCqM9xe4GX/vLf/kwuMCVp/KGVuEEtSNz4meHTFQ19kgsBLydBo X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6308c5d5-ecaf-45d1-fcf0-08d51ba0b981 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(4534020)(4628075)(201703131517081)(2017052603238); SRVR:CY4PR03MB2695; X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB2695; 3:lpAHK767VIp7YBXJQ+M+5Dg30I3mW2tYe70EOQex+s9adyqhu1r3MMxmMA5rwPND0VEgLTXOfL04HiVF0v6SL5kVPLZLktoD6b5QMZJK8gIQ54SLH/qdVgfgOzLNoi4rQW5BbFumHeu+kz2Iy7dw32XHID2cNkgiQ3jV/BZZeULQ5KsONroFNA55G5I70atfOzn0JVcjgerjDgzmfY6venLg7PHVeR2MQDEEZP0iSxxyPYIuq+5tMVEZOKHR0ibzqrrUYEeG3/G/OAq+KVSNh8LRTkCf++Blz9yWuIZXzAzyTGt+KJv2Ztqu87/TCqfy6fwH0bRHwG3EGW4IxSbDBWofIqD0vXAn+gDJ3xPJp+k=; 25:n4qae/n4PN1eTrPx6nPYSxEfbCRqGP/qvefIlnNali15apxw5aJ6GBoIe29Gedw3iCdo+YILv1/Keb88+L7Fa0i2qxFmJDsfn5Uq0h58DImwpzrtlamLMh5u3d3UYZaHl2DwbYfQI35fpbhRXYzDXWTFW4KPGeyG1/VZqB2taMqwLl96tFqyUlF+zy1kDLXxCJykdaisXI1qRxq064eu86uvAh0bIci+6mjHu29t6kuOUM6laT8cdlkIpE6IqyKNVJt2/j5ZQVHhLQf5hk2zDuUABv3CfX7LArapUIHSsIeyuHgmhfXRAN0TrvYf7DC+4ajGg9clI/aMM7vbUtCOffLxFHF++IiVtVNnjpDA74U= X-MS-TrafficTypeDiagnostic: CY4PR03MB2695: X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB2695; 31:uhRb/0cJOSXM6srPunqRrDW1sVIL3cdD0eoxJvVv/1gRd0iGrefLzEDofWclkliC+nw7PX6ZPpMjnA5pDOhJNyas9lU+dAxyW3+pqTVaSWqMhG+L/ECiX9mm/eS7KnZdUdG0BIDHbmHEwHNFXKC764EXBSbHN0i8BaF+g7n+CYJ0/I+OcbHLzEcBhcdFPAc+ehsLDctFkw4b3FcjAYIkvllDIBH+BtKozOSJ4ysbPj0=; 4:CgRYAqHcwdGI0eTjHUI6ImNG3xz3b4ZrtlW9J8uJNcXRMoiZEFseDn17LV2BGDdZn52gWgyDdLmZuz3Mr/6S3Hocdi/tJi1dVem6cc6YeTlq4Sn/wfPqamJiNPuaNhaV49Vn2P/KRLEBdB1LxAO02s2seqaLRt80aEpCe0f/3IeKL4aSKG6hk+0L/sfkHYS/+uGNrBU1+LZJMfE/bpIaEeL0HB3qUGhM22c8ERwtTK3NrpQNdlOhIOSREMUa6LcbmTJKoLN1rJtFUj3wtMHqxX9rppJwSqGnEnXa1dtSAM64ZVmi1fDSCn5yFSWhVgLqtBKydaVEUAV3ftqRbM5wAg== X-Exchange-Antispam-Report-Test: UriScan:(192374486261705)(228905959029699); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(2401047)(5005006)(8121501046)(3231020)(3002001)(93006095)(93001095)(100000703101)(100105400095)(10201501046)(6055026)(6096035)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(20161123556025)(20161123561025)(20161123565025)(20161123563025)(20161123559100)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY4PR03MB2695; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY4PR03MB2695; X-Forefront-PRVS: 0471B73328 X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtDWTRQUjAzTUIyNjk1OzIzOkFyV1pyTmhKVERoN0hNcHExbjFSS054ckNa?= =?utf-8?B?OWs0eG8wVmJKQzFGOHBwZVIrRTV0WDdYN0RKY0N0V0dDcmExZk1tR09HQkFv?= =?utf-8?B?aHl0RGtqTU16RkwrTDNpa3ExQzFiV2tkTjlXanAwQUZTWE5kT0dXYXFScTRS?= =?utf-8?B?Zm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-Diagnostics: 1; CY4PR03MB2695; 6:hZ0pmDgO04GMpDlFV7iFGukGlPa9SgNqZyKZG7gvHJ9DI2cdrEM42+rJRaZoLmfxYPZQfy+Djs7yftqyL89e346inDSp+hQ76h3r5B0IkNGwird8U8VQ7dVYGdevJKRef9F8q1bMrpWG6goyhP10LeLqBD1kLu9wJiluBCHsV7UAuIJ32B7XG5ocZuEegHZyxH23RdEM40UEBU+FUNjS3GDparBL2jYe2Pq4ZbN1QgXwTwqRjXB6RCwCX1Sf1OwzzMa8HldE6Zvx7w2+cVkac91pzjd/mkxwdG26MzjYpI0CIkfuBo0JTM/vsREa1cwuVWrT3tysldSGz1ZzjebZww==; 5:8VZLIH9e35716CRLvYRatWrpLUXZJTYeDuLA3MSUn4lUWIf6emm8v1wUasRTJzJn17FwK/npDBCwXrOST+kt1lfUyKQzcuROZgwDBnFeNDVTG/kF4IsvPVKSF0cd/SH2FmvpY9XVzxNexJj+E3jFFA==; 24:OffF+NAXz7ZuMAqi37sHtVay9zSmhxwIN2oqO6n//pLrRXkmQQKNQsgfGMEr3PYMfryCEP7o8bm96CipOTaFFzOVA9SrU2gH/bPhmU4GL28=; 7:q5xi1hPqIsBGzyuvY7mRrUKPq6NMNTwmUt484AJcY9UlPJR5D78If4Hav6j6Ql9dfsYYO3XZgTW4P4GqEP74uEag69Xr3nsj2REh0jrzqsjaZsiymEheMB5oU7JRnLNgIoaeQa4XvpfLZpXZnrSAu1ePg16vcwdvhU2egnyIWJpu54LEhcTgE9wtPnfy6C+iwejQZinsLoZJYVW1NeFHScVkTEMGA3rYFPEDoWaR5oM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Oct 2017 12:05:46.1630 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6308c5d5-ecaf-45d1-fcf0-08d51ba0b981 X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR03MB2695 Subject: Re: [dpdk-dev] [PATCH v5 05/11] mbuf: add security crypto flags and mbuf fields 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: Wed, 25 Oct 2017 12:05:48 -0000 Hi Olivier, On 10/25/2017 3:08 PM, Olivier MATZ wrote: > On Tue, Oct 24, 2017 at 07:45:39PM +0530, Akhil Goyal wrote: >> From: Boris Pismenny >> >> Add security crypto flags and update mbuf fields to support >> IPsec crypto offload for transmitted packets, and to indicate >> crypto result for received packets. >> >> Signed-off-by: Aviad Yehezkel >> Signed-off-by: Boris Pismenny >> Signed-off-by: Radu Nicolau > > [...] > >> --- a/lib/librte_mbuf/rte_mbuf.h >> +++ b/lib/librte_mbuf/rte_mbuf.h >> @@ -189,11 +189,26 @@ extern "C" { >> */ >> #define PKT_RX_TIMESTAMP (1ULL << 17) >> >> +/** >> + * Indicate that security offload processing was applied on the RX packet. >> + */ >> +#define PKT_RX_SEC_OFFLOAD (1ULL << 18) >> + >> +/** >> + * Indicate that security offload processing failed on the RX packet. >> + */ >> +#define PKT_RX_SEC_OFFLOAD_FAILED (1ULL << 19) >> + > > in case you do a v6, please fix the alignment, else we'll > fix it globally in another patch later. > > Acked-by: Olivier Matz > will fix the alignment of the defines made in this patch. Thanks, Akhil