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 66649A0353; Thu, 6 Aug 2020 19:03:34 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3EDA237B4; Thu, 6 Aug 2020 19:03:34 +0200 (CEST) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60063.outbound.protection.outlook.com [40.107.6.63]) by dpdk.org (Postfix) with ESMTP id AE9732B87 for ; Thu, 6 Aug 2020 19:03:32 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eIaMFAbIv9Mvp6/9Z2T7oUVIL0FitmdQsyyf6kIypFcCJKJmfgPKfn2sfk+ONv64GqCHLfefWBfg6Uu1UXksPeJd1GD21Ni+A1B8JM5PJEEDU94jnbfZ20kJPmPbB0gI3DPQAKcOHuDIaC37/jT4QmU//YOtzUYFZkMMRyZP0jgMPe9avShz+HIbEfISxmMuk8ip0e8FpIcqGc6Lf0pKl6orPbDiDs/JmAc3D37urqTSlfjCa5kp9zJF8MyfWHZD8GsZGOUjysEycUnUpGAvXKAwfJHikKSz1mIDVGyICeyybdH3OFjfSiW+7JKgj+Vv7t4xNn8Euw2hs0wkhJNydQ== 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=WT+GgrCT03kI7gCBbBan/eL1kC4QkHMYcBhM8e+422s=; b=U1sG5uUr+BgCoRjlqltr3U/L/Yrlqgz8kU3Msf+DOmuDNtjnItVkUMq/xm7foULcaUBCnh2k5/+FVdKGaoMb7nhMvwJGOBwnE1ATyzW1k8dT/YgYnRSJDEvCzCqqae6tho3I7+uoNT6rqIEq6T+e6iCu1ZI740L5wRPjxgsQjlp9xAgNs0Aqr9m4gj5V68zWDVliKSZZRnIyjGjvPCP3EfdLquY3LmJcU7xNmM03N7qrDcmKFMh446uRGW3Fv1t0iciBLsf66a6icTZNlyRY1wW+hEvE6jTHWRetE6trhGVCaoAmI2pquc/ABf1zOMy8iLhYHvAeaBVNYjbowlShUw== 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=WT+GgrCT03kI7gCBbBan/eL1kC4QkHMYcBhM8e+422s=; b=su4jobn7cRB94r6bjwjw2VTb7ir6j8+0N2slRzrehiK+3f5D6NUlBQtxZHUIzGSCpXhMQjDPJK2mXvnacS/wR2zg+NjSkbcdXDq8v6h8Ho2U+W/OhgJe/fIQ3GdQ35eH8L03mQFuWFzHm+qjmALEGM9AxL8qmf75ski9Ahcn2Ng= Received: from AM4PR05MB3265.eurprd05.prod.outlook.com (2603:10a6:205:8::26) by AM0PR05MB6740.eurprd05.prod.outlook.com (2603:10a6:20b:15e::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3261.19; Thu, 6 Aug 2020 17:03:31 +0000 Received: from AM4PR05MB3265.eurprd05.prod.outlook.com ([fe80::194e:dc46:7543:50ed]) by AM4PR05MB3265.eurprd05.prod.outlook.com ([fe80::194e:dc46:7543:50ed%2]) with mapi id 15.20.3239.022; Thu, 6 Aug 2020 17:03:31 +0000 From: Slava Ovsiienko To: Stephen Hemminger , Ferruh Yigit CC: Jerin Jacob , dpdk-dev , Matan Azrad , Raslan Darawsheh , Thomas Monjalon , Andrew Rybchenko , Ajit Khaparde , Maxime Coquelin , Olivier Matz , David Marchand Thread-Topic: [PATCH] doc: announce changes to ethdev rxconf structure Thread-Index: AQHWaY004L3In00ZQUyYfiksfQDfi6kmV4VAgAGc6ACAA01KAIAAB7eAgAAJ5/A= Date: Thu, 6 Aug 2020 17:03:31 +0000 Message-ID: References: <1596452291-25535-1-git-send-email-viacheslavo@mellanox.com> <20200806092559.614ae91f@hermes.lan> In-Reply-To: <20200806092559.614ae91f@hermes.lan> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: networkplumber.org; dkim=none (message not signed) header.d=none;networkplumber.org; dmarc=none action=none header.from=mellanox.com; x-originating-ip: [95.164.10.10] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: ef1195b1-2757-49a1-757b-08d83a2aa5b4 x-ms-traffictypediagnostic: AM0PR05MB6740: 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:9508; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ROzdhjsDImVwvJHB7x7nsQMxT4Y20xmCj2hb5yrfp5CrWoHKKmqc89v96WMt9+xLylSgrmr7f0tthDsLkr/wBUgsb8x6iutAe4ptkT8EozCUJtq8G2OEEBMLHE6P/OeFJPAWL9Y+/y1QruiIZ3RU4iNfz7yNbb+CjZeBqxlZcv0SMuehOVEvoAw7sPS/Xi0jqch0R5hXKg8DYacyVlz0Rd2TQv62XNT0wGREiPJbV3o3D5XbxoUGO0jH3On5rY1DQePe4u7QhUpGuWA1s3cSjp62Ylkdxz4MXNLWJYOqhK+dWn8JVrgytT3kACkeB1BAGen5e25vFSA+lx+kjzjsIA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM4PR05MB3265.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(396003)(366004)(346002)(376002)(39860400002)(136003)(110136005)(2906002)(54906003)(9686003)(316002)(6506007)(53546011)(26005)(55016002)(478600001)(66946007)(7696005)(186003)(86362001)(33656002)(66446008)(64756008)(66556008)(66476007)(71200400001)(76116006)(7416002)(4326008)(52536014)(8676002)(8936002)(83380400001)(5660300002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: 12mut4iFaylTeXYZn7b7SPSLZ49PG7UlcDGafb97DnvIND/AuIRZqeh7+9Z4QRGAE9M8EhcO9MQB+b04pZaRJsI6sHYJKqj+P6ZB5bJUkMYb3KBF+hbOc8kk27X1S5kYdqFkTXKxnYVjmqQUHoVaU3zC08BG5QIUqg1MJNnRy42jACB1Hk0aXfnQF+iEjtimuGbBTLgO+pzDhKdn+7fSa1nbUFIvhKPPEpMoo0M6gHDCEP5/HafEYu5VwOvBTwqd+/TC3lmU10y2GHHK8ILPaICkqMt9LOZLugOIns3Df9qcP4P8RIU/znpGsrBCPW2isTrXtVc+lB74yDjnifs0Zoz+LjpKF7AXLP5OsyzxM/j8RctZKJZcU7QXGKHSltyX00g6FnQVKl3RvmiBoHa9//JO7AMfOHZA+8ia3fDLNoFtMG9BTBgMJSsC18Mif0Nq5wq3OOVMNBgvujtM1+8wv4qPGKlqiIqMNincZbmgxr2pcR9zspPwQdJDlSWTFK4H7HVZtNrfLv/qM3sExtTDrHAql/PQfJ/BxH+wjkeXl0G9QzkX1JGgmhBQzEOYpDDmtIiCb3M4xtt3CzBTfPhiLOzCyMB1/D3mBzyBLvmWGln6hvukXptFELWXvO3TNja92ymID1rJZW2i4ZeyOITwUw== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AM4PR05MB3265.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: ef1195b1-2757-49a1-757b-08d83a2aa5b4 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Aug 2020 17:03:31.4930 (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: +Gro3f1evhwciBhFjCvKgrRanq5TVCGofFYEKk8B7chhW8paf/EeZhCVD3+AfHXBscOl/lrUzYbB5EHuWJaZm7d1dVftkq9jvp4jfdLMc8E= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR05MB6740 Subject: Re: [dpdk-dev] [PATCH] doc: announce changes to ethdev rxconf structure 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: Stephen Hemminger > Sent: Thursday, August 6, 2020 19:26 > To: Ferruh Yigit > Cc: Jerin Jacob ; Slava Ovsiienko > ; dpdk-dev ; Matan Azrad > ; Raslan Darawsheh ; > Thomas Monjalon ; Andrew Rybchenko > ; Ajit Khaparde > ; Maxime Coquelin > ; Olivier Matz ; > David Marchand > Subject: Re: [PATCH] doc: announce changes to ethdev rxconf structure >=20 > On Thu, 6 Aug 2020 16:58:22 +0100 > Ferruh Yigit wrote: >=20 > > On 8/4/2020 2:32 PM, Jerin Jacob wrote: > > > On Mon, Aug 3, 2020 at 6:36 PM Slava Ovsiienko > wrote: > > >> > > >> Hi, Jerin, > > >> > > >> Thanks for the comment, please, see below. > > >> > > >>> -----Original Message----- > > >>> From: Jerin Jacob > > >>> Sent: Monday, August 3, 2020 14:57 > > >>> To: Slava Ovsiienko > > >>> Cc: dpdk-dev ; Matan Azrad ; > > >>> Raslan Darawsheh ; Thomas Monjalon > > >>> ; Ferruh Yigit ; > > >>> Stephen Hemminger ; Andrew > Rybchenko > > >>> ; Ajit Khaparde > > >>> ; Maxime Coquelin > > >>> ; Olivier Matz > > >>> ; David Marchand > > >>> > > >>> Subject: Re: [PATCH] doc: announce changes to ethdev rxconf > > >>> structure > > >>> > > >>> On Mon, Aug 3, 2020 at 4:28 PM Viacheslav Ovsiienko > > >>> wrote: > > >>>> > > >>>> The DPDK datapath in the transmit direction is very flexible. > > >>>> The applications can build multisegment packets and manages > > >>>> almost all data aspects - the memory pools where segments are > > >>>> allocated from, the segment lengths, the memory attributes like > external, registered, etc. > > >>>> > > >>>> In the receiving direction, the datapath is much less flexible, > > >>>> the applications can only specify the memory pool to configure > > >>>> the receiving queue and nothing more. In order to extend the > > >>>> receiving datapath capabilities it is proposed to add the new > > >>>> fields into rte_eth_rxconf structure: > > >>>> > > >>>> struct rte_eth_rxconf { > > >>>> ... > > >>>> uint16_t rx_split_num; /* number of segments to split */ > > >>>> uint16_t *rx_split_len; /* array of segment lengthes */ > > >>>> struct rte_mempool **mp; /* array of segment memory pools */ > > >>> > > >>> The pool has the packet length it's been configured for. > > >>> So I think, rx_split_len can be removed. > > >> > > >> Yes, it is one of the supposed options - if pointer to array of > > >> segment lengths is NULL , the queue_setup() could use the lengths fr= om > the pool's properties. > > >> But we are talking about packet split, in general, it should not > > >> depend on pool properties. What if application provides the single > > >> pool and just wants to have the tunnel header in the first dedicated > mbuf? > > >> > > >>> > > >>> This feature also available in Marvell HW. So it not specific to on= e > vendor. > > >>> Maybe we could just the use case mention the use case in the > > >>> depreciation notice and the tentative change in rte_eth_rxconf and > > >>> exact details can be worked out at the time of implementation. > > >>> > > >> So, if I understand correctly, the struct changes in the commit > > >> message should be marked as just possible implementation? > > > > > > Yes. > > > > > > We may need to have a detailed discussion on the correct abstraction > > > for various HW is available with this feature. > > > > > > On Marvell HW, We can configure TWO pools for given eth Rx queue. > > > One pool can be configured as a small packet pool and other one as > > > large packet pool. > > > And there is a threshold value to decide the pool between small and > large. > > > For example: > > > - The small pool is configured 2k > > > - The large pool is configured with 10k > > > - And if the threshold value is configured as 2k. > > > Any packet size <=3D2K will land in small pool and others in a large = pool. > > > The use case, we are targeting is to save the memory space for jumbo > frames. > > > > Out of curiosity, do you provide two different buffer address in the > > descriptor and HW automatically uses one based on the size, or driver > > uses one of the pools based on the configuration and possible largest > > packet size? >=20 > I am all for allowing more configuration of buffer pool. > But don't want that to be exposed as a hardware specific requirement in t= he > API for applications. The worst case would be if your API changes require= d: >=20 > if (strcmp(dev->driver_name, "marvell") =3D=3D 0) { > // make another mempool for this driver >=20 I thought about adding some other segment attributes, vendor specific. We could describe the segments with some descriptor structure (size, pool) and add flags field to one. The proposals from other vendors are welcome.