From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 0FA585B26 for ; Mon, 18 Feb 2019 15:51:37 +0100 (CET) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x1IEp4gf028606; Mon, 18 Feb 2019 06:51:37 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pfpt0818; bh=TB7kVPvKoD/2Vstpso32it3Aq8FIs90q94ewQn0R0Os=; b=Lv8HRgCBp53p3DfSVuTx3JAEX0jAwHfQQzDDYfL/FRTcaMWMut7WeEZcLVxZJD9T0Bo/ z3Bm1WPwh/vbqszNAwr0OIQ8irKDhJ2U1ZI3rD6zP2rLf1y0pAt6u7H4zmC9w59/NH2m /X5h5E8095Iw6HAk8ZTon4CcMjbWwk+QTSiO3zKQN0G6tHU37dXpa4/ewpxjpHaxSanx fvxxlycapswGscqFCI42Xav2XcwXuKRXD9tec8fq5ESj+KcrgqpbNDLiJze+r8WGoRe0 xYKuuswf4RuSK4pCfuNRzUYUzQ6cGLrv2CHDFg7JEOKVoWun3w1/xlpAD0By57WlFAv0 Jw== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0a-0016f401.pphosted.com with ESMTP id 2qqvcpgfrh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 18 Feb 2019 06:51:37 -0800 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Mon, 18 Feb 2019 06:51:36 -0800 Received: from NAM01-SN1-obe.outbound.protection.outlook.com (104.47.32.57) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Mon, 18 Feb 2019 06:51:36 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TB7kVPvKoD/2Vstpso32it3Aq8FIs90q94ewQn0R0Os=; b=vQ4h5bsazEReTQr2g1YNjwlufXzG7w9iNHPJ0pwevCv+OkBaf4Yu2NBQeBppQOOZSxuFr8NBhpkQyAA8VuO4N48tXxxA59y6k3uVCRq3Zc9Ke3IBe5T6lOoM7ijTVu0JgnKaAdGnaAkaWYjmvMlEhQDH5jPDqgMTtFPkzo1eF74= Received: from BL0PR18MB2226.namprd18.prod.outlook.com (52.132.29.158) by BL0PR18MB2196.namprd18.prod.outlook.com (52.132.29.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1622.16; Mon, 18 Feb 2019 14:51:33 +0000 Received: from BL0PR18MB2226.namprd18.prod.outlook.com ([fe80::ed6d:c09a:3de9:f242]) by BL0PR18MB2226.namprd18.prod.outlook.com ([fe80::ed6d:c09a:3de9:f242%5]) with mapi id 15.20.1622.018; Mon, 18 Feb 2019 14:51:33 +0000 From: Harman Kalra To: "david.hunt@intel.com" , "ferruh.yigit@linux.intel.com" CC: "dev@dpdk.org" , Jerin Jacob Kollanukkaran , Harman Kalra Thread-Topic: [PATCH v2 1/2] test/distributor: flush with worker shutdown test fails Thread-Index: AQHUx5lwSuFsCZyMqUKnX7C7MTKhhA== Date: Mon, 18 Feb 2019 14:51:33 +0000 Message-ID: <1550501471-4196-1-git-send-email-hkalra@marvell.com> References: <51f4c084-077c-0417-e242-c45d9ea4ffa2@linux.intel.com> In-Reply-To: <51f4c084-077c-0417-e242-c45d9ea4ffa2@linux.intel.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BMXPR01CA0041.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:c::27) To BL0PR18MB2226.namprd18.prod.outlook.com (2603:10b6:207:42::30) x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.7.4 x-originating-ip: [115.113.156.2] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 188aea14-d564-4895-87f5-08d695b092e6 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600110)(711020)(4605104)(2017052603328)(7153060)(7193020); SRVR:BL0PR18MB2196; x-ms-traffictypediagnostic: BL0PR18MB2196: x-microsoft-exchange-diagnostics: 1; BL0PR18MB2196; 20:QPfWZrKehlA0Y0hKmdVpeQdIrcuK2awIqB0XrIKIOBLphalW58Q/GvtHsWRqf6kO2xBQ2e59+IY1RP/HfqCqgsoNGyGGEm48yuHa4NKX/F6RT/bYWdK7m3Ch12DILwFx7GuM5TP+1cjM+HiY08XEulupZwBVsDyRTWIkgV/rXT4= x-microsoft-antispam-prvs: x-forefront-prvs: 09525C61DB x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(346002)(396003)(136003)(366004)(39850400004)(199004)(189003)(53936002)(486006)(102836004)(305945005)(66066001)(476003)(55236004)(107886003)(97736004)(6506007)(386003)(8936002)(316002)(478600001)(3846002)(6116002)(26005)(105586002)(50226002)(2501003)(446003)(8676002)(81166006)(81156014)(52116002)(99286004)(76176011)(86362001)(11346002)(14454004)(7736002)(2616005)(110136005)(54906003)(106356001)(186003)(2906002)(4326008)(5660300002)(6512007)(6436002)(6486002)(36756003)(68736007)(71190400001)(71200400001)(14444005)(4744005)(256004)(25786009); DIR:OUT; SFP:1101; SCL:1; SRVR:BL0PR18MB2196; H:BL0PR18MB2226.namprd18.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: marvell.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: TOoB5UubA0lJaiIbHmZbzen/0iR8IxVaUwknLSxFuW26zbu/7xtkWm2cx++qOTm2+ugfoP35qmgMGJ00YqZVls1LNi/5gSFu8VnUa9sugnMqoFMuvw+Yr0L5WZ6O+B/DPomnQpxQB1Syn0jptZnI5jKRbsGfH3CNjBOS1lUxbavsjkBcCT9RIwPoLdRgkbDLAcnSDX8s+nDVcp5MdasvSoZHMoGGp4+rELdGF7/pdkftYtkwnv0uAgHPad6zekTs4IQK/oT0aPBhdVPFsoR6Su3dnqWjF9iaZH25ficlzezn2cI7+aqZoIqlWM9+t0pvRaKv09G6s00YByXjLAjJceA7inPCakXJgYuYkORugqWlPekos+mEstdIpX5cardKBw+WYBlmgLkxmPYi3XlQtBbt5aBY3iiSRNQOaZJnOIA= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 188aea14-d564-4895-87f5-08d695b092e6 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Feb 2019 14:51:31.5547 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR18MB2196 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-02-18_11:, , signatures=0 X-Proofpoint-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=884 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1902180111 Subject: [dpdk-dev] [PATCH v2 1/2] test/distributor: flush with worker shutdown test fails 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: Mon, 18 Feb 2019 14:51:38 -0000 On restarting worker 0 after shutdown, packets handled by worker 0 must be incremented only when a packet is received by it. Signed-off-by: Harman Kalra --- test/test/test_distributor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test/test_distributor.c b/test/test/test_distributor.c index 98919ec0c..a723254f7 100644 --- a/test/test/test_distributor.c +++ b/test/test/test_distributor.c @@ -373,7 +373,8 @@ handle_work_for_shutdown_test(void *arg) id, buf, buf, num); =20 while (!quit) { - worker_stats[id].handled_packets++, count++; + worker_stats[id].handled_packets +=3D num; + count +=3D num; rte_pktmbuf_free(pkt); num =3D rte_distributor_get_pkt(d, id, buf, buf, num); } --=20 2.18.0