From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 48BD9A052E; Mon, 9 Mar 2020 07:51:50 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 99FB01BFF3; Mon, 9 Mar 2020 07:51:49 +0100 (CET) Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2082.outbound.protection.outlook.com [40.107.21.82]) by dpdk.org (Postfix) with ESMTP id 6262A1BFF6 for ; Mon, 9 Mar 2020 07:51:47 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZI43zo23YO8yIUv3cEeNbhAa8W8wBilExxxSs50Fk/z5trZXu9C+z+rqzipVwjvd4VRTmUX9Orfn/6QbKpHPzEStzpiUZfXTv2Zsx6Gt633fSNLT1fmLxpQS8tz0jMS5RalCLxjsh54kZ3MxDeZuSebJl2O7AKxm9dHBl07evfSUsbqqQ5KgzGuiDTA7u6MXjMyReer5EjUS9OnrCWtVmAr2+mCIJXbJp7TsnstIYd4I2BBHczgIfAr3JpFLtdjAEurOnAbr0pK/f1JsK8xTeOJsq9EEInCjldZ9cQqWQ3MY9WN+L46aMZHTMk4ZLRELlB435wcroFn7On9IlccgrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=p7DGPeKoaad100b7MBlkuD0DMlHlH5UJYahOBhVzRo0=; b=MbvORM1z306EBFcDjhACvkivfzw+5kf2r8FfVidGsIVRaJb+/jkbVcEKniciC8Po2sMdHzwFze5MchUDmSv+nJSwbqhoTkiK6400kKZrJaDZProtlQyFrdLODlayfRL9XOlq9YP025xxZ5l4I6fQYCw7VvHT1ox/bMZ2aI51PhnEoApYMTQrvAFdxI1yefPiJTHC6Z9wUWROHdUPxZpQXWV6iIvdwZtX9Efj5wF1hPAkx/3x46DoN1vU5hEzEyFWtguxe21ny/niYyVgFMdCuIrLEpgf6b94g5r1DskAdZXe/7ucYnmJowdUy0kIjpJYicdNMg89XNEJIL+PBN5RvQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 192.176.1.74) smtp.rcpttodomain=arm.com smtp.mailfrom=ericsson.com; dmarc=pass (p=reject sp=none pct=100) action=none header.from=ericsson.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=p7DGPeKoaad100b7MBlkuD0DMlHlH5UJYahOBhVzRo0=; b=tR3IeGyEllWBZGlk6viPGEXLnm73BOote/sB/UHJvTOY/sYmvP0TJJSI7j6/vSQHTfL762U5aCScwFFWnyfZtjaDsjMV7UKxGOzARLaXRP85MKv5zGowbPfEESWTmkCFtf8objkPj6t0CAk0n0EFos5GjoBb6ocq5tjpzWxlNOs= Received: from AM0PR06CA0006.eurprd06.prod.outlook.com (2603:10a6:208:ab::19) by DB6PR0701MB2455.eurprd07.prod.outlook.com (2603:10a6:4:61::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2814.11; Mon, 9 Mar 2020 06:51:46 +0000 Received: from AM5EUR02FT038.eop-EUR02.prod.protection.outlook.com (2603:10a6:208:ab:cafe::9b) by AM0PR06CA0006.outlook.office365.com (2603:10a6:208:ab::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2793.16 via Frontend Transport; Mon, 9 Mar 2020 06:51:46 +0000 Authentication-Results: spf=pass (sender IP is 192.176.1.74) smtp.mailfrom=ericsson.com; arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=pass action=none header.from=ericsson.com; Received-SPF: Pass (protection.outlook.com: domain of ericsson.com designates 192.176.1.74 as permitted sender) receiver=protection.outlook.com; client-ip=192.176.1.74; helo=oa.msg.ericsson.com; Received: from oa.msg.ericsson.com (192.176.1.74) by AM5EUR02FT038.mail.protection.outlook.com (10.152.9.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.2793.11 via Frontend Transport; Mon, 9 Mar 2020 06:51:44 +0000 Received: from ESESBMB504.ericsson.se (153.88.183.171) by ESESSMR504.ericsson.se (153.88.183.126) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Mon, 9 Mar 2020 07:51:44 +0100 Received: from ESESSMB502.ericsson.se (153.88.183.163) by ESESBMB504.ericsson.se (153.88.183.171) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Mon, 9 Mar 2020 07:51:43 +0100 Received: from selio1a020.lmera.ericsson.se (153.88.183.153) by smtp.internal.ericsson.com (153.88.183.190) with Microsoft SMTP Server id 15.1.1713.5 via Frontend Transport; Mon, 9 Mar 2020 07:51:43 +0100 Received: from breslau.lmera.ericsson.se (breslau.lmera.ericsson.se [150.132.109.241]) by selio1a020.lmera.ericsson.se (8.15.1+Sun/8.15.1) with ESMTP id 0296pgIQ024126; Mon, 9 Mar 2020 07:51:43 +0100 (CET) From: =?UTF-8?q?Mattias=20R=C3=B6nnblom?= To: CC: , , , =?UTF-8?q?Mattias=20R=C3=B6nnblom?= Date: Mon, 9 Mar 2020 07:51:04 +0100 Message-ID: <20200309065106.23800-7-mattias.ronnblom@ericsson.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200309065106.23800-1-mattias.ronnblom@ericsson.com> References: <20200309065106.23800-1-mattias.ronnblom@ericsson.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:192.176.1.74; IPV:; CTRY:SE; EFV:NLI; SFV:NSPM; SFS:(10009020)(4636009)(376002)(396003)(346002)(136003)(39860400002)(199004)(189003)(316002)(1076003)(107886003)(246002)(26005)(956004)(2616005)(54906003)(186003)(4744005)(86362001)(6666004)(8936002)(5660300002)(36756003)(7636002)(8676002)(478600001)(70206006)(70586007)(356004)(336012)(2906002)(6916009)(4326008); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR0701MB2455; H:oa.msg.ericsson.com; FPR:; SPF:Pass; LANG:en; PTR:office365.se.ericsson.net; A:1; MX:1; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 66989b1c-5135-4cea-6f95-08d7c3f65550 X-MS-TrafficTypeDiagnostic: DB6PR0701MB2455: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3276; X-Forefront-PRVS: 0337AFFE9A X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: E/pfomC7JTOr1jh66gc18rmN1qkpc9Y3ggY6VLsm1EvDyvsCOYNQKbRPh6HEMD764GPRZU1jrxwqFGusNitE//W5N6H+0V+p40HEhoLuSD3DuGF/mSxJt+qdtpzAMuk2U931NCut1lTiraFBHng3BJq5JzWBPr4hgkO6TXri2riIo5lLC3S4cLhbd6zcRnX8R6ToU/xBsnd+o6iweSPcUNQKSCYdPm2EeB8CIHoDuXGhn+KqmcIhd7ST7tZf126GNUzxgWZpQtr7SjhmbzvMxgeSa4txa6R/ili+jVybR5gNrPIQVhz9nDKh8/zIIjPDyadwW9X5/p5SI4xl816yYpMpFP8pai2SVvGBOdfp30bNVvMR/r7NqobDUigrdCnhLeosCohlQEoIE6VU8aLAWc+ifVjFySn/seCdHGvxOkr01y1Fi5PvGsPwybA3acSJ X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Mar 2020 06:51:44.4220 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 66989b1c-5135-4cea-6f95-08d7c3f65550 X-MS-Exchange-CrossTenant-Id: 92e84ceb-fbfd-47ab-be52-080c6b87953f X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=92e84ceb-fbfd-47ab-be52-080c6b87953f; Ip=[192.176.1.74]; Helo=[oa.msg.ericsson.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0701MB2455 Subject: [dpdk-dev] [PATCH 6/8] event/dsw: remove redundant control ring poll 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On dequeue, polling the control ring once is enough. Fixes: f6257b22e767 ("event/dsw: add load balancing") Suggested-by: Ola Liljedahl Signed-off-by: Mattias Rönnblom --- drivers/event/dsw/dsw_event.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/event/dsw/dsw_event.c b/drivers/event/dsw/dsw_event.c index f87656703..bb06df803 100644 --- a/drivers/event/dsw/dsw_event.c +++ b/drivers/event/dsw/dsw_event.c @@ -1331,11 +1331,6 @@ static uint16_t dsw_port_dequeue_burst(struct dsw_port *port, struct rte_event *events, uint16_t num) { - struct dsw_port *source_port = port; - struct dsw_evdev *dsw = source_port->dsw; - - dsw_port_ctl_process(dsw, source_port); - if (unlikely(port->in_buffer_len > 0)) { uint16_t dequeued = RTE_MIN(num, port->in_buffer_len); -- 2.17.1