From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from dpdk.org (dpdk.org [92.243.14.124])
	by inbox.dpdk.org (Postfix) with ESMTP id 32B0BA052A;
	Wed, 23 Dec 2020 10:32:28 +0100 (CET)
Received: from [92.243.14.124] (localhost [127.0.0.1])
	by dpdk.org (Postfix) with ESMTP id 15C56CAB5;
	Wed, 23 Dec 2020 10:32:27 +0100 (CET)
Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com
 [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id D43F5CAB5
 for <dev@dpdk.org>; Wed, 23 Dec 2020 10:32:24 +0100 (CET)
Received: from pps.filterd (m0045851.ppops.net [127.0.0.1])
 by mx0b-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id
 0BN9UiMc002408 for <dev@dpdk.org>; Wed, 23 Dec 2020 01:32:23 -0800
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=pfpt0220;
 bh=hzHIDabyQyOA4CrzCLNb3z2iQmYuA2kQe/t6+IAnPCk=;
 b=R7fH6n6gclTgTzAHWnH11Mby0mJREKiOjNuAbIKRlzhhFF4u5tY8/dNZCCnDTiYRCF/d
 6btaULFbFM1ehXiSMTl+jWi3Mztkr5FNUOAvNPePBSMmqT9V9i0M+qzzJZfTx0212W6f
 xfMgFsK3vNsRfG0km6Lex7ulYDKxgF44rNJSjc97luCg4NOHJOnpLQy6ooDuxmDipO7Z
 PceZYaeXLeCuwrZYW63RepVAN6v81vxSn+pHWMPZpl+UCcUvx8OOcrhfvE4FZAkkClBx
 2KkvrvGoyRIzSU83rnRNEDaSKCD5qcwY+vtm0sQ545IjYGFXNH0wAtwJUSu7OQbfmqaA pA== 
Received: from sc-exch02.marvell.com ([199.233.58.182])
 by mx0b-0016f401.pphosted.com with ESMTP id 35k0hx5mk4-1
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)
 for <dev@dpdk.org>; Wed, 23 Dec 2020 01:32:23 -0800
