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 7DBBBA04BC; Thu, 8 Oct 2020 11:44:36 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 55C741BBEE; Thu, 8 Oct 2020 11:44:35 +0200 (CEST) Received: from hqnvemgate26.nvidia.com (hqnvemgate26.nvidia.com [216.228.121.65]) by dpdk.org (Postfix) with ESMTP id 383461BB71 for ; Thu, 8 Oct 2020 11:44:34 +0200 (CEST) Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate26.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Thu, 08 Oct 2020 02:44:19 -0700 Received: from HQMAIL101.nvidia.com (172.20.187.10) by HQMAIL105.nvidia.com (172.20.187.12) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 8 Oct 2020 09:44:29 +0000 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.40) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Thu, 8 Oct 2020 09:44:29 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bqf+g1QDw3WS7JHYDgGANg/763f5Qt6KYMQ5PslHlT53MtmU0lg/TVi+KW/bdF+5E9Jo8RG2U1uyYBs2LF0x3ZE2aiKU1WotYGzddOKRXae2euJCVivQQi5BzWk1S6YZThkH96Dt5cQjwDGKJPG+mv00Kc7NBKjztr6rzPkqPoB9Sz0baP6xqA+jkftQq4+usgtdO8g+wrcdBX27ZvIBYBeJQa0dkrzD6whalF6MKhSL7TP9iPyh2cdjkq5GuG8nt+hVUU1L394QSFbzTVUQsW5iT0+CF/Qg4PeOMKPsQ7xH+2dBIcRVKwaREJLoH5p6KYrh8vTOmGHxlfSc+hL+jA== 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=2IGmt3ulqbP1Lv7Jr70ydr4+xN/c8cb5VksLxIkhSaM=; b=UJ1IuEckU36FEbsENNnt3yop8GGpvK7n4MU0qy2lmjGZIyWLLgg5jxqTTZNfAgDeOw1HsLQp/5DSyOrpv2n4Ovovs3snHGpnsnV/N9bLFkB/e0wQIPXrWFHLiv3g+ZGR9AdllFVpdhIj83Lr4U8ru4VM8EB6sXcQ24H8Q19/g+m8NaoWFz3iIOtCmbkxINUxZp34sqqql/UG1Yl2JoDgqXTBB7xHPhtYOLn8LSDKceNzxEMAYWPphFnMikLL7AjMk1pOx1OmVxsKiniRhkjKYlVwovjFG8eDWRPsYkR35TIT+mdovtwFPrD5S9LYg/NIRyaE8RVuoDMiPJoHblhA1g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none Received: from MN2PR12MB4286.namprd12.prod.outlook.com (2603:10b6:208:199::22) by MN2PR12MB4830.namprd12.prod.outlook.com (2603:10b6:208:1bc::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3455.21; Thu, 8 Oct 2020 09:44:28 +0000 Received: from MN2PR12MB4286.namprd12.prod.outlook.com ([fe80::61fd:a36e:cf4f:2d3f]) by MN2PR12MB4286.namprd12.prod.outlook.com ([fe80::61fd:a36e:cf4f:2d3f%9]) with mapi id 15.20.3455.023; Thu, 8 Oct 2020 09:44:28 +0000 From: Ori Kam To: Bing Zhao , NBU-Contact-Thomas Monjalon , "ferruh.yigit@intel.com" , "arybchenko@solarflare.com" , "mdr@ashroe.eu" , "nhorman@tuxdriver.com" , "bernard.iremonger@intel.com" , "beilei.xing@intel.com" , "wenzhuo.lu@intel.com" CC: "dev@dpdk.org" Thread-Topic: [PATCH v2 4/6] ethdev: add APIs for hairpin queue operation Thread-Index: AQHWnVBj4yScbpNUqk+2/qsnZiL6G6mNc7Qw Date: Thu, 8 Oct 2020 09:44:28 +0000 Message-ID: References: <1601511962-21532-1-git-send-email-bingz@nvidia.com> <1602147098-9768-1-git-send-email-bingz@nvidia.com> <1602147098-9768-5-git-send-email-bingz@nvidia.com> In-Reply-To: <1602147098-9768-5-git-send-email-bingz@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: nvidia.com; dkim=none (message not signed) header.d=none;nvidia.com; dmarc=none action=none header.from=nvidia.com; x-originating-ip: [147.236.152.129] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 581eedab-ac62-405e-5735-08d86b6ec00c x-ms-traffictypediagnostic: MN2PR12MB4830: x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5516; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: hL1ej+amWKRzqcr9G2Hpfg6yTPluhIM/KTNvIuy8pr5uGesMILEbizo/z3o+Qnq0h1cBj5NIVsjQIcP1yq2Fy/jNTZKopUuXhBNxLanGyXri/yx7N+APAIRUkAp479vk+YZq4xmk3c2XNNHTg979GGHz1eHcNLEORS85N5rRzudYyVCYXTpa5nUzN7JUkueOIEWfu6FGQN3O11ET0Gpl0J9h6z+py4snwlwdbooBCp0wkovMTUIbjI2I/SkE827X1q2uk/tTKhfhf7abL0gCvO+9l+2FJpuOpUZcVrgTiMnLT62C1shtoUO764GJIChj x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN2PR12MB4286.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(366004)(376002)(136003)(396003)(39860400002)(66446008)(316002)(33656002)(52536014)(5660300002)(110136005)(4326008)(86362001)(66476007)(66556008)(64756008)(83380400001)(9686003)(8676002)(2906002)(8936002)(55016002)(6506007)(53546011)(186003)(71200400001)(478600001)(7696005)(76116006)(66946007)(26005); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: Nm1Zv93t6Ul3Je2U/ZreS3YzTuu311PW/gq+UYkIMlBxjHE2hSpZyiEw/U/b7iGmY6D7dh3UwORrFZGhCk8YrJH5QaIqI5/GOAevPJzjy64ilikj+wDHd4AaHXatDu7+PXVmwVXdyEKy7NuHxuebhSxFHBPMgtum2kTvaTSgaMboE3nk18PkeGK0bpCK80/EfU/svXtcuaYxquqDBk9gXXo8Te/mCwDVeawVN//7d9v9P9QqY/WoXwoceqrCZ9ZeHFCm8L+zc9g4RMlXhuyFcXBeaxQHqaQ1l7ed4fPqG87wwxQBCdakfFi5PurQWtpPtoLTVEyG1ZcQ7wfrLDroUE+NX27e5a4qzIRDW3Xz6tCBQ/3bH5Lf9yuhIFb/RN88nsuNMHX7lm2Fgl6BSsQkbNdAOFUrfBUPFXH6z+VLqQV3vg5Hj2IWiCdfXMP93rmOf1fULQo6uyYiAiPC+yWwbAq4xeTOdrvpIkydjlstys9XwXJrP+963Qbzy7/QPi7erzdossUs838G9zsrBVrFDCjrDcpDxXfHuspnjKcSfpj758+XCcksVmSs5P6dtva38gIETgzEw7P5hdaHHAxT7s3IRDslR9N0E7YfZGixaHh9+PCyNRHdgNFlhPTBwqauDkJS/2haiTpw7Irew9GThA== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MN2PR12MB4286.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 581eedab-ac62-405e-5735-08d86b6ec00c X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Oct 2020 09:44:28.4408 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: NL5EumxIDAqkGE4mNJFwIb0wiwNw+svBHL90UYw5hkR7B+PXy8Gr9tQYUGGIskhArllrhZq9c8e1gqUOlRK65g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4830 X-OriginatorOrg: Nvidia.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1602150259; bh=2IGmt3ulqbP1Lv7Jr70ydr4+xN/c8cb5VksLxIkhSaM=; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:From:To: CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID:References: In-Reply-To:Accept-Language:Content-Language:X-MS-Has-Attach: X-MS-TNEF-Correlator:authentication-results:x-originating-ip: x-ms-publictraffictype:x-ms-office365-filtering-correlation-id: x-ms-traffictypediagnostic:x-ld-processed: x-ms-exchange-transport-forked:x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers:x-ms-exchange-senderadcheck: x-microsoft-antispam:x-microsoft-antispam-message-info: x-forefront-antispam-report:x-ms-exchange-antispam-messagedata: Content-Type:Content-Transfer-Encoding:MIME-Version: X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-AuthSource: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-originalarrivaltime: X-MS-Exchange-CrossTenant-fromentityheader: X-MS-Exchange-CrossTenant-id:X-MS-Exchange-CrossTenant-mailboxtype: X-MS-Exchange-CrossTenant-userprincipalname: X-MS-Exchange-Transport-CrossTenantHeadersStamped:X-OriginatorOrg; b=GLdqhZxhJBSvc5BdYFv5chxGBMMagMnM8JCwZS8aq+wtTQY5rCLqu2w+ez7Islybf eos97IUbDCE7atLrsn4gv61E2F3hpZcotDhMvpMa/A92W0DT72N1+NzHqpkeVOOu9s y5O3X6ppzCeniF4DA/q3fO4dCMWjJRqmznzxd8+w+eI2z543dz4Y1BzILk1rQ7KBrH IU93STYSw3k3BTQwT21bJpgEEpX2WwJ7dDuhYnX4cFIS53KgKXIyft8wOFrSKwXniV M+xWR/TXcnw2SYaYh1+5nYD1Gz4JXBEvfnGPy4RUyb/BbH6rrpTeulTua3QPnof1UH jL7rnWqZ10HjQ== Subject: Re: [dpdk-dev] [PATCH v2 4/6] ethdev: add APIs for hairpin queue operation 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 Bing, > -----Original Message----- > From: Bing Zhao > Sent: Thursday, October 8, 2020 11:52 AM > Subject: [PATCH v2 4/6] ethdev: add APIs for hairpin queue operation >=20 > Every hairpin queue pair should be configured properly and the > connection between TX and RX queues should be established, before > hairpin function works. In single port hairpin mode, the queues of > each pair belong to the same device. It is easy to get the hardware > and software information of each queue and configure the hairpin > connection with such information. In two ports hairpin mode, it is > not easy or inappropriate to access one queue's information from > another device. >=20 > Since hairpin is configured per queue pair, three new APIs are > introduced and they are internal for the PMD using. >=20 > The peer update API helps to pass one queue's information to the > peer queue and get the peer's information back for the next step. > The peer bind API configures the current queue with the peer's > information. For each hairpin queue pair, this API may need to be > called twice to configure the TX, RX queues separately. > The peer unbind API resets the current queue configuration and state > to disconnect it from the peer queue. Also, it may need to be called > twice to disconnect TX, RX queues from each other. >=20 > Some parameter of the above APIs might not be mandatory, and it > depends on the PMD implementation. >=20 > The structure of `rte_hairpin_peer_info` is only a declaration and > the actual members will be defined in each PMD when being used. >=20 > Signed-off-by: Bing Zhao > --- Acked-by: Ori Kam Thanks, Ori