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 6E0E7A0471 for ; Fri, 16 Aug 2019 08:01:27 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2A01A1BEAD; Fri, 16 Aug 2019 08:01:26 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id CD81C2B9C for ; Fri, 16 Aug 2019 08:01:24 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x7G60Zo4022604; Thu, 15 Aug 2019 23:01:23 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pfpt0818; bh=OVRaIMMr9JDWKRq2M1ZwGD4uVm6PIXOrqfuz82Kq9Yw=; b=Wzlhv5fUAWM3XtCBYIUiX7vUJge71zFQUZFv5TVPfD6x05JGM76+K3K5XFCxvl8LrPjv iZ1i01k9Q4no7wW53dlSPeREcQrpXHU8F87jZ0qQpm7mZoTPhlzphHhOVbFtM8RQgUzT kMAeFu6MB2R759BBfsK3EfhMDXXSOKgBOkKfUm0+WKeNLa6vYucwpzQpmnhpu6aBte1A QtDUijYk3FK5tv6MRJsZioXG4f9hHRw5rY71tJNCA6RtsFMxXSvyN5/aWbqfqH3wXIDX wQ35gyWI0+iVB2UBOYc9ChFzWH/cWrMoUfNy0AjZkjnQ6O5idOVy2LfhXtd2DhI3vFBJ 2w== Received: from sc-exch04.marvell.com ([199.233.58.184]) by mx0a-0016f401.pphosted.com with ESMTP id 2ubfad7wys-4 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 15 Aug 2019 23:01:23 -0700 Received: from SC-EXCH04.marvell.com (10.93.176.84) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Thu, 15 Aug 2019 23:01:23 -0700 Received: from NAM03-CO1-obe.outbound.protection.outlook.com (104.47.40.55) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Thu, 15 Aug 2019 23:01:23 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CCOin3vac69YZyBIdaqITsrBvNlYxhPqx56EgK74oI4ylmkNFKrxj71QZhLGgyJU2Me1sWOdL/Er0FRXvTWNLrirCxPgPI67T6WKl2NfAhBr+tIKY0viZc4PyPA6dCTMqZxUAsPaCX0VsGRaZH4pS2Kg5PG8o+5TcyobBfrG0PYv/znbj5cHT86V8Q5LId89bSfvYDfCuhpKt5pvTRX3xErOSX+TQZ6eHjuPhaeOgmU0Jn7lAULzBTe0MQVqzABUCmTjKnTW8pWTid3npPq3/bEFsUU2KGYZqGZ53fDUqldz+hBxT01zTjTQT34+Dokj/ZufppVW9N8iidTTHKAVVw== 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=OVRaIMMr9JDWKRq2M1ZwGD4uVm6PIXOrqfuz82Kq9Yw=; b=bzI0pl1aktPh8nrHzDBwAdxWefzlYoxKpfr2AzJS01CgsCpG0f+hQiVFHajxKXNdOgkXWtQdlN1MYOaZcVCe/uuYs2LFpN1P7Nmdow6A52yIgXScd4MkpQBhRosy63y7Hzw/2PXCUFbg7Atd/JKhk01++lNsMq4MzH5u4QFUVlvkPKRZhN715JVCzPpbvHXs9o0jxJBiKPusE8Da8t1/CSnOZFdXqKvB8/+ZISvQcYwJcGgVhFwXFEy8+udavOZJSAA3qMakUsMjg3iLXut00MYLUe1pwiLkHtQ4a+7OelSRLIo6KEdJzck4YLmo/YOaN3u/jj8pytV9TYFTm3dGIA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector2-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=OVRaIMMr9JDWKRq2M1ZwGD4uVm6PIXOrqfuz82Kq9Yw=; b=lBxKahfWxyOJpuq9Ye2qqD/nH4zwB4DVGi9/WZcvuyHYbjAJdDEZU+3SRtNEYk8MkNUMINC38o3TeH782AyYRSjt/SI5j9hibLyMnPhUs6dIp16ZTtRgsMmP1m2S7rFkfpXPaGA2tA4s30jDfRXoWHxqru8iIHB6uuWCD5YgRxs= Received: from BYAPR18MB2424.namprd18.prod.outlook.com (20.179.91.149) by BYAPR18MB3013.namprd18.prod.outlook.com (20.179.94.159) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2178.16; Fri, 16 Aug 2019 06:01:18 +0000 Received: from BYAPR18MB2424.namprd18.prod.outlook.com ([fe80::5877:72b7:40cf:2013]) by BYAPR18MB2424.namprd18.prod.outlook.com ([fe80::5877:72b7:40cf:2013%3]) with mapi id 15.20.2157.022; Fri, 16 Aug 2019 06:01:18 +0000 From: Jerin Jacob Kollanukkaran To: Pavan Nikhilesh Bhagavatula , "ferruh.yigit@intel.com" , Harry van Haaren CC: "dev@dpdk.org" , Pavan Nikhilesh Bhagavatula Thread-Topic: [dpdk-dev] [PATCH 7/7] examples/eventdev_pipeline: add new Rx RSS hash offload Thread-Index: AQHVU/dIRuoH2t4xgUOK7EkU/gCTqKb9R/Tw Date: Fri, 16 Aug 2019 06:01:18 +0000 Message-ID: References: <20190816055511.2322-1-pbhagavatula@marvell.com> <20190816055511.2322-8-pbhagavatula@marvell.com> In-Reply-To: <20190816055511.2322-8-pbhagavatula@marvell.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [14.140.231.66] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 58c882f3-5b5a-4ed7-2995-08d7220f27cb x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:BYAPR18MB3013; x-ms-traffictypediagnostic: BYAPR18MB3013: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2399; x-forefront-prvs: 0131D22242 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(136003)(396003)(366004)(376002)(39860400002)(346002)(13464003)(199004)(189003)(66066001)(305945005)(52536014)(7736002)(6116002)(3846002)(5660300002)(2906002)(25786009)(6246003)(107886003)(53936002)(229853002)(76116006)(74316002)(86362001)(4326008)(11346002)(446003)(476003)(99286004)(8936002)(6436002)(81156014)(66946007)(9686003)(81166006)(256004)(66476007)(14454004)(55016002)(66446008)(66556008)(8676002)(64756008)(102836004)(6506007)(55236004)(53546011)(26005)(186003)(478600001)(33656002)(71190400001)(486006)(316002)(110136005)(54906003)(71200400001)(76176011)(2501003)(7696005); DIR:OUT; SFP:1101; SCL:1; SRVR:BYAPR18MB3013; H:BYAPR18MB2424.namprd18.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: marvell.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: 0Ct74pOi9Mnl/5wx3GEoeF2qNytQ0NrA9b1ZxMAQjqj/8+4nLUCHcIpFiv5/LFlvNZMicbs35HBnzZCXdj82HR7d2vjU3cvY1CSXW0XHPELnfdkkWGzjKcbPuztiMP4Ort7iXpYVRjVC8myCiUCvAbCecKJMYCgjs5oHAp84XT08VT5u6PW07bUsQqHM4rmPmU9wgm2QQQjwPgdZait1UqMAo4zSB7tsjy82uLhSSm5NJkwlnL0VMCD525i57VDAuQPaO5vPD6HnqHrOtk58/aAfxZxvPlPJUmf2Bf/J7zRBi8FlK/dsO8P93jcD/upml+9ISlwLFe9zC+12dsljM9SmDHOc8mXwQBbXgqTWNkqZQ44bshnbpB4kRh4SQdjgDipfjU1hUrMqXyny/67KZV9TKev9uBTEKfRSFw3wsW0= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 58c882f3-5b5a-4ed7-2995-08d7220f27cb X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Aug 2019 06:01:18.2285 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: FwNom9/dTFxTo4klgUI1unzifUMg0eDHbWoGTXPKENUkO4cXmB8DNzRdp/nDnTOng1GkCix0oOY0wGKiBL+0Ug== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR18MB3013 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:5.22.84,1.0.8 definitions=2019-08-16_03:2019-08-14,2019-08-16 signatures=0 Subject: Re: [dpdk-dev] [PATCH 7/7] examples/eventdev_pipeline: add new Rx RSS hash offload 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: pbhagavatula@marvell.com > Sent: Friday, August 16, 2019 11:25 AM > To: Jerin Jacob Kollanukkaran ; ferruh.yigit@intel.co= m; > Harry van Haaren > Cc: dev@dpdk.org; Pavan Nikhilesh Bhagavatula > > Subject: [dpdk-dev] [PATCH 7/7] examples/eventdev_pipeline: add new Rx > RSS hash offload >=20 > From: Pavan Nikhilesh >=20 > Since pipeline_generic uses `rte_mbuf::hash::rss` add the new Rx offload = flag > `DEV_RX_OFFLOAD_RSS_HASH` to inform PMD to copy the RSS hash result > into the mbuf. >=20 > Signed-off-by: Pavan Nikhilesh > --- > examples/eventdev_pipeline/main.c | 4 ++++ > 1 file changed, 4 insertions(+) >=20 > diff --git a/examples/eventdev_pipeline/main.c > b/examples/eventdev_pipeline/main.c > index f4e57f541..f08253cc3 100644 > --- a/examples/eventdev_pipeline/main.c > +++ b/examples/eventdev_pipeline/main.c > @@ -278,6 +278,10 @@ port_init(uint8_t port, struct rte_mempool > *mbuf_pool) > if (dev_info.tx_offload_capa & > DEV_TX_OFFLOAD_MBUF_FAST_FREE) > port_conf.txmode.offloads |=3D > DEV_TX_OFFLOAD_MBUF_FAST_FREE; > + > + if (dev_info.rx_offload_capa & DEV_RX_OFFLOAD_RSS_HASH) > + port_conf.rxmode.offloads |=3D > DEV_RX_OFFLOAD_RSS_HASH; We need this only when Rx adapter in SW mode. > + > rx_conf =3D dev_info.default_rxconf; > rx_conf.offloads =3D port_conf.rxmode.offloads; >=20 > -- > 2.22.0