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 9DD9EA328D for ; Tue, 22 Oct 2019 17:55:39 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 576B21BEE8; Tue, 22 Oct 2019 17:55:38 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 66D681BEE3 for ; Tue, 22 Oct 2019 17:55:36 +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 x9MFkdEJ019398; Tue, 22 Oct 2019 08:55:35 -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=KkD82HMaM0/oXcEnK0UHNXl9jkRGhUGWTcRjWTX72EI=; b=BhkdfIK04qwwhAImHjElrtRR/q8RQ1hTULw3sFur/wl15Rv3CnnlKShe+UIXMfPW1Jbr xgD97uF5ZDNWOb+guUf64CPB0AuvB+rkfPi4BTv3oIJ7RswnL9z5GVtIsCO06C1a7aEe vPj/VquWwc2f6ruX9AaXiRUbJYJ7F4PCZKsXetDLl/iGocxiUKcCCshl2EYaqwZNkYf0 FjlYBSrQmiRPcHNXTHU9h/3h0PUjw+vuzuIu8jTOspoQNaoywn/gObiz0o0/m3oVG11l C5NoJGRPmiCt8uSWoAPPU6J6UsJinlijQwNsLQ447PTN7xeFlmeGhvWqA02+OH0SpY2A Tg== Received: from sc-exch04.marvell.com ([199.233.58.184]) by mx0a-0016f401.pphosted.com with ESMTP id 2vsyjh95bu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 22 Oct 2019 08:55:35 -0700 Received: from SC-EXCH02.marvell.com (10.93.176.82) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Tue, 22 Oct 2019 08:55:34 -0700 Received: from NAM04-SN1-obe.outbound.protection.outlook.com (104.47.44.58) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Tue, 22 Oct 2019 08:55:34 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KIsubJfHsKr0wlrhkTDB1uR9AzGaEI+jgtH5hcqUcnrowCmlFAbQ0YTg+8GoeYZ3eS+BtTzD33ds5A5AjyDJ0mwVyKJk7RCTfmGEA1DbzHnGKDZgomzH8/t0SPUsMHymqNhRxhfjDu4HjBiwfC4Ku/tthVrMLfEYb+UCtxn8I5XNriLJSYrgoCTItvF+94rBA6N4CWEvaVhCG65mFL4E1/oxwthAEy3tPr200yghPQHkdYmU/o1rFaG4aMzOpCQycfnFEMc/43+9zclIwPrB5OxKT7ckrq1rmLB9gEzueomH2IvnnW5aY4q5svyZfik91EkPg9mhlFhXoWBTfy2xIA== 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=KkD82HMaM0/oXcEnK0UHNXl9jkRGhUGWTcRjWTX72EI=; b=j6qMLkHXeKB+kB+fPk+7ZfmI3W5+Tju+U285k+inj5JyqKYLRo5itNYUlBVe9iiSAvVvmAUJdZXMAxYC/OPb0oBjHT7xwzR+q+TqTdI49fEP1XmrS6Y/RhqE39C67OjMA+IXM9dJuHbwZO8b7aOXifFgk4tBxQDwF+DwjJ2xQ3a8x7m+yFFKoWbjJBDj9thcH0Ogay2ecX2qa0o53SCkwu+ki4sJXaYxDrnvR6V/JjurmKaJDAfa8Iu7wrPgMl6pOVW7E8Y5/fNkfEXRUPg+PtDLR6X38tPDj2dMRguBKZZ52wVVuI4kgJw9+J9PFE373XjS1lgBLpTYFQEnAlQ8mA== 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=KkD82HMaM0/oXcEnK0UHNXl9jkRGhUGWTcRjWTX72EI=; b=R53gGwa+0uV56VPlQd+4Os7TOuR5pyqJVL+riJhn4bCvf2bCrLIVOClHmQvgRu+msStAChKG7zgG0/Yb0ql9m7uDYIaFBPWTLErGfMhJBoKnf/FDbEOllxt8OKLik83/Pv9lzW+jbNJ8SXcfcYXdmBND2XfmG25qOUfMeCDJ1Ww= Received: from BN6PR1801MB1859.namprd18.prod.outlook.com (10.161.154.35) by BN6PR1801MB2066.namprd18.prod.outlook.com (10.161.153.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2367.20; Tue, 22 Oct 2019 15:55:33 +0000 Received: from BN6PR1801MB1859.namprd18.prod.outlook.com ([fe80::9c:1e0f:afef:9410]) by BN6PR1801MB1859.namprd18.prod.outlook.com ([fe80::9c:1e0f:afef:9410%6]) with mapi id 15.20.2347.029; Tue, 22 Oct 2019 15:55:33 +0000 From: Pavan Nikhilesh Bhagavatula To: "Varghese, Vipin" , Jerin Jacob Kollanukkaran , "Richardson, Bruce" , "hemant.agrawal@nxp.com" CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v6 00/10] example/l2fwd-event: introduce l2fwd-event example Thread-Index: AQHVh79DfCMUlDB+kEq78rikGyty7adlUgrwgACnQACAANfNYA== Date: Tue, 22 Oct 2019 15:55:32 +0000 Message-ID: References: <20191002205754.11746-1-pbhagavatula@marvell.com> <20191014182247.961-1-pbhagavatula@marvell.com> <4C9E0AB70F954A408CC4ADDBF0F8FA7D4D3DCA77@BGSMSX101.gar.corp.intel.com> <4C9E0AB70F954A408CC4ADDBF0F8FA7D4D3DE2D0@BGSMSX101.gar.corp.intel.com> In-Reply-To: <4C9E0AB70F954A408CC4ADDBF0F8FA7D4D3DE2D0@BGSMSX101.gar.corp.intel.com> Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [122.171.227.191] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: f3317572-0da7-44a4-77c7-08d75708454b x-ms-traffictypediagnostic: BN6PR1801MB2066: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-forefront-prvs: 01986AE76B x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(396003)(346002)(376002)(136003)(366004)(39860400002)(199004)(189003)(66446008)(2501003)(476003)(86362001)(486006)(55016002)(8936002)(446003)(6436002)(6246003)(102836004)(64756008)(14454004)(186003)(229853002)(76176011)(110136005)(66476007)(66946007)(3846002)(99286004)(52536014)(9686003)(6116002)(66556008)(316002)(66066001)(76116006)(305945005)(478600001)(74316002)(2906002)(11346002)(7736002)(33656002)(71200400001)(256004)(5660300002)(6506007)(71190400001)(7696005)(81156014)(14444005)(4326008)(25786009)(26005)(81166006); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR1801MB2066; H:BN6PR1801MB1859.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: BCL:0; x-microsoft-antispam-message-info: ypYZ3f5xVCjF4JM+X6sfiUT2j2hS2YnVIMMM5BLv8vJQNdA+VgYdPIWDfnDdjqPXB0hi7vGwlEeSWFiOANQYCoS+8STUUfOMxpYIsPc2LqFRrJfF6i4n9AoneexZ0F/IMJXwHh9KFWty5SedRSlbQ3BBNm9PZAy+1oT6hVKm+PgZbcsEv+I48iNnNEUdMT2Wqjk5ouwDQATJV3GkdUBxdmYLgVyCsqQZhxKrse97I8Huj3szZ0wnJd2TLN1vuLhaQ1qc/nEeo78vk+BYMjL3JIr0Dmb0QAYMXtCwuCkBWr3CKuFHKLslaexCzCjtW17QBdzfvZoSFVVREOYD1JH5rb+qsOZOjbInaXHrhLTes9g+PJfhPGJc5Tgdj/49Sj/BuDcKfzfdoyXr2ebRZGtCOhdMXVLBZ+OyJ8RiAVLCUH+LA4iw/8d+H+HCT5wJw2yU Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: f3317572-0da7-44a4-77c7-08d75708454b X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Oct 2019 15:55:32.7444 (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: duKz+C7SgafLlKWiZcTNCyr3dmk4cyLyfEIHJ/wGdNlZDp9h9eaLbqzKsJW/FnZMHvOjvq7kFjxAH2QFBxM+wDUORSxMXWzi0zJve3sTBPw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR1801MB2066 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,1.0.8 definitions=2019-10-22_03:2019-10-22,2019-10-22 signatures=0 Subject: Re: [dpdk-dev] [PATCH v6 00/10] example/l2fwd-event: introduce l2fwd-event example 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" >> >> It's not a quantifier of each port, It across the eventdevice that the >number of >> event queues is equal to number of ethdevices used. >> >> This is to prevent event queues being overcrowded i.e. in case there >is only one >> event queue and multiple Eth devices then SW/HW will have a >bottleneck in >> enqueueing all the mbufs to a single event queue. >Yes you are correct, but here is my confusion > >1. let us assume there are 2 ports, ie: port 0 <=3D=3D> port 1. >2. We have 4 workers and 2 event queue (2 ports, so Q-0 for port-0 and >Q-11 for port-1) >3. The event mode (SW or HW) is parallel. >4. In this case we need to rely of Q-2 which can absorb the events for >single-event TX adapter for L2FWD_EVENT_TX_ENQ. >5. But for L2FWD_EVENT_TX_DIRECT (which is to send packets out >directly) this is not right form as multiple parallel workers may >concurrently send out same destination port queue (as there is 1 TX >configured). > >Can you help me understand, how this is worked around? We only select TX_DIRECT when the eventdev coupled with ethdev has=20 RTE_EVENT_ETH_TX_ADAPTER_CAP_INTERNAL_PORT capability. It is the PMDs responsibility to synchronize concurrent Tx queues access across queues if it exposes the above capability. In case of octeontx2 we expose RTE_EVENT_ETH_TX_ADAPTER_CAP_INTERNAL_PORT only when both eventdev and ethdev are octeontx2 pmds.=20 Since octeontx2 has DEV_TX_OFFLOAD_MT_LOCKFREE multicore Tx queue atomicity= is taken care by HW. > >> >> >3. With this work for vdev ports, if no are we adding check for the >> >same in `main` function? >> >> I have verified the functionality for --vdev=3Devent_sw0 and it seems to >work fine. >Thanks, so whether it is physical or virtual ethernet device all packets >has to come to worker cores for 'no-mac-updating'. > >> >> > >> >snipped