From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id BE071A00E6 for ; Mon, 15 Apr 2019 07:35:33 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 9F5A26904; Mon, 15 Apr 2019 07:35:32 +0200 (CEST) Received: from cnshjsmin05.nokia-sbell.com (cnshjsmin05.app.nokia-sbell.com [116.246.26.45]) by dpdk.org (Postfix) with ESMTP id 7BFA75F62; Mon, 15 Apr 2019 07:35:30 +0200 (CEST) X-AuditID: ac18929d-1e9ff7000001aba9-67-5cb418207bd0 Received: from CNSHPPEXCH1603.nsn-intra.net (Unknown_Domain [135.251.51.103]) (using TLS with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by cnshjsmin05.nokia-sbell.com (Symantec Messaging Gateway) with SMTP id FD.DA.43945.02814BC5; Mon, 15 Apr 2019 13:35:28 +0800 (HKT) Received: from CNSHPPEXCH1605.nsn-intra.net (135.251.51.105) by CNSHPPEXCH1603.nsn-intra.net (135.251.51.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1466.3; Mon, 15 Apr 2019 13:35:27 +0800 Received: from CNSHPPEXCH1605.nsn-intra.net ([135.251.51.105]) by CNSHPPEXCH1605.nsn-intra.net ([135.251.51.105]) with mapi id 15.01.1466.009; Mon, 15 Apr 2019 13:35:27 +0800 From: "Xiao, Xiaohong (NSB - CN/Shanghai)" To: "Soni, Shivam" , Stephen Hemminger CC: "dev@dpdk.org" , "users@dpdk.org" , "Uppal, Hardeep" , "Li, Miaocai A. (NSB - CN/Shanghai)" , "Chen, Fei A. (NSB - CN/Shanghai)" Thread-Topic: [dpdk-dev] TX unable to enqueue packets to NIC due to no free TX descriptor Thread-Index: AQHUqg2RqD02XAGaqkCKrmFlylkj5KWuiiCAgANlUACAi1XBsA== Date: Mon, 15 Apr 2019 05:35:27 +0000 Message-ID: <2e0393ed1c904ca5875bdc91ea5bb4c1@nokia-sbell.com> References: <454CCFA5-5843-441F-9C6D-33E807419574@amazon.com> <20190111153709.3117c539@hermes.lan> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: x-originating-ip: [135.251.51.115] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrFIsWRmVeSWpSXmKPExsXS/ts4XVdBYkuMwfIN0hbvPm1nsrh55AmT xdH935gtFt+Rs2g+uJ7FgdVjxYUuVo9fC5ayevScnMcUwBzFZZOSmpNZllqkb5fAlXH69Gvm gibbihnzJjI1MO6w7mLk5JAQMJF4fvcVWxcjF4eQwCEmiRsf2lhBEkICfxklNr90hEhsYpQ4 cHgzcxcjBwebgJfEmuWGIDUiAlES3zY2gDUzC/xglLj2bRETSEIYKHHp+lMWiKJoiYmvW1hA ekUEnCR+bQJbzCKgKnF60UY2EJtXwE5i6ZZ+RohdDUwSh16tZgWp5wRKnGmPAalhFBCT+H5q Ddh4ZgFxiVtP5jNBPCAgsWTPeWYIW1Ti5eN/rBAzeSTmLO5mBBkjIaAk0beBCcRkFtCUWL9L H2KKosSU7ofsENWCEidnPmGZwCg+C8mCWQgds5B0zELSsYCRZRWjdHJecUZWcW5mnoGpXl5+ dmaibnFSak6OXnJ+7iZGYAyukZg0dwdjZ2f8IUYBDkYlHt4LlZtjhFgTy4orcw8xSnAwK4nw CnQAhXhTEiurUovy44tKc1KLDzFKc7AoifM2PlkfIySQnliSmp2aWpBaBJNl4uCUamBcnODG f39j8z8G+TcdoUuvlgUE2xa9NeRntL2Vli62RdoxTvJ8h0bxoeCGv97mLtoLbqsvvuZX9WRy SeHUUx8SQ7yUuh5sljher7S+OGw/e+pufaYbC9J+pp69tEZh9YVCz3mn5pTnT1YTd4xi2Nn/ Q3TX58Jl7q/8727i9312pXD50cNMLm5KLMUZiYZazEXFiQAlwHYPvQIAAA== Subject: Re: [dpdk-users] [dpdk-dev] TX unable to enqueue packets to NIC due to no free TX descriptor X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" SGVsbG8NCldlIG1ldCBzaW1pbGFyIGlzc3VlLiBEUERLMTcuMTEgKyBpNDBlLiBUeCBxdWV1ZSBz ZWVtcyBmdWxsIGFuZCBoYW5naW5nLCBubyBwYWNrZXRzIGNvdWxkIGJlIHNlbnQgb3V0IGF0IGFs bC4gDQpIYXMgdGhpcyBpc3N1ZSBnb25lIGFuZCBob3c/IFRoYW5rIHlvdSB2ZXJ5IG11Y2guDQoN ClJlZ2FyZHMNCk5va2lhLCBYaWFvIFhpYW9ob25nDQoNCi0tLS0tT3JpZ2luYWwgTWVzc2FnZS0t LS0tDQpGcm9tOiB1c2VycyBbbWFpbHRvOnVzZXJzLWJvdW5jZXNAZHBkay5vcmddIE9uIEJlaGFs ZiBPZiBTb25pLCBTaGl2YW0NClNlbnQ6IDIwMTnlubQx5pyIMTfml6UgNTo0Ng0KVG86IFN0ZXBo ZW4gSGVtbWluZ2VyIDxzdGVwaGVuQG5ldHdvcmtwbHVtYmVyLm9yZz4NCkNjOiBkZXZAZHBkay5v cmc7IHVzZXJzQGRwZGsub3JnOyBVcHBhbCwgSGFyZGVlcCA8aGFyZGVlcHVAYW1hem9uLmNvbT4N ClN1YmplY3Q6IFJlOiBbZHBkay11c2Vyc10gW2RwZGstZGV2XSBUWCB1bmFibGUgdG8gZW5xdWV1 ZSBwYWNrZXRzIHRvIE5JQyBkdWUgdG8gbm8gZnJlZSBUWCBkZXNjcmlwdG9yDQoNCk9uIGRpZ2dp bmcgZnVydGhlciBmb3VuZCBzb21lIG1vcmUgZGF0YS4NCg0KT24gdGhlI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DQ6MjcgUE0sICJkZXYgb24gYmVoYWxmIG9m IFNvbmksIFNoaXZhbSIgPGRldi1ib3VuY2VzQGRwZGsub3JnIG9uIGJlaGFsZiBvZiBzaGl2c29u aUBhbWF6b24uY29tPiB3cm90ZToNCiAgICANCiAgICAgICAgSGkgU3RlcGhlbiwNCiAgICAgICAg DQogICAgICAgIFRoYW5rcyBmb3IgdGhlIHJlcGx5Lg0KICAgICAgICANCiAgICAgICAgT3VyIG1i dWYgcG9vbCBpcyBiaWcgZW5vdWdoLiBXZSBoYXZlIDIgUlggY29yZXMsIDIgVFggY29yZXMgYW5k IDggd29ya2VyIGNvcmVzLg0KICAgICAgICBOVHhkIGFuZCBOUnhkIGlzIDEwMjQgZWFjaCBhbmQg d2UgaGF2ZSAxNiBSeCByaW5ncyAoc2hhcmVkIGJldHdlZW4gUnggYW5kIHdvcmtlcnMpIGFuZCA4 IFR4IHJpbmdzIChiZXR3ZWVuIFR4IGFuZCB3b3JrZXJzKQ0KICAgICAgICBNZW1wb29sIGNhY2hl IHNpemUgaXMgMjU2IGFuZCBidXJzdCBzaXplIGlzIDMyLg0KICAgICAgICANCiAgICAgICAgU28g b3ZlcmFsbCBjYWxjdWxhdGlvbiBjb21lcyBvdXQgdG8gYmUgDQogICAgICAgICgoTklDX1JYX1FV RVVFX1NJWkUgKiBSWF9MQ09SRVMpICsgKE5JQ19UWF9RVUVVRV9TSVpFICogVFhfTENPUkVTKSAr IFwNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoV09SS0VSX1JYX1JJTkdfU0la RSAqIFJYX0xDT1JFUyAqIE5BVF9XT1JLRVJfTENPUkVTKSArIChXT1JLRVJfVFhfUklOR19TSVpF ICogTkFUX1dPUktFUl9MQ09SRVMpICsgXA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICgoTUJVRl9BUlJBWV9TSVpFICsgQ0FDSEVfU0laRSkgKiAoUlhfTENPUkVTICsgVFhfTENP UkVTICsgTkFUX1dP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