From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from wipro-chn-out01.wipro.com (wipro-chn-out01.wipro.com [203.91.208.14]) by dpdk.org (Postfix) with ESMTP id 7C6548E59 for ; Wed, 20 Jan 2016 13:06:33 +0100 (CET) X-AuditID: cb5bdd88-f79ee6d000001534-91-569f78477c10 X-Invalid-Recipients: Received: from BLR-OUT-EDG02.wipro.com ( [203.91.201.88]) by wipro-chn-out01.wipro.com (Symantec Mail Security) with SMTP id 15.7E.05428.7487F965; Wed, 20 Jan 2016 17:36:31 +0530 (IST) Received: from BLR-EC-MBX2.wipro.com (10.208.51.112) by BLR-OUT-EDG02.wipro.com (203.91.193.32) with Microsoft SMTP Server (TLS) id 14.3.235.1; Wed, 20 Jan 2016 17:36:27 +0530 Received: from wipro-blr-tls01.wipro.com (203.91.193.64) by BLR-EC-MBX2.wipro.com (10.208.51.112) with Microsoft SMTP Server (TLS) id 14.3.235.1; Wed, 20 Jan 2016 17:36:25 +0530 Received: from APC01-PU1-obe.outbound.protection.outlook.com (65.55.88.22) by wipro-blr-tls01.wipro.com (203.91.193.64) with Microsoft SMTP Server (TLS) id 14.3.235.1; Wed, 20 Jan 2016 17:36:19 +0530 Received: from HK2PR03MB1780.apcprd03.prod.outlook.com (10.165.179.18) by HK2PR03MB1780.apcprd03.prod.outlook.com (10.165.179.18) with Microsoft SMTP Server (TLS) id 15.1.365.19; Wed, 20 Jan 2016 12:06:21 +0000 Received: from HK2PR03MB1780.apcprd03.prod.outlook.com ([10.165.179.18]) by HK2PR03MB1780.apcprd03.prod.outlook.com ([10.165.179.18]) with mapi id 15.01.0365.023; Wed, 20 Jan 2016 12:06:21 +0000 From: To: Thread-Topic: How classification happens in scheduling ? Thread-Index: AdFTenjyLvjYTe7hRViYtfE+6j1Z3Q== Date: Wed, 20 Jan 2016 12:06:21 +0000 Message-ID: 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=ravulakollu.kumar@wipro.com; x-originating-ip: [203.91.215.218] x-microsoft-exchange-diagnostics: 1; HK2PR03MB1780; 5:fYYeYEEmpg2WVOnJ8c89D8J5o6188SoK+0tutYdqASfblxL43l+i/a0PKnlHFA8ot6UWTNjuun3Wye7XceoVtQHX1998XWp2kOAdxeuAnovpxL2xVYDj2m0gidzpa4q8gpASGFricKdnMvDnwju1aQ==; 24:suA3PnzEcOf1PpLukxIz4MGoz5oasdKQauQW1ZliHKVx/Smtqe0TSWKbAD6CEW8KG6hLdhpJMNTFG0G6YuhrirVU/nIH2Hb/DAFFhoqp9tY= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:HK2PR03MB1780; x-ms-office365-filtering-correlation-id: 580ec767-1596-473f-7f37-08d321921c60 x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(61425038)(601004)(2401047)(520078)(8121501046)(5005006)(3002001)(10201501046)(61426038)(61427038); SRVR:HK2PR03MB1780; BCL:0; PCL:0; RULEID:; SRVR:HK2PR03MB1780; x-forefront-prvs: 0827D7ACB9 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(199003)(189002)(53754006)(102836003)(54356999)(86362001)(105586002)(10400500002)(3846002)(450100001)(19300405004)(106356001)(5001960100002)(189998001)(1096002)(16236675004)(5003600100002)(77096005)(1730700002)(790700001)(76576001)(11100500001)(15975445007)(97736004)(110136002)(5004730100002)(2906002)(81156007)(5008740100001)(5002640100001)(586003)(92566002)(229853001)(122556002)(74316001)(6116002)(2501003)(107886002)(87936001)(19625215002)(33656002)(2351001)(50986999)(575784001)(19580395003)(66066001)(101416001)(2900100001)(40100003)(19609705001)(1220700001); DIR:OUT; SFP:1101; SCL:1; SRVR:HK2PR03MB1780; H:HK2PR03MB1780.apcprd03.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; received-spf: None (protection.outlook.com: wipro.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Jan 2016 12:06:21.2993 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 258ac4e4-146a-411e-9dc8-79a9e12fd6da X-MS-Exchange-Transport-CrossTenantHeadersStamped: HK2PR03MB1780 X-OrganizationHeadersPreserved: HK2PR03MB1780.apcprd03.prod.outlook.com X-CrossPremisesHeadersPromoted: BLR-HES-EDG03.wipro.com X-CrossPremisesHeadersFiltered: BLR-HES-EDG03.wipro.com X-CFilter-Loop: Reflected Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] How classification happens in scheduling ? X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jan 2016 12:06:34 -0000 Hi all, Could someone explain me how this code snippet determining subport,pipe,tra= ffic_class,queue,color. uint16_t *pdata =3D rte_pktmbuf_mtod(m, uint16_t *); //points to th= e start of the data in the mbuf *subport =3D (rte_be_to_cpu_16(pdata[SUBPORT_OFFSET]) & 0x0FFF) &(p= ort_params.n_subports_per_port - 1); /* Outer VLAN ID*/ *pipe =3D (rte_be_to_cpu_16(pdata[PIPE_OFFSET]) & 0x0FFF) & (port_p= arams.n_pipes_per_subport - 1); /* Inner VLAN ID */ *traffic_class =3D (pdata[QUEUE_OFFSET] & 0x0F) & (RTE_SCHED_TRAFFI= C_CLASSES_PER_PIPE - 1); /* Destination IP */ *queue =3D ((pdata[QUEUE_OFFSET] >> 8) & 0x0F) & (RTE_SCHED_QUEUES_= PER_TRAFFIC_CLASS - 1) ; /* Destination IP */ *color =3D pdata[COLOR_OFFSET] & 0x03; /* Destination IP */ Thanks & Regards, Uday The information contained in this electronic message and any attachments to= this message are intended for the exclusive use of the addressee(s) and ma= y contain proprietary, confidential or privileged information. If you are n= ot the intended recipient, you should not disseminate, distribute or copy t= his e-mail. Please notify the sender immediately and destroy all copies of = this message and any attachments. WARNING: Computer viruses can be transmit= ted via email. The recipient should check this email and any attachments fo= r the presence of viruses. The company accepts no liability for any damage = caused by any virus transmitted by this email. www.wipro.com