Received: from DC5-EXCH02.marvell.com (10.69.176.39) by SC-EXCH02.marvell.com
 (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1497.2;
 Wed, 23 Dec 2020 01:32:21 -0800
Received: from SC-EXCH02.marvell.com (10.93.176.82) by DC5-EXCH02.marvell.com
 (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.2;
 Wed, 23 Dec 2020 01:32:21 -0800
Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.175)
 by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id
 15.0.1497.2 via Frontend Transport; Wed, 23 Dec 2020 01:32:20 -0800
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
 b=LMs0J9UY7haKy6nT+z7drrxFzpOnCPd/1xmfuu498wT/+NRE0SIx19bn5k/O5GUX8aYw/L2vP5UiubKGre6KUrHdiksVZlnyevOh8j2qWMA6qKoT1V5EwVzG3OZtPMMqR9OMbdZQFadvV/6JLOeBv3tRSxbhVHKsh7Bi6DENpxbmHmfe+Zq1IpLNdoZJG3scbQXdAacbDQh8g/DSKGdbszk+McKyXNj4Kl+615tUf+6A8JO7kYRMJXIrhP/Y5yGUMJQrgaDwfnDZ3DwOAmN+umFOTadwPibI0XI5+rv/ecbZPawNuZfqom1q45KqarB/QJbS4dFeL/trYx3Ik2qN2A==
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=hzHIDabyQyOA4CrzCLNb3z2iQmYuA2kQe/t6+IAnPCk=;
 b=RBG0oh9stLr97Fl44L8V8CwDsQcLSDMr0hRl7mUg3W7CPpUX9DMJEOGbGNRxGfKixJWvB6tNeU1mZmK9Tt8kvT5902Fu9J/jVUs1YVTyA0kpoejm+NDx4ohe+6mVgpsK89qcyGIk9brAVBIComjXKM07fVLC+dJqUoX9hWQNV+AVXFUyklyDwJKxvfRuX/PcxGY+vAQSwFNbnA9bu5wEawtPV0F1I8eo/VbhHSeu/BFe2/IRUjbrqviK8GT5dmQbbb6T+AKctacvfI0Zp01oODA9RaGZYqCZpFmqinDRB2z78PVTezphYSytrQp9FMrYw2ocolpq9avaRytMhSy7GQ==
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=selector1-marvell-onmicrosoft-com;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=hzHIDabyQyOA4CrzCLNb3z2iQmYuA2kQe/t6+IAnPCk=;
 b=Vv6+Op1vUV/p1LyfQV5dBHXgsslq6Xbp8VSgH4vWDF7D9cfX3rZORH4xBmYT9tIhFhJwic8KnWd1Z+UUlHbuNG5v0tshKb4jVwL+/LrX6NG/iQ/ITpfu2y2reMCnDxiz2UGwBfYAlICZhZtl9aAbMuEayQZJ42Hd4H4VrPskgCM=
Received: from DM5PR1801MB2058.namprd18.prod.outlook.com (2603:10b6:4:67::31)
 by DM6PR18MB2795.namprd18.prod.outlook.com (2603:10b6:5:172::29) with
 Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3700.27; Wed, 23 Dec
 2020 09:32:19 +0000
Received: from DM5PR1801MB2058.namprd18.prod.outlook.com
 ([fe80::303b:5c79:93c7:b432]) by DM5PR1801MB2058.namprd18.prod.outlook.com
 ([fe80::303b:5c79:93c7:b432%7]) with mapi id 15.20.3676.033; Wed, 23 Dec 2020
 09:32:19 +0000
From: Michael Shamis <michaelsh@marvell.com>
To: Liron Himi <lironh@marvell.com>, Jerin Jacob Kollanukkaran
 <jerinj@marvell.com>
CC: "dev@dpdk.org" <dev@dpdk.org>, Liron Himi <lironh@marvell.com>
Thread-Topic: [dpdk-dev] [PATCH v1 28/38] net/mvpp2: propagate port-id in
 udata64
Thread-Index: AQHWyJUBT4Kmaudc1U6aKwGSBde+UKoEi8Zw
Date: Wed, 23 Dec 2020 09:32:19 +0000
Message-ID: <DM5PR1801MB2058300ECB649CC024211E5BA4DE0@DM5PR1801MB2058.namprd18.prod.outlook.com>
References: <20201202101212.4717-1-lironh@marvell.com>
 <20201202101212.4717-29-lironh@marvell.com>
In-Reply-To: <20201202101212.4717-29-lironh@marvell.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [83.130.154.133]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 1e4612a4-c2d8-45a1-7572-08d8a725a50c
x-ms-traffictypediagnostic: DM6PR18MB2795:
x-ms-exchange-transport-forked: True
x-microsoft-antispam-prvs: <DM6PR18MB2795B622097CA351E200A4C7A4DE1@DM6PR18MB2795.namprd18.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:3968;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: Fq2ZXFfwTtxAygunMiHWqt/gr+FMbYrpQ7PnUMfATJSe8pxftoXHt72ZdznZP8W5saN8xteBLYnTvYBG7SSHnzBiTymt2Yx150i0CSx7jmVPmrPag9zenTNzrQy2OdkSdXyvkW7RdDz08UJPrjdyuiNVzUgKgXcs8k88/qtBWY/uLMJQ4IjHgELcke4xWHlZrd23CdBw+vHTNls/mBh13e66LsXVjddKpT+YPt93RBVsktsQldLl8fn+4cZ9tv5YkH+hQypZ/zeJpeOmmMQWooEsKx8BWJ4nHsprw1iaf5aviHZNSxZrIvZGeekRkGmUaUkpZP1AMoxmR8mh+sGxo9obrZEWaqUdRr2p2X3BS/XkUcHTEhzyMS2Vjr80iBrocxqkVK6of/DaXdVqgeoy0g==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
 IPV:NLI; SFV:NSPM; H:DM5PR1801MB2058.namprd18.prod.outlook.com; PTR:; CAT:NONE;
 SFS:(4636009)(136003)(396003)(39860400002)(346002)(376002)(366004)(7696005)(26005)(54906003)(2906002)(8676002)(478600001)(186003)(9686003)(5660300002)(55016002)(83380400001)(4326008)(107886003)(8936002)(66946007)(86362001)(64756008)(66556008)(53546011)(66476007)(6636002)(6506007)(52536014)(33656002)(76116006)(110136005)(71200400001)(66446008)(316002);
 DIR:OUT; SFP:1101; 
x-ms-exchange-antispam-messagedata: =?us-ascii?Q?X21mSdeRLgNYtvqY2uQd1KUrhEIjaz0e6+1Vcy86/rcW5vtrbkFEahrp47uG?=
 =?us-ascii?Q?tmNZlZOmIg1YRBG1XsPO/sIc84uJFOmQ+iu0tbHbJJlcP5mIdMJWHUVXc3o5?=
 =?us-ascii?Q?DbiSGcw9dWa7TwB+8+3qzyHEy+WVyH1+W5IcqJ+9GZfLkppcyzddz5+f35vu?=
 =?us-ascii?Q?MmYZpDCLuuLyvm5Wu09nsopJH/8BZGA+6GTue/txS1FB6hrbS1PFOZHR20WQ?=
 =?us-ascii?Q?AAHm+A91Rk99J8ICoxXjLWh9LHpcoGlehqCD8Fe15EqM4pjjAs4O5jZ8tjjt?=
 =?us-ascii?Q?VWQSOEOuVnQS7c/dQdV4yEkxvO4uGZEq+J39Jd+japu0U2sSD4UU5l7hCv7k?=
 =?us-ascii?Q?UGqjAC/DkzK2Iztb4wxZirr2gSgQrzehFbN3i5/4wcQNOEL0P5baInHGwR6Z?=
 =?us-ascii?Q?K0NQwiud1HatPyKxk9QNpsoU71m1lU+15z5dp2yBP3U65WK52flsHisMNSuO?=
 =?us-ascii?Q?DTS04U9BnG89ecVx+DOnyx6Wc9Nzt0lYnti8dxI1hkv/CU8vtoEC5mvViVOr?=
 =?us-ascii?Q?mkkyNePDo0CDjp00DaW+kOT7lC6MQVFYEf1j6gRoQcjpQiu+iq4cNzJ5uaLf?=
 =?us-ascii?Q?uxAnFQ03dEcpQuHpgakbqMCxTOpXDuwzlpmwy720aB5ZUP5ZHpspxAof5tlN?=
 =?us-ascii?Q?eAilh1VbXjH+anzicqBLYklHQyWecVZe6SsoDDOPiQPOsYEg9dOzcVseVLyT?=
 =?us-ascii?Q?eBlRdGsl0o8gTTmOZKTB3weuUXyurViVtXPi5iG2L31ZVQlGkhg53I/mx5xb?=
 =?us-ascii?Q?VWmx+bxDtEQEG8Ua37RYL2cm6rZJwcnTB9IKKpB3XwFPhfxFyswxdXaZOn4W?=
 =?us-ascii?Q?fnhM0Jp5++kSrZLYuqMxHPvLV1/A05NjHWGd1UCK0IDt12mk6koC16FI34op?=
 =?us-ascii?Q?E4zRjUAf2XqZxDr2ILv54+VC6cz60R57gYrZDIxZz5nUW8d0Y50FgaxlivoN?=
 =?us-ascii?Q?3ngHg2TL3V+u4SwJBgk5FPUi/vz29smghkbAxEnF0Xw=3D?=
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: DM5PR1801MB2058.namprd18.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 1e4612a4-c2d8-45a1-7572-08d8a725a50c
X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Dec 2020 09:32:19.6061 (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: QNCr9SK+WsNRcULhn2usSaG7yhjl+7qol0WBTwJwQAbwBu5LfnQRW25TGIZ88ISpIW+3qV2j8FvpeJbDPv2mPQ==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR18MB2795
X-OriginatorOrg: marvell.com
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.343, 18.0.737
 definitions=2020-12-23_04:2020-12-21,
 2020-12-23 signatures=0
Subject: Re: [dpdk-dev] [PATCH v1 28/38] net/mvpp2: propagate port-id in
 udata64
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org
Sender: "dev" <dev-bounces@dpdk.org>

Reviewed-by: Michael Shamis <michaelsh@marvell.com>

-----Original Message-----
From: dev <dev-bounces@dpdk.org> On Behalf Of lironh@marvell.com
Sent: Wednesday, December 2, 2020 12:12 PM
To: Jerin Jacob Kollanukkaran <jerinj@marvell.com>
Cc: dev@dpdk.org; Liron Himi <lironh@marvell.com>
Subject: [dpdk-dev] [PATCH v1 28/38] net/mvpp2: propagate port-id in udata6=
4

From: Liron Himi <lironh@marvell.com>

mbuf->port can be override and used for eventdev
so saving the port-id information in another field tht can be query by appl=
ication

Signed-off-by: Liron Himi <lironh@marvell.com>
Reviewed-by: Liron Himi <lironh@marvell.com>
---
 drivers/net/mvpp2/mrvl_ethdev.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/mvpp2/mrvl_ethdev.c b/drivers/net/mvpp2/mrvl_ethde=
v.c index 1f9489d77..66c3c8e57 100644
--- a/drivers/net/mvpp2/mrvl_ethdev.c
+++ b/drivers/net/mvpp2/mrvl_ethdev.c
@@ -2693,6 +2693,7 @@ mrvl_rx_pkt_burst(void *rxq, struct rte_mbuf **rx_pkt=
s, uint16_t nb_pkts)
 		mbuf->l2_len =3D l3_offset;
 		mbuf->l3_len =3D l4_offset - l3_offset;
=20
+		mbuf->udata64 =3D q->port_id;
 		if (likely(q->cksum_enabled))
 			mbuf->ol_flags =3D mrvl_desc_to_ol_flags(&descs[i]);
=20
--
2.28.0