From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7F4C6A0471 for ; Wed, 14 Aug 2019 07:35:52 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A29D31B13C; Wed, 14 Aug 2019 07:35:51 +0200 (CEST) Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-eopbgr150050.outbound.protection.outlook.com [40.107.15.50]) by dpdk.org (Postfix) with ESMTP id E69221252 for ; Wed, 14 Aug 2019 07:35:49 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gKbJGt0bxFuwqdJLrPXO6TiZzEuAD3JQK6zTBXQfxqp4ffOwNt6i86HU26hogCt1e7jUM3gl74mCmMSO0Nhe17eMXi0T9VhwbEFeHtQ/xtqAx+t7wMgm8LoXYpnCRNsXp6IaTChwfE3iX/EcPNK11sjX6lVw9yLGAaPD/Cva/HBqy3xi06WVNKDtLgswRqJ7jDVt9lWi7DwjYkNWAKx6v/WiBKkE5XgmGQTqxiCQTrsQD0wm8cPR/1n07Q01JVOApblBiVZyaQY5jvxgd8hC9rXZoQ1k/Zrz4Ywu66ytTHqEvcu7HYhORJcn0ExPW06kx8WCGaQaPA0yvLxbF95ETg== 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=6YOS0AexN++e8c/fEujjsnIx/+G8vm6T++4QM1TWyUw=; b=U7gj7vX/KWomuaZw2K5F+U3ozJXHZRSynWy1qrO6DXzkwzZZHUsPy5MFQJxYSsFOAbze7kmXBiWL3vPk+yS4NheCRzogGp/MCJhRzv9Vt1Uz6nHjY+HlVANs8NVoAPeGIBdro44ji/EPmK6MlXrxH3OPPpIchksiq0pZFtIh1nQAVGhidacaWUAuxn4rgDyVN7ZbcdHdY1LpPRxCG79Tg7Eh9zQLVpDSTNXosHtYOp7iMhX6i04vPro2cbY22IjoTLXGl5Gm34tXC8CQruumAwHGiNJjnyRvuwRIYPzYedeSUGRZKcQ3Qc0nn4iz3WwNzlbI+hpnEZEwzYukw9n6lQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6YOS0AexN++e8c/fEujjsnIx/+G8vm6T++4QM1TWyUw=; b=bB+xNo5k0vhfKDLP2a5UpMrk20GNFO/dY0FlOFL5xEYnsU7n+FDgN+TDaG5udnpIOYyIFKzpjJSSVm7P8s9y49MB3CIiq8N05Teg5O7e2n5fPLhOciCBhEd6Y49fl9DyajijLsMFvmdMwhwoPmv6dPJ5SHCNSTDc5ezJDQzegvg= Received: from AM4PR05MB3425.eurprd05.prod.outlook.com (10.171.190.15) by AM4PR05MB3377.eurprd05.prod.outlook.com (10.171.190.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2157.18; Wed, 14 Aug 2019 05:35:48 +0000 Received: from AM4PR05MB3425.eurprd05.prod.outlook.com ([fe80::3444:7cb9:25db:14c9]) by AM4PR05MB3425.eurprd05.prod.outlook.com ([fe80::3444:7cb9:25db:14c9%3]) with mapi id 15.20.2157.022; Wed, 14 Aug 2019 05:35:48 +0000 From: Ori Kam To: Stephen Hemminger CC: Thomas Monjalon , "ferruh.yigit@intel.com" , "arybchenko@solarflare.com" , Shahaf Shuler , Slava Ovsiienko , Alex Rosenbaum , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [RFC] ethdev: support hairpin queue Thread-Index: AQHVUdxZYjq5dQPUn0m0/551v94NJqb5OMaAgADm1OA= Date: Wed, 14 Aug 2019 05:35:48 +0000 Message-ID: References: <1565703468-55617-1-git-send-email-orika@mellanox.com> <20190813084619.6b78a7b9@hermes.lan> In-Reply-To: <20190813084619.6b78a7b9@hermes.lan> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=orika@mellanox.com; x-originating-ip: [185.175.35.255] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 4fa940d8-9332-47b1-ea85-08d720794325 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020); SRVR:AM4PR05MB3377; x-ms-traffictypediagnostic: AM4PR05MB3377: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-forefront-prvs: 01294F875B x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(39860400002)(136003)(396003)(346002)(376002)(366004)(189003)(199004)(13464003)(86362001)(81156014)(8936002)(66066001)(52536014)(478600001)(102836004)(76176011)(4326008)(53546011)(26005)(6506007)(446003)(8676002)(6116002)(7696005)(3846002)(2906002)(6246003)(476003)(81166006)(53936002)(25786009)(486006)(186003)(64756008)(7736002)(66446008)(33656002)(55016002)(66556008)(99286004)(66476007)(305945005)(6436002)(256004)(66946007)(76116006)(9686003)(71190400001)(54906003)(71200400001)(229853002)(6916009)(14454004)(74316002)(11346002)(5660300002)(316002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR05MB3377; H:AM4PR05MB3425.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: ljDs4rQ0C5DLNawGb1dTprawc8IQP5G93jtdwdtC076Kx948UPKVnApUBHecv2NMQIzx2Lfy1f4A8gf2lD3CFuW8sONcd3XkghR15BL6ThfERTx5QVLjUXkEecBrzzq4Y67QDwd9iO6sW5FKVYksatTGgUGPnAjQvl+YHa61XvISId2jS47wTdDAtVnB4BopdXzNsgY8SRqDTc0U7MocQTcIaEtsdzaWR3dkxjybARnJFeN/bQhWj78A2b0D486cnTWhtD13kSw3fSyeNqcBBeBCIUUCMKB4bzhXKkskwYzOKRlzKms8u3FiA9yraG76rtZZy/5yJe0hfRUywiwMadCdr9ba7w7pGYQlV39KcxMLdajABr7lS9GfvazjGvhZw1bsuHMFrCMEbIxUs3CtN0S1E1CmRonQmq5wEuoAy/0= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4fa940d8-9332-47b1-ea85-08d720794325 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Aug 2019 05:35:48.5075 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: EzbU18FJ9YdwXErzPfrWk45Nm/fM+JeAuwKkKDXq+xs5zhg5fHTEg0HtzIlsObRpKGGzfKF4IT1ICs9i3SZRdQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR05MB3377 Subject: Re: [dpdk-dev] [RFC] ethdev: support hairpin queue 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" Hi Stephen, > -----Original Message----- > From: Stephen Hemminger > Sent: Tuesday, August 13, 2019 6:46 PM > To: Ori Kam > Cc: Thomas Monjalon ; ferruh.yigit@intel.com; > arybchenko@solarflare.com; Shahaf Shuler ; Slava > Ovsiienko ; Alex Rosenbaum > ; dev@dpdk.org > Subject: Re: [dpdk-dev] [RFC] ethdev: support hairpin queue >=20 > On Tue, 13 Aug 2019 13:37:48 +0000 > Ori Kam wrote: >=20 > > This RFC replaces RFC[1]. > > > > The hairpin feature (different name can be forward) acts as "bump on th= e > wire", > > meaning that a packet that is received from the wire can be modified us= ing > > offloaded action and then sent back to the wire without application > intervention > > which save CPU cycles. > > > > The hairpin is the inverse function of loopback in which application > > sends a packet then it is received again by the > > application without being sent to the wire. > > > > The hairpin can be used by a number of different NVF, for example load > > balancer, gateway and so on. > > > > As can be seen from the hairpin description, hairpin is basically RX qu= eue > > connected to TX queue. > > > > During the design phase I was thinking of two ways to implement this > > feature the first one is adding a new rte flow action. and the second > > one is create a special kind of queue. >=20 >=20 > Life would be easier for users if the hairpin was an attribute > of queue configuration, not a separate API call. I was thinking about it. the reason that I split the functions is that they= use different parameters sets. For example the hairpin queue doesn't need memory region w= hile it does need the hairpin configuration. So in each case hairpin queue / normal queue the= re will be parameters that are not in use. I think this is less preferred. What do you= think? Thanks, Ori