From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id DF8A9A0096 for ; Mon, 6 May 2019 21:52:41 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id F1678374C; Mon, 6 May 2019 21:52:39 +0200 (CEST) Received: from NAM05-CO1-obe.outbound.protection.outlook.com (mail-oln040092013039.outbound.protection.outlook.com [40.92.13.39]) by dpdk.org (Postfix) with ESMTP id 4768FA3 for ; Thu, 2 May 2019 01:31:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RxB3iBLATSophqamfTMDWZF3Qpp/bbo8pi0N+ELUjYo=; b=sqipTB+Y1UifGyxdMUJhhXZYDJT955FGMvv+GdmWhrpz+Rll75gk0JZ1Kb4Z+3Rl5gaG9B5NqMiiq4Bre1MCw1207cxMgLt+9UmiECFd6mr0IchYg9XvUmjUrFZP6LjAuFCIQ78eRbI1bhtEZMhA8Vzuyi6cvfjco0rabYuhWJKUVWPyRyQbyrwfl0RPvUJCKgvsvaGRJAiCUYh0ijwvbnmJOK2gkQq2VipT5xHZ66nEVVHuMPQNO94GcpqNzDafhqLxNcse8/f8f/qObpz/9sC1+WzPf28HBI8IFC0jJXzL21p1Rlqxe8lKtX40Pr6cdhFCgPAhZr8htqy8wm5wHQ== Received: from BY2NAM05FT028.eop-nam05.prod.protection.outlook.com (10.152.100.54) by BY2NAM05HT019.eop-nam05.prod.protection.outlook.com (10.152.100.220) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1856.4; Wed, 1 May 2019 23:31:19 +0000 Received: from CY4PR02MB2439.namprd02.prod.outlook.com (10.152.100.53) by BY2NAM05FT028.mail.protection.outlook.com (10.152.100.165) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1856.4 via Frontend Transport; Wed, 1 May 2019 23:31:18 +0000 Received: from CY4PR02MB2439.namprd02.prod.outlook.com ([fe80::7812:b09d:65fc:d2c2]) by CY4PR02MB2439.namprd02.prod.outlook.com ([fe80::7812:b09d:65fc:d2c2%8]) with mapi id 15.20.1835.018; Wed, 1 May 2019 23:31:18 +0000 From: Robert Nie To: "dev@dpdk.org" Thread-Topic: about IOVA and namespace in DPDK 19.05 Thread-Index: AQHVAHDqWdk4esV5Ckm2kNo4V1OjLg== Date: Wed, 1 May 2019 23:31:18 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:0633254E303F2457A70589A3131EE360AEDA392E766A2A9320953865E48A14D9; UpperCasedChecksum:2762EF6C5AC9B250EB92E125D807110272E64F5493068FB915DE0BAAA61CCF9D; SizeAsReceived:6491; Count:40 x-tmn: [RLcoujNgmJwPS8tsq27chkdXsmOdIbjd] x-ms-publictraffictype: Email x-incomingheadercount: 40 x-eopattributedmessage: 0 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(5050001)(7020095)(20181119110)(201702061078)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031323274)(2017031324274)(2017031322404)(1601125500)(1603101475)(1701031045); SRVR:BY2NAM05HT019; x-ms-traffictypediagnostic: BY2NAM05HT019: x-microsoft-antispam-message-info: u7dpyWk0aixTEjsiNvIWotzyYoSKPhgHy2hi2coh+AC0iyibwEUlScgjjTn9qi0jLpkG2StTe17V3lrYCmBsS8AQBsZ2VQGTRN9LCjHD1C8pT6Wm0rtGFuRqnXcD3ltH5gQgZzcTIHMzOJuGTmC0pI5Vg4zV3dn+K+uYLBLESuy0WDU4nW+TI4YFcQ8Zyllf MIME-Version: 1.0 X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 1738a44a-2cda-4c0f-0618-08d6ce8d1cb1 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 May 2019 23:31:18.5997 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2NAM05HT019 X-Mailman-Approved-At: Mon, 06 May 2019 21:52:38 +0200 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] about IOVA and namespace in DPDK 19.05 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Message-ID: <20190501233118.pRvVQi9k0y7b94ByBpEzUBpA2q-GlQ-JmlXQHqcg-OI@z> Hello, I am take a trial on AF_XDP feature of 19.05-rc2. I encountered two problem= s. One is about "iova-mode", another is about attaching bpf prog onto inter= face of specified namespace (probably new feature?) I created a VM using uvt-tool, release=3Deoan, cpu=3D8, mem=3D8G, with host= -passthrough enabled, and set vm.nr_hugepages =3D 2500. And then create 2 d= ocker containers. And then run testpmd with parameters "--vdev net_af_xdp_a= ,iface=3Dveth055cc57,queue=3D0 --vdev net_af_xdp_b,iface=3Dveth438434b,queu= e=3D0", where veths are host side interface names of two containers. Finall= y I got following error, xdp_umem_configure(): Failed to reserve memzone for af_xdp umem. eth_rx_queue_setup(): Failed to configure xdp socket Fail to configure port 0 rx queues After some digging, I fixed it by using "--iova-mode=3Dva". Would anyone pl= ease let me know if it was safe to use "va" instead of "pa" for veth use ca= se? Or any performance drops? Secondly, I'd like to attach bpf prog onto interface inside container, e.g.= "lo" interface, so that my code can verdict the traffic between containers= inside a pod. Then the testpmd arguments would be like "--vdev net_af_xdp_= a,namespace=3D,iface=3DNAME,queue=3D0". Do you think this feature is do= able and meaningful? Thanks, Robert Nie