From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 15948A0524 for ; Tue, 13 Apr 2021 07:13:27 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8ACC4160AE5; Tue, 13 Apr 2021 07:13:26 +0200 (CEST) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60068.outbound.protection.outlook.com [40.107.6.68]) by mails.dpdk.org (Postfix) with ESMTP id 3DD80160AE3 for ; Tue, 13 Apr 2021 07:13:25 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=E0gh3f9angQ1xceBDp/fSHbjL/30ObX6QmSw5ipUrxr5L6cfsHzBzwx69KrW5RWkhpzMUl9rRGmOr1ub0YZSSH2jzfY0K70ULiuMHDJ0GPu3jWstEZVhL7lBSWlOS1gBS+Krz8lp9r2i6ksD9z9rmxGABVLbqoFPZT2QUXc1BZTBatieiFd2EEAK/RAOuStelmqhEEusg3OS61bXFeX36RoKcLW9AOtFgK/HZZZU/qnoyvwDePOHH1ttuM1eriG6tAytk7JBJFNciY4972hcXM0VLMThhglXJOXmfuwr26dq1Lr/G2FHH/E8IFvSEnKyJofyuVCEQ7c9FmZdhV8iHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iXyVuV1eraKYLLRxyE1/SKo3l2MAEnbhxGxnoHlSePE=; b=BlMuo10NvSj5lLr/10OgchpXd67RxfGNXsq1UCxJDa5SaqqF3gb3B/1c1v/si6kzzRUUvKUYAz6qGhqGcXtfkQG5N6+QUTDvY22lcAo/1O3yjSTvUPrdkQ0L7cHTRYsPPFKsAgixXeSb0cVqafvHBXTfxPFRYjyiwgprf081wPW/PKB0rzTNWxSDN35dd2dkH/fQl8K1crgnH0FDb8ENNGU9Jtzefh5EGtTpKvYmHYDI9Yf+8kL2W/UK2v9XtoDRYPkBbf4JV+b1PhZruLQJyU0KMuXf4yqUTyxMnBav7FRu852/fFKt1bc6yE6mHaPBcI9NJVb/doUr0J6upNptzA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iXyVuV1eraKYLLRxyE1/SKo3l2MAEnbhxGxnoHlSePE=; b=j1TxVwyWcX0bE8quegXYXCRkznieBR8Itp6oCWup4zBurYFiq6QlhagNe1aHjzpduQA5Yo91T+o8riXV9mfKiT126lQpJXLScM5r6vesQX3BGvlchn5gsZVGVedRZLPBEx8VdLmiFdZ6guf6VeXbT0tUo2Gk6x/cUrEFRFQ2qpQ= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=oss.nxp.com; Received: from AM6PR04MB4456.eurprd04.prod.outlook.com (2603:10a6:20b:22::25) by AM7PR04MB6774.eurprd04.prod.outlook.com (2603:10a6:20b:104::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4020.22; Tue, 13 Apr 2021 05:13:22 +0000 Received: from AM6PR04MB4456.eurprd04.prod.outlook.com ([fe80::ad9e:a38e:e84e:bf55]) by AM6PR04MB4456.eurprd04.prod.outlook.com ([fe80::ad9e:a38e:e84e:bf55%7]) with mapi id 15.20.4020.022; Tue, 13 Apr 2021 05:13:22 +0000 To: Bartlomiej , users@dpdk.org References: <8c26ceea-1403-8b3b-98f2-f9cd556cb699@conclusive.pl> From: Hemant Agrawal Message-ID: Date: Tue, 13 Apr 2021 10:43:13 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.9.1 In-Reply-To: <8c26ceea-1403-8b3b-98f2-f9cd556cb699@conclusive.pl> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Originating-IP: [223.178.219.73] X-ClientProxiedBy: HK2PR03CA0043.apcprd03.prod.outlook.com (2603:1096:202:17::13) To AM6PR04MB4456.eurprd04.prod.outlook.com (2603:10a6:20b:22::25) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [192.168.1.2] (223.178.219.73) by HK2PR03CA0043.apcprd03.prod.outlook.com (2603:1096:202:17::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4042.8 via Frontend Transport; Tue, 13 Apr 2021 05:13:20 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 163c9fa0-60b5-4539-c74b-08d8fe3adb8d X-MS-TrafficTypeDiagnostic: AM7PR04MB6774: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-LD-Processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2449; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: c/Xsxpi5UbLqHhWlDKGBZ2lK4nsnWv7uAxixFn9vYJaVUThJfbJVuv4dhC/zf9qfWH/DWQDjYt3qPDLNRYtNN+2DIVaecZu3btSUJ2QRg9+A3lL+hGU/vUYjH8hHXFVnANIQl7J60MhDx341C5bAh3NGkYZUIdxGjWaBEv4dhsdzfavfPd3V8cKx6u8te0RXp3hKzdi+NNyTB6IS9juO8v6N4coM/nnm8lr1NrO4MWmzmFA84uRhiVQLDINk8DwR/cEubRxINXoKDdfcrOqOXd2DZGD3JD33lgqvV7p33ekkSxfl/pMqIxYHbVdQYVmTi9qxq/3Mjo24j9h1PAMdyXmtZfh+AXidejhTgpY74siAK5k6JoXILfLQ4Ui+QEn8gyBvFUXmD/Z+9zg+2NN2aEWGU7Kvu/KlyIyCstLjCRdxn0CrF51oNUSdHIbhi6y0/Hgj0lGTjJVWaaFjy2HQQMZ1WDDtig/CmhV8ClFuSZVjJ+lXhL3uoM7qpvnpx6yvxFMYyRWASKyJcpNROMOtI8VGJzaYdKAgqYXBIS6sl22qiYBJUwtlA9TH1Qpf89BQvSnCxtV4r6ndxSnhkmIONR76WweRg1J7j1h4pHO0AA3WnOkKE1rbY7MtlhQs4gY27A+AYe1QE6L5j+AZ5gsGT+/WVz/l6N0FsxJaL2rItxBni2d4Jv4IriVDwUDJvJCfK+6Nir3jXavy+atidEoXdQ5lg71qkD3X44yPgJf2mBW5VPZKN32xTCz9viWN6st4Z7LDp6i6OMDBxnCYILsjaiwxbzX2wOqxxx0r1lXGe5poxRNCUofD2O2+qvrUQUmn X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM6PR04MB4456.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(136003)(346002)(39860400002)(366004)(376002)(16526019)(2616005)(186003)(6486002)(66556008)(66946007)(5660300002)(66476007)(31686004)(956004)(966005)(8936002)(26005)(83380400001)(316002)(478600001)(53546011)(52116002)(2906002)(16576012)(31696002)(38100700002)(8676002)(86362001)(44832011)(6666004)(38350700002)(43740500002)(45980500001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?B?QUNsaS9PcXZYS1J6d3RxbWtwUFBsczNYdGkraFFBMFlzWE1aZEx0TTQyV1BH?= =?utf-8?B?Uk1TUktUWmVFUU1kNDdFUnEwMS9JZ09xdGk0N1h3czRYMWN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Iek4vS3ovaHorQXVzL1d0?= =?utf-8?B?K0pBV0JxbmhhT3ZtWkt1c0gwaW5RZ29IcC94d1d1SGVHaDdhVUFhR0V4cU1n?= =?utf-8?B?bFpjdmdySGtLRnk3RDlQcHk2SkJYTHNWeklzb3JsL2FTRkxhRWVFb0MzNWZ4?= =?utf-8?B?ODhGRE4rVjQ2dXF3OTZrRWxGVGN1L0FOYzdGUExUZ08raERLZjlheVhSVUUw?= =?utf-8?B?VmsveXQxUG5EazYyeTBvR0ErUXF4R1dUWWRua1dNZkduMjVZR3NCYmtxV0FN?= =?utf-8?B?WlNTQWQrakhHYTV4VHM1eThCWHJYd0VWV0ZkcW85bUxyZURJcXd1OHZsanJU?= =?utf-8?B?MlpLekFFUldRcWFlNWZnZVV0TDRBUVZZbm1TUGtreDdCTW4ySzJLUllienNC?= =?utf-8?B?VHpYdHA5cjZuckdSYjVleEdvWVM1elVWNjN0bjhnRW90cTZjd201anpZby9J?= =?utf-8?B?MGJtL3NmVVgrVktNWWY0dlBxL3FlRlZJMHlIcm4xNnFpV25ramJ3dWlOTnB0?= =?utf-8?B?Q0d3bk8rQkxYNWdmREpyY0RkZ1cyTXdSQ0VBMlF5ZkMvaGZQYmZIQjlndjdU?= =?utf-8?B?TVNZekovdXpWZVNRWEl4eEJEblN0UHBuTVpGUDJuQW1FQWlzYXpuZ1JBNHBU?= =?utf-8?B?WEF6OENWLzJpU2hVcUtCRnI4TEtMZk5rZEJNaStOMzRpOHlpMHVSSElMakxa?= =?utf-8?B?UVdmdTdYZnp6S3ZhcGFMTENMY1RCUHlMZW1SeDdTTWVSRjlydnJaQUwrZGlP?= =?utf-8?B?REsweHdzNVJtN1EzblNHdjFjbFl4ZUJ4S0J1QnY4a1BVd1ZTM2ZVVVFhVmNZ?= =?utf-8?B?ZmFXWjJVMDd4cm43bFFRUT09?= X-MS-Exchange-Transport-Forked: True X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 163c9fa0-60b5-4539-c74b-08d8fe3adb8d X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB4456.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Apr 2021 05:13:22.0993 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: cMBGGcn39FS1L++1w6WVm6z4q3BWtfvTpbQb9t5ZHXARRjRjSDc4e6QeVTiwI99CYRpQ6zon8cy4SvNgXSLL0A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR04MB6774 Subject: Re: [dpdk-users] Problem with ipsec-secgw on DPAA X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: hemant.agrawal@nxp.com Errors-To: users-bounces@dpdk.org Sender: "users" Hi Bartlomiej,     I hope you are following the LSDK user guide w.r.t using right dtb file for userspace mode. Regards, Hemant On 4/12/2021 9:33 PM, Bartlomiej wrote: > Hello, > > I have a couple of problems with the example apps. > > The setup used for testing is a custom LS1046A-based board running > QorIQ 4.19 linux kernel. DPDK is built from the main branch with the > DPAA driver, specifically commit 41e026c1b3fd07ee. One of the ethernet > ports is under DPDK control and is plugged in directly into another > board for inspection of egress traffic. The DPDK apps are spawned with > a tap virtual device to insert some UDP packets for testing. > > My goal is to run the ipsec-secgw app on it with hardware encryption. > > I managed to run l2fwd successfully, but have a couple of problems > with other example apps: > 1) l2fwd-crypto crashes on `struct qm_portal` access, which after > checking in gdb seems to consist of zeros. > 2) ipsec-secgw - No matter what config I use, the only thing I managed > so far is to forward the UDP packets from the tap device to the > ethernet port. There is no ESP and the contents are unencrypted on the > other device. The config used: > > ``` > sp ipv4 in esp protect 5 pri 2 dst 10.0.3.0/24 sport 0:65535 dport > 0:65535 > > sa in 5 \ > cipher_algo aes-128-cbc \ > cipher_key de:ad:be:ef:de:ad:be:ef:de:ad:be:ef:de:ad:be:ef \ > auth_algo sha1-hmac \ > auth_key de:ad:be:ef:de:ad:be:ef:de:ad:be:ef:de:ad:be:ef:de:ad:be:ef \ > mode ipv4-tunnel \ > src 10.0.3.100 dst 100.0.3.101 \ > port_id 0 type lookaside-protocol-offload > > rt ipv4 dst 10.0.3.0/24 port 0 > ``` > > The UDP packets are generated according to this spec: > https://gist.github.com/bartlomiejn/2607847a3f70d543da92f5717b88fa4e > > Is my config correct? Can anyone help with diagnosing this problem? > > Best regards, > Bartlomiej Nowak > Software Engineer > Conclusive Engineering >