From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-fw-9101.amazon.com (smtp-fw-9101.amazon.com [207.171.184.25]) by dpdk.org (Postfix) with ESMTP id C6F6F1041; Wed, 16 Jan 2019 22:46:31 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1547675192; x=1579211192; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=VkE44AkEPH7jOWCBtsCk2LSSjmM483yo4lNsg9YRn/E=; b=Wd9EM8ZYd/Iw8aNnsx8QroDv4SrKzacW5Q2LZ9WslHpkx7ZmsZ5lw9gV 4BvQZiHm5ge71fGEP3HvbhcDx1Ont8vMMeeZmte8r7X9unyDioZwleuQ9 +xgcvVtFw8LXFV2W3I3BzS0QuqZEi2kRYzPgnkq4wCT+YvM3SHNqwd3hh I=; X-IronPort-AV: E=Sophos;i="5.56,253,1539648000"; d="scan'208";a="781879939" Received: from sea3-co-svc-lb6-vlan3.sea.amazon.com (HELO email-inbound-relay-1d-5dd976cd.us-east-1.amazon.com) ([10.47.22.38]) by smtp-border-fw-out-9101.sea19.amazon.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 16 Jan 2019 21:45:57 +0000 Received: from EX13MTAUWA001.ant.amazon.com (iad55-ws-svc-p15-lb9-vlan2.iad.amazon.com [10.40.159.162]) by email-inbound-relay-1d-5dd976cd.us-east-1.amazon.com (8.14.7/8.14.7) with ESMTP id x0GLjfSu027172 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Wed, 16 Jan 2019 21:45:45 GMT Received: from EX13D07UWA004.ant.amazon.com (10.43.160.32) by EX13MTAUWA001.ant.amazon.com (10.43.160.58) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Wed, 16 Jan 2019 21:45:44 +0000 Received: from EX13D01EUA004.ant.amazon.com (10.43.165.123) by EX13D07UWA004.ant.amazon.com (10.43.160.32) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Wed, 16 Jan 2019 21:45:43 +0000 Received: from EX13D01EUA004.ant.amazon.com ([10.43.165.123]) by EX13D01EUA004.ant.amazon.com ([10.43.165.123]) with mapi id 15.00.1367.000; Wed, 16 Jan 2019 21:45:42 +0000 From: "Soni, Shivam" To: Stephen Hemminger CC: "dev@dpdk.org" , "users@dpdk.org" , "Uppal, Hardeep" Thread-Topic: [dpdk-dev] TX unable to enqueue packets to NIC due to no free TX descriptor Thread-Index: AQHUqfp8gs2WiPzhjEunZZjrnn3cVqWquS6A//+HxQCABElRgIADZVIA Date: Wed, 16 Jan 2019 21:45:42 +0000 Message-ID: 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: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.43.164.222] Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 Precedence: Bulk Subject: Re: [dpdk-dev] TX unable to enqueue packets to NIC due to no free TX descriptor X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jan 2019 21:46:32 -0000 T24gZGlnZ2luZyBmdXJ0aGVyIGZvdW5kIHNvbWUgbW9yZSBkYXRhLg0KDQpPbiB0aGUgaG9zdCB3 aGVyZSBldmVyeXRoaW5nIHdvcmtzIGZpbmUsIEkgY2FuIHNlZSAndHhxLT5uYl90eF9mcmVlJyBn ZXR0aW5nIHJlZHVjZWQgdG8gMzEgZnJvbSAxMDI0LiBBZnRlciByZWFjaGluZyBhdCAzMSwgaTQw ZV90eF9mcmVlX2J1ZnMoKSBmdW5jdGlvbiBnZXRzIGNhbGxlZCw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JlzIGNvZGUsIHdl IGZvdW5kIHRoYXQgd2hlbmV2ZXIgdGhlIGlzc3VlIGlzIGhhcHBlbmluZyB0aGUgdmFsdWUgZm9y IG5iX3R4X2ZyZWUgaXMg4oCYMOKAmS4gQW5kIHRoZW4gaXQgdHJpZXMgdG8gZnJlZSB0aGUgYnVm ZmVyIGJ5IGNhbGxpbmcgZnVuY3Rpb24g4oCYaTQwZV90eF9mcmVlX2J1ZnPigJkuDQogICAgICAg ICAgICA+IA0KICAgICAgICAgICAgPiBUaGlzIG1ldGhvZCByZXR1cm5zIGVhcmx5IGFzIHRoZSBi dWZmZXIgaXRzIHRyeWluZyB0byBmcmVlIHNheXMgaXQgaGFzbuKAmXQgZmluaXNoZWQgdHJhbnNt aXR0aW5nIHlldC4gVGhlIG1ldGhvZCByZXR1cm5zIGF0IHRoaXMgaWYgY29uZGl0aW9uOg0KICAg ICAgICAgICAgPiANCiAgICAgICAgICAgID4gLyogY2hlY2sgREQgYml0cyBvbiB0aHJlc2hvbGQg ZGVzY3JpcHRvciAqLw0KICAgICAgICAgICAgPiBpZiAoKHR4cS0+dHhfcmluZ1t0eHEtPnR4X25l eHRfZGRdLmNtZF90eXBlX29mZnNldF9ic3ogJg0KICAgICAgICAgICAgPiAgICAgICAgICAgICAg ICAgcnRlX2NwdV90b19sZV82NChJNDBFX1RYRF9RVzFfRFRZUEVfTUFTSykpICE9DQogICAgICAg ICAgICA+ICAgICAgICAgICAgICAgICBydGVfY3B1X3RvX2xlXzY0KEk0MEVfVFhfREVTQ19EVFlQ RV9ERVNDX0RPTkUpKSB7DQogICAgICAgICAgICA+IHJldHVybiAwOw0KICAgICAgICAgICAgPiB9 DQogICAgICAgICAgICA+IA0KICAgICAgICAgICAgPiBIZW5jZSBuYl90eF9mcmVlIHJlbWFpbnMg MC4NCiAgICAgICAgICAgID4gDQogICAgICAgICAgICA+IE91ciB0eCBkZXNjcmlwdG9yIGNvdW50 IGlzIDEwMjQuDQogICAgICAgICAgICA+IA0KIC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