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 E80F5A0561; Tue, 21 Apr 2020 08:38:06 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BF7BD1D5E1; Tue, 21 Apr 2020 08:38:06 +0200 (CEST) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60052.outbound.protection.outlook.com [40.107.6.52]) by dpdk.org (Postfix) with ESMTP id B9C071D5DB for ; Tue, 21 Apr 2020 08:38:04 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=T+EVUAEIkHhTJI8o0HNWpVAz6SECgUqzvNBDNEu/Z9d1OOwfF2jNRsRlIUahZmgB7i9pm5maRYom9PnOXbdZ4ArdN5bjWDVqvnqGCH2iOs5RyMW1egWPHzrrIFcns19uVPYjPXwYQjL6ibKODuZHBLZJ8BitykoQJHx+W8tCuYC2RkK97jUSgszKP8dpvaisIw57QR0j0mjzo3ZYICFxp9ai/5eGnTYK+NQhLuH4nAynIRISQvSlIg2t0+/CqTjYffxqqZgu3xnofp1Yzc5LmKW0ULqATNr7lCtG9Z3sOBgRKfUm2+aBMAKKpkPH3qlz1HTKZwpwmjlon5XJE5B6ww== 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=/bzL5xm2cQGpd+DihF6QAm9QWRIX6mW6rG0fFltWwT0=; b=gS+vRCyWQciuMipJu368X4vqsrdZXOIg9xGJk5NpJsHIBChDA+Ai/YJ5DlgSWAcpOXzF/obyH+ASrnFWILc0mcdaxeFuqwx92AOW1I7Lb748kNV01S2wMMjuLfoPYjpFDGVbcZJmZ7evFqZ5np3Hp7qMk9xTO+tWAi1syRVfhHXcvvwbWIvG/wPwhyK27j/KmCQx3HqshgbbLcy0b8gGKHpN7V/ZreSaQmyd9dDRh2cH5w0AFS9IqYxJnKos7EOc2CFXcdLrbrsP4E912MVeWxB2JX7tACmeyuCGx5zfXJaLMoRxIs0BLEdi2QQ+N+SCRfT8zi2XaJEfnNZw8j4ZGw== 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=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/bzL5xm2cQGpd+DihF6QAm9QWRIX6mW6rG0fFltWwT0=; b=S9Cldb7lVmW70nku2mSU/jKHRu4RSl69MdSV3oI/TU4CxYXiV8omgxLkJLmvXRzEoWh55R+xlTWWaL2Mivsu3Dmf+Kx2gA4s6tzblKktwVIpRfYpixvRLkxx465Uu1+x1jKzHydKRTAIhGLIUV5oV/Orzhxlo379cf1xeibEwQo= Received: from AM6PR05MB5176.eurprd05.prod.outlook.com (2603:10a6:20b:63::30) by AM6PR05MB6408.eurprd05.prod.outlook.com (2603:10a6:20b:b8::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2921.26; Tue, 21 Apr 2020 06:38:03 +0000 Received: from AM6PR05MB5176.eurprd05.prod.outlook.com ([fe80::f5cd:b10f:5f1b:4b22]) by AM6PR05MB5176.eurprd05.prod.outlook.com ([fe80::f5cd:b10f:5f1b:4b22%7]) with mapi id 15.20.2921.030; Tue, 21 Apr 2020 06:38:03 +0000 From: Ori Kam To: Bing Zhao , "john.mcnamara@intel.com" , "marko.kovacevic@intel.com" , Slava Ovsiienko , Matan Azrad CC: Shahaf Shuler , Raslan Darawsheh , "dev@dpdk.org" , Thomas Monjalon Thread-Topic: [PATCH v2] doc: update hairpin data buffer size config Thread-Index: AQHWF55LJ/Ho1383lU2ehx4kyaKAgqiDH2zA Date: Tue, 21 Apr 2020 06:38:03 +0000 Message-ID: References: <1586447457-284912-1-git-send-email-bingz@mellanox.com> <1587447151-122283-1-git-send-email-bingz@mellanox.com> In-Reply-To: <1587447151-122283-1-git-send-email-bingz@mellanox.com> 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: [89.208.130.33] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 43db1393-4bb0-4d13-29fa-08d7e5be8b22 x-ms-traffictypediagnostic: AM6PR05MB6408:|AM6PR05MB6408: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr,ExtFwd x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-forefront-prvs: 038002787A x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM6PR05MB5176.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(10009020)(4636009)(136003)(376002)(396003)(39860400002)(346002)(366004)(55016002)(71200400001)(4326008)(2906002)(5660300002)(66556008)(76116006)(66946007)(7696005)(8936002)(64756008)(66446008)(66476007)(86362001)(33656002)(186003)(6506007)(6636002)(26005)(316002)(9686003)(52536014)(53546011)(478600001)(54906003)(110136005)(15650500001)(81156014)(8676002); DIR:OUT; SFP:1101; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ZrLbanqG6pxOvKPeJUe8O6u2FaiehpP6rUECOBloSGSFi+SOcZ1kciw+70OiOBubAiDYFjP8dnYD+FNpCcA8Zku6Uu3pH3Hn9+kRhi5dwA8IGe8erzGXkvR+VlbMLEFJ+ByHPbS9XynhxXr6KBVxLv7Hr5jVsJfX/lIB6s08DidF5PJ+sMcZH95yxlL3D+VBZ7PEt0BQjCfU4CwItZVucsEro0XgqcYyAyZ2Z57eGtAdqg9b1v7PNLzorXJnPyzK83JcBVdIuXfDgs3o0BWmsoeMHb5WbjV+kZiYJ/IZSyPlW+4lXy2EEJ8Lgb/qg1LHA9GXxuQEPjS+YdI//jKw/fULxEXIogx+2LT4fA6YPGY4P0/mbFG5vcFYmvh8Wr85/k+n8MSTV/ylCn8G/86flfHLx7sBNstcIXEcwA81Z7s+FyQ3f8oAnGx2E694hvqL x-ms-exchange-antispam-messagedata: QRzHwX07e8bWgP0RnGQxJL6skEScXdvMHbjN6MNEXi7gvD0WrHxXjiSe5On8oFToe+HdlvDejjYL9+mx52oc0ke5kRBLKLVSl8aUrjIoYVmoUl15cK9phnZinWCBP9Bwc0MFHnY3Z51WyNbQPGAoMg== 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: 43db1393-4bb0-4d13-29fa-08d7e5be8b22 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Apr 2020 06:38:03.6173 (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: nzh/1Nhobrcnhi4V0wWY8oq2wIjw5LdqfTwJx+9JwaDjp6yLafTPHxi6+gFOckxzHJgNU3HvrL7xQ9J03fF8yw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR05MB6408 Subject: Re: [dpdk-dev] [PATCH v2] doc: update hairpin data buffer size config 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" > -----Original Message----- > From: Bing Zhao > Sent: Tuesday, April 21, 2020 8:33 AM > To: john.mcnamara@intel.com; marko.kovacevic@intel.com; Slava Ovsiienko > ; Matan Azrad ; Ori Kam > > Cc: Shahaf Shuler ; Raslan Darawsheh > ; dev@dpdk.org; Thomas Monjalon > > Subject: [PATCH v2] doc: update hairpin data buffer size config >=20 > This patch updates the MLX5 PMD and release notes documentations. > Adding the guideline for hairpin data buffer size configuration. >=20 > Signed-off-by: Bing Zhao > --- > v2: update the range description of hairpin data buffer size > --- Acked-by: Ori Kam Thanks, Ori > doc/guides/nics/mlx5.rst | 16 ++++++++++++++++ > doc/guides/rel_notes/release_20_05.rst | 1 + > 2 files changed, 17 insertions(+) >=20 > diff --git a/doc/guides/nics/mlx5.rst b/doc/guides/nics/mlx5.rst > index 759d0ac..74ab28b 100644 > --- a/doc/guides/nics/mlx5.rst > +++ b/doc/guides/nics/mlx5.rst > @@ -99,6 +99,7 @@ Features > - Support for multiple rte_flow groups. > - Per packet no-inline hint flag to disable packet data copying into Tx > descriptors. > - Hardware LRO. > +- Hairpin. >=20 > Limitations > ----------- > @@ -786,6 +787,21 @@ Run-time configuration > If this parameter is not specified, by default PMD will set > the smallest value supported by HW. >=20 > +- ``hp_buf_log_sz`` parameter [int] > + > + The total data buffer size of a hairpin queue (logarithmic form), in b= ytes. > + PMD will set the data buffer size to 2 ** ``hp_buf_log_sz``, both for = RX & TX. > + The capacity of the value is sepcified by the Firmware, and the initia= lization > + will get a failure if it is out of scope. > + The range of the value is from 10 to 19 right now, and the supported f= rame > + size of a single packet for hairpin is from 256B to 128KB. It might ch= ange if > + different Firmware release is being used. By using a small value, it c= ould > + reduce the memory consumption but not work with large frame. If the va= lue > is > + too large, the memory consumption will be high and some potential > performance > + degradation will be introduced. > + By default PMD will set this value to 16, which mean that 9KB jumbo fr= ames > + will be supported. > + > .. _mlx5_firmware_config: >=20 > Firmware configuration > diff --git a/doc/guides/rel_notes/release_20_05.rst > b/doc/guides/rel_notes/release_20_05.rst > index bacd4c6..3cb3342 100644 > --- a/doc/guides/rel_notes/release_20_05.rst > +++ b/doc/guides/rel_notes/release_20_05.rst > @@ -62,6 +62,7 @@ New Features >=20 > * Added support for matching on IPv4 Time To Live and IPv6 Hop Limit. > * Added support for creating Relaxed Ordering Memory Regions. > + * Added support for configuring Haripin queue data buffer size. > * Added support for jumbo frame size (9K MTU) in Multi-Packet RQ mode. > * Optimized the memory consumption of flow. >=20 > -- > 1.8.3.1