From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id D8DEB56A9 for ; Thu, 15 Sep 2016 16:34:00 +0200 (CEST) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga104.fm.intel.com with ESMTP; 15 Sep 2016 07:34:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,339,1470726000"; d="scan'208";a="1040438137" Received: from irsmsx105.ger.corp.intel.com ([163.33.3.28]) by fmsmga001.fm.intel.com with ESMTP; 15 Sep 2016 07:33:59 -0700 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.167]) by irsmsx105.ger.corp.intel.com ([169.254.7.17]) with mapi id 14.03.0248.002; Thu, 15 Sep 2016 15:33:58 +0100 From: "Dumitrescu, Cristian" To: Hiroyuki Mikita CC: "dev@dpdk.org" Thread-Topic: [PATCH v2] sched: fix releasing enqueued packets Thread-Index: AQHSB4hafd8A9Do670+l0kwH9sHRFKB6rOlA Date: Thu, 15 Sep 2016 14:33:57 +0000 Message-ID: <3EB4FA525960D640B5BDFFD6A3D8912647A74CC9@IRSMSX108.ger.corp.intel.com> References: <1472699482-1747-1-git-send-email-h.mikita89@gmail.com> <1473088514-31836-1-git-send-email-h.mikita89@gmail.com> In-Reply-To: <1473088514-31836-1-git-send-email-h.mikita89@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMWI0MTY4NDgtOTg0MC00ZmY4LTg1NDAtNzUzZTJiOTI2NWJhIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6Incwb0F6USttemwxV1dvc2RSN1M1UDFMTHNMRUNXc0FyQnBJXC9WY3h1TTY4PSJ9 x-ctpclassification: CTP_IC x-originating-ip: [163.33.239.182] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v2] sched: fix releasing enqueued packets 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: Thu, 15 Sep 2016 14:34:01 -0000 > -----Original Message----- > From: Hiroyuki Mikita [mailto:h.mikita89@gmail.com] > Sent: Monday, September 5, 2016 4:15 PM > To: Dumitrescu, Cristian > Cc: dev@dpdk.org > Subject: [PATCH v2] sched: fix releasing enqueued packets >=20 > rte_sched_port_free should release only enqueued packets of all queues. > Previous behavior is that enqueued and already dequeued packets of > only first 4 queues are released. >=20 > Fixes: 61383240 ("sched: release enqueued mbufs when freeing port") >=20 > Signed-off-by: Hiroyuki Mikita > --- > v2: > * use rte_sched_port_queues_per_port to get the number of queues > * mask incremented qr by qsize - 1 >=20 > lib/librte_sched/rte_sched.c | 18 +++++++++++------- > 1 file changed, 11 insertions(+), 7 deletions(-) >=20 > diff --git a/lib/librte_sched/rte_sched.c b/lib/librte_sched/rte_sched.c > index 8696423..e6dace2 100644 > --- a/lib/librte_sched/rte_sched.c > +++ b/lib/librte_sched/rte_sched.c Acked-by: Cristian Dumitrescu Thank you!