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 590CEA04BC; Thu, 8 Oct 2020 11:46:10 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 399731BBEE; Thu, 8 Oct 2020 11:46:09 +0200 (CEST) Received: from nat-hk.nvidia.com (nat-hk.nvidia.com [203.18.50.4]) by dpdk.org (Postfix) with ESMTP id DA3101BB71 for ; Thu, 8 Oct 2020 11:46:06 +0200 (CEST) Received: from HKMAIL102.nvidia.com (Not Verified[10.18.92.77]) by nat-hk.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Thu, 08 Oct 2020 17:46:04 +0800 Received: from HKMAIL101.nvidia.com (10.18.16.10) by HKMAIL102.nvidia.com (10.18.16.11) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 8 Oct 2020 09:46:01 +0000 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (104.47.36.54) by HKMAIL101.nvidia.com (10.18.16.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Thu, 8 Oct 2020 09:46:00 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IHFnsaURhA2LAdhdu+3BXLv+wk/n3D4iTBkOfyDNY2ZSPNNpeXkq392wsmE1zJFZECqB3n1s8TFPv/LiXvdbIlD5P+/JhfIglgzpsb7XGE4sdhMrJZQGtjociQH6uaM8XZ9b2UDVpYM8zem3An6Qo1hRVQciTSgaYWjtWhtfl6MpEI0xYlcaOemMKsNmLtXS4C3a8UjJJEJViJj4wm8GUHeBACckLECbv+NkXr7T4A4/O8D8PTTUAVDEdGDNIZGLWn3jtg9pJBUbRXpB9Va6qMBP2McIRTYidZYwgt+S2C5nmraM2YBoWHYMrnO9MfdOZhIAybk6I1+vvJiZiOgsqw== 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=Yem0bhGQQqG66Ny4+MkHHJDh2jbGOI0q/p1Mndg2XUo=; b=TUvtP3EsdInaFkR4lkbSbseRH3KPZjaufUlhCcX+XZim4785JMdc9pK+LZW3Yp0xVn0gMYEOlztBc7ZpVk7FhMc5uarB/cEyVhxUmmk5nnTXoS4tIQ27eK1NURW4TM6gNiqXlxFxxigv6i0ijPT7OszoEsLAEli7abetqdQMeW+WldLAYFKOHQF4fPo3M1xffUZ6o9SLoqVp1B3IW9Q+luBwOTKXnreLjaIhAB18TZ/iy9uuXN0GH1WTVKCOp+FoqpdlkHg5QWgDjLMj1fwpb7tD1LvrmMW+u2dfDvuooJjV/G92vYMt9azIkBu9W5bfRy/8Gz6c6YW0SJMsOwFExQ== 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:45:57 +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:45:57 +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 5/6] app/testpmd: change hairpin queues setup Thread-Index: AQHWnVBUMtglNlGoeEa8XBYxOspNYqmNdLtA Date: Thu, 8 Oct 2020 09:45:57 +0000 Message-ID: References: <1601511962-21532-1-git-send-email-bingz@nvidia.com> <1602147098-9768-1-git-send-email-bingz@nvidia.com> <1602147098-9768-6-git-send-email-bingz@nvidia.com> In-Reply-To: <1602147098-9768-6-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: d5e9583e-a640-4c86-f0e1-08d86b6ef539 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:4502; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Ku7B6swv1J9NLg7QXJwXeWV4uE/IMqTI+K7m4XwCKvAy6VeUF0tm3Vqzzlz6A9J9KIzF68taCI/YdAco3tz4s44O4TIAxap+PjtUQWinAerDSnC7rQDOODdPCiiL8JpFhxo0hIm5hHu5r9CzFJGRryfZLRwjX4fPh3wGqGrUK0opG43I4CBYpx6aTA4ra5zA+9t2j6MutYutDx4sppH2ja6+IAKt50eqxprB+o6xnLErpCjo+bwAGJk49/0pzh0yoKQwgw74bMK4Ht/+c4uCnWOH6LWQrXC4Ad+2LrraC1TLOZi0526WD7xZMEOeTFdWNY33njLO61BPCo70ofHp/w== 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: ROdF7Lb0hJ8nj4WRmC6PpzcdlvTgXxxI5Hnr7pBs0zmWjXElSxb4LSHwSHetRHRvENS5/fcj9FEMEXOcB+RCg0Yy6BXO7tEg2ScQAzCfoVnAleob+7C0+TJ6hzv8FJk8XFyJNK0RVcFt/KRB1GB74Hlqe7W9AFXO9BwzVJItHxZiNgUjuZNlY1HyM295BIyqq23yZSOLzcQjf8qGuAdF+cwCh3/tA9ARQ/hXgK/CRTruUcycvSB6UNDVvTaqu8ztRrlJWmVajBnlYzEIYg2pBpEVVXlOtaFfS/rA8cC1Bv2q1tJTawF8sZC6rajLNZuS3YoGAWdjXxv2H6oBacaBhYfVLMDmzC0BvjpiooqANdILKuTPw1dYssTzopcraibG9yzyssbXw7uWRCHDdE80v65JJcXdsuToyXJcAoSR/bVl6ZU3TRiwnKAZVaIsIRaDXRkDqTBpsyeOU1gmaVjg/A4jsjRTl+E0f30sxP0rdC0FLQL/cEPrXENyE4XLnBGYeWOOU6iTnMSlTDw3GNvTiWRMnnadwlg683TqUE7nJxKUQUFNqEe4IJgxBEQs3L0hAzM81d6OwLkVqxj8s+drhlsjkr+X4TplJ6roNsxUKlzEU0ydKaxKC91SgrQsXbTVuF1zHb+5pmBVF/+386R0Pg== 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: d5e9583e-a640-4c86-f0e1-08d86b6ef539 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Oct 2020 09:45:57.5843 (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: LFcmxBmKdr305hkQCVnLbqmD+BLljuj6VwopAbDiqP/02/ycNSVsWar9RLnGoaGEiJjTTHQuMoCMUnXQmdoc4g== 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=1602150364; bh=Yem0bhGQQqG66Ny4+MkHHJDh2jbGOI0q/p1Mndg2XUo=; 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=ipeJHXcRTXCFkK52ej9zRVIX03luP7rA9GzJxhEvSAQMFBh7coOA7z29PWVryC1H7 SNeEJahrW0MdlW9ehaDzvy5EbEv1GZk4z0KFOK7Df/ccis1lA9G1q+qsSNAqVK+hxM t3nFABO5jG4HdfphsWCgkexmH2Oh+1uhmS0i7I8xeDUwzLL3V8oSMsAIMj4+iKyalK KaJ1k+ojA+utbtGV0KOOl8TJPHL4NTyrGwAq+aSE+2wD+j1XxHJXi7U+TLHOZtZWlg OoCq2kaDLJUL1qaunGU/yyt1uC7UrTwqbTqrz6KH2d9wOw3tpey84Nd4sjuxrqClR/ vTJ5G/0njB2aA== Subject: Re: [dpdk-dev] [PATCH v2 5/6] app/testpmd: change hairpin queues setup 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 5/6] app/testpmd: change hairpin queues setup >=20 > A new parameter `hairpin-mode` is introduced to the testpmd command > line. Bitmask value is used to provide more flexible configuration. > This parameter should be used when `hairpinq` is specified in the > command line. >=20 > Bit 0 in the LSB indicates the hairpin will use the loop mode. The > previous port RX queue will be connected to the current port TX > queue. > Bit 1 in the LSB indicates the hairpin will use pair port mode. The > even index port will be paired with the next odd index port. If the > total number of probed port is odd, then the last one will be paired > to itself. > If this byte is zero, then each port will be paired to itself. > Bit 0 takes a higher priority in the checking. >=20 > Bit 4 in the second bytes indicate if the hairpin will use explicit > TX flow mode. >=20 > e.g. in the command line, "--hairpinq=3D2 --hairpin-mode=3D0x11" >=20 > If not set, default value zero will be used and the behavior will > try to get align with the previous single port mode. If the ports > belong to different vendors' NICs, it is suggested to use the `self` > hairpin mode only. >=20 > Since hairpin configures the hardware resources, the port mask of > packets forwarding engine will not be used here. >=20 > Signed-off-by: Bing Zhao > --- > v2: move the hairpin bind/unbind into start/stop to support hot-plug > and hot-unplug > --- Acked-by: Ori Kam Thanks, Ori