From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0059.outbound.protection.outlook.com [104.47.40.59]) by dpdk.org (Postfix) with ESMTP id 0D7C92986 for ; Fri, 4 Aug 2017 03:54:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mavenir365.onmicrosoft.com; s=selector1-mavenir-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=K+8CkZp4lcBuIFQVxZOIZmDAzmLOGIgWw2aMEy382So=; b=fLxSHOAyoEB+yWTZ7Iqg+0wgCmb0IF0K6pQ6k2s3LzbU8Ahdjwqrl/QZ3pBuCr+/jDqzdffEEBupb03joo6NwGumAKxdMxIrv7vWw/rZaUtw+e7MsnCM8cR+mhqYP9agwext152dnaS4LYvtJl6PB+SBM5eOz/o3zJIwJmaYn9I= Received: from BN6PR11MB1585.namprd11.prod.outlook.com (10.172.23.10) by BN6PR11MB1588.namprd11.prod.outlook.com (10.172.23.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1304.22; Fri, 4 Aug 2017 01:54:55 +0000 Received: from BN6PR11MB1585.namprd11.prod.outlook.com ([10.172.23.10]) by BN6PR11MB1585.namprd11.prod.outlook.com ([10.172.23.10]) with mapi id 15.01.1304.025; Fri, 4 Aug 2017 01:54:55 +0000 From: Kevin Yan To: "dev@dpdk.org" Thread-Topic: DPDK qos support for 40G port Thread-Index: AdMMxKhWKp0eplWUQ4+rv61P+2CwUA== Date: Fri, 4 Aug 2017 01:54:54 +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=Kevin.Yan@mavenir.com; x-originating-ip: [116.247.106.11] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; BN6PR11MB1588; 6:ex1gXPNqlcVxH6hsZ31KvSzhpHaaLXTmnEJfk0d5AhmdV8SiayDGSkV6u4ITjDtjj+FCzwiaRdFj9os5/iDDxW7Lh2FFI0DRUHXWHYj+0+jJL3ZEgy9USCPjr451vDRjOvGmZMVxb3o/opl0hESetphx9W2a/g+sGQH1teP5eo12ga78+ybZxt/sMzMi9/844ufa6wlkGeJ7qCCqI/gZU2G7xpAOfhKiCyGVopXApmNRPYTGufzhSZkMnu3Wkd6OcFXVAxgv8vTVe1GjFLQDbD2lJ3gh38N0M0tAK/ABIEzJoT7ku6ZnZDAB5NllYDpGuZ/XmGtgfYvfu37I3AxVSg==; 5:zgMj/48bV0igauQI1nXx5eBGXNw1KXLG87iLeNsQ22VhRUotS4XXZv7gOzSEqKvSaq0nnze5loXZnDccmDJT18eWpGRvslvWTovlcARYsM2hfKct9PutUCaPWVL+UJoiFGTavhgq/VQd0kwyuT9vhA==; 24:0EG/JPHZ7Jzvok0j00b1e6aTRglz05yYvCwLQ6lZoWKoPDbJ0gUSnkBGBvfqBDDbdv6xSggPqp0GKwvD31P7xWa1W7uaodf6xmu1nt9ZqoA=; 7:FbaZKWbM7vd6TJwpYLJxVXeJDvbktfSKuDFEk+E7yX5sR0hyFIIQPNb3gqVUyDfOeCtgv7hDCPZV7rWow+eWxIrxMLophM8boAusgSQvNFBPk7H0rQAYPS9UFtSLIZ2H5yf1wWroYdlRgPl8iUOSWCilwtL+Le7ChANDT8jxfAKy59tDustJeRxDAlInFGySh/TPIE4igOZXy2c/rZkHaZxRU0QSC9vKaiiwN3HplPw= x-ms-office365-filtering-correlation-id: 6970e24e-f3d0-4bd8-915b-08d4dadbcde0 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(2017052603031)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:BN6PR11MB1588; x-ms-traffictypediagnostic: BN6PR11MB1588: x-exchange-antispam-report-test: UriScan:(21748063052155); x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(93001095)(100000703101)(100105400095)(3002001)(10201501046)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123555025)(20161123558100)(20161123564025)(20161123560025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN6PR11MB1588; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN6PR11MB1588; x-forefront-prvs: 0389EDA07F x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(39410400002)(39840400002)(39450400003)(39400400002)(39850400002)(189002)(199003)(5630700001)(74316002)(7696004)(189998001)(6916009)(86362001)(97736004)(6436002)(9686003)(5660300001)(6506006)(2501003)(77096006)(2900100001)(6306002)(99286003)(3660700001)(5640700003)(3280700002)(2906002)(55016002)(68736007)(54896002)(33656002)(72206003)(2351001)(790700001)(3846002)(6116002)(102836003)(8936002)(50986999)(110136004)(9326002)(53936002)(54356999)(38730400002)(105586002)(7736002)(14454004)(478600001)(25786009)(106356001)(101416001)(8676002)(66066001)(1730700003)(81166006)(81156014); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR11MB1588; H:BN6PR11MB1585.namprd11.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; received-spf: None (protection.outlook.com: mavenir.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: mavenir.com X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Aug 2017 01:54:54.8759 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 7fa7d4ff-bf19-464b-89a6-a132b269d68c X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR11MB1588 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] DPDK qos support for 40G port 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: , X-List-Received-Date: Fri, 04 Aug 2017 01:54:58 -0000 Hi, I have a question about dpdk qos feature, in rte_sched.h, /** Port configuration parameters. */ struct rte_sched_port_params { const char *name; /**< String to be associat= ed */ int socket; /**< CPU socket ID */ uint32_t rate; /**< Output port rate = * (measured in bytes per second) */ uint32_t mtu; /**< Maximum Ethernet fram= e size = * (measured in bytes). = * Should not include the framing overhead. */ uint32_t frame_overhead; /**< Framing overhead per = packet = * (measured in bytes) */ uint32_t n_subports_per_port; /**< Number of subports */ uint32_t n_pipes_per_subport; /**< Number of pipes per s= ubport */ uint16_t qsize[RTE_SCHED_TRAFFIC_CLASSES_PER_PIPE]; /**< Packet queue size for each traffic class. * All queues within the same pipe traffic class have the sa= me * size. Queues from different pipes serving the same traffi= c * class have the same size. */ struct rte_sched_pipe_params *pipe_profiles; /**< Pipe profile table. * Every pipe is configured using one of the profiles from t= his table. */ uint32_t n_pipe_profiles; /**< Profiles in the pipe = profile table */ #ifdef RTE_SCHED_RED struct rte_red_params red_params[RTE_SCHED_TRAFFIC_CLASSES_= PER_PIPE][e_RTE_METER_COLORS]; /**< RED parameters */ #endif }; rate is type of uint32_t, but if physical port rate is 40G = bit/s, which is 5G byte/s, 5G already exceed the max value of uint32_t, so = I doult that 40G is not supported by dpdk qos lib, or any error of my under= standing? Thanks and waiting for your reply! BRs, Kevin ________________________________ Please Note: My email address is changing. Starting May 1st 2017 my email w= ill solely be my Mavenir email firstname.lastname@mavenir.com. All other pr= ior email accounts will become inactive. To ensure continuity, please send = all emails to my Mavenir email ID which is currently active and available f= or use. This e-mail message may contain confidential or proprietary information of = Mavenir Systems, Inc. or its affiliates and is intended solely for the use = of the intended recipient(s). If you are not the intended recipient of this= message, you are hereby notified that any review, use or distribution of t= his information is absolutely prohibited and we request that you delete all= copies in your control and contact us by e-mailing to security@mavenir.com= . Thank You. This message contains the views of its author and may not nece= ssarily reflect the views of Mavenir Systems, Inc. or its affiliates, who e= mploy systems to monitor email messages, but make no representation that su= ch messages are authorized, secure, uncompromised, or free from computer vi= ruses, malware, or other defects.