From patchwork Fri Dec 20 05:50:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brendan Doyle via dev X-Patchwork-Id: 1213932 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=openvswitch.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ericsson.com header.i=@ericsson.com header.b="OvUWJcK+"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47fJPg0NkSz9sPc for ; Fri, 20 Dec 2019 17:15:02 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id A735B24F97; Fri, 20 Dec 2019 06:14:59 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KliJDIJD5flG; Fri, 20 Dec 2019 06:14:56 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by silver.osuosl.org (Postfix) with ESMTP id BAB5820363; Fri, 20 Dec 2019 06:14:56 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id A4796C1AE8; Fri, 20 Dec 2019 06:14:56 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by lists.linuxfoundation.org (Postfix) with ESMTP id 925D9C1AE8 for ; Fri, 20 Dec 2019 06:14:55 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 8B5BB88155 for ; Fri, 20 Dec 2019 06:14:55 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id i2o0LjEHJXzW for ; Fri, 20 Dec 2019 06:14:53 +0000 (UTC) X-Greylist: delayed 00:14:59 by SQLgrey-1.7.6 Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-eopbgr150047.outbound.protection.outlook.com [40.107.15.47]) by whitealder.osuosl.org (Postfix) with ESMTPS id 6B38388140 for ; Fri, 20 Dec 2019 06:14:53 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aWJQW+YycuWIwSwQ9go5b6rKRpGM76brokknY2Iy9lmvXQ8hLp4PfvDBUgOr7nIuCX4RFo+0TIQNAH6Dhkiz2hy73HUOBC+rAaYYVqPxTSu+SKr6TKOj1qxsuepvqFmd0sYLGc8YM8RCHNm3DYx/+oawzJkik9jVMfKaVuxwkArkOHKBJn/WGRfCeHUh+5zFT17FtIg4qF38kKZeqcuMFuPK7zoCrYmT3VCxQBShzzMIVBfIgZ6DELZNU8tFFkC9Jmt3vFBZAtOb5+a8GIoRDHtwMe4FNgzxvNb/bVg6domPDtxju5jzGt7028cEP6Lj2VDteioK2Bm6As2uRWNJsQ== 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=oMN9wN485kaPcLN64TthzIhOh3o1l4UAQ4jpahPWvFc=; b=V2fhZh4DlQaOelIJY2qI/jet84hJJm6zPQr30IiT9NoHG0ID2ZXdakfoVY4Lacu+q1a+Bu8+XqSpzsL49sWOQuGQENVoG1tTyp9blE5Chknaj/3kUhmPqA2COlgpG8C69FVlI2XXTD9fdRzDaODKe1MvEM8XzqS8L9Vixlk5rAUvpYXMPfi42DEjDM54Dmd3D6n01YujgLgq7YOafqPdpbf9QuGVuJiq6a4PZvDm2nU80X5S4+XrAz2ezeiZWQ2jVFMpuKzafCuPgLzTvE9OdYg0G70r8WecBeWlsQpVDPdjBViIpcrJzX0SBFLkNcOcO/h1oVXk2JWaZTXy/ggRTw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 192.176.1.74) smtp.rcpttodomain=openvswitch.org 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=oMN9wN485kaPcLN64TthzIhOh3o1l4UAQ4jpahPWvFc=; b=OvUWJcK+U4gfOI2pTqpMya1R54z6nCzKJrjZ8U8ft76jBzgoWfma1GP2caDIedBeA1d702ilo2/lnTODBC6/OGIUKP1iFix1Zo9/PlB1AIneHr5ZQS7qLY+ZBngImh+Em/QoK5uCKTs2kTBCc3QWTv0DOzSSt0o8wbtMx4A9r1o= Received: from AM0PR07CA0016.eurprd07.prod.outlook.com (2603:10a6:208:ac::29) by DB7PR07MB5628.eurprd07.prod.outlook.com (2603:10a6:10:73::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2559.12; Fri, 20 Dec 2019 05:59:17 +0000 Received: from HE1EUR02FT050.eop-EUR02.prod.protection.outlook.com (2a01:111:f400:7e05::207) by AM0PR07CA0016.outlook.office365.com (2603:10a6:208:ac::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2581.4 via Frontend Transport; Fri, 20 Dec 2019 05:59:17 +0000 Authentication-Results: spf=pass (sender IP is 192.176.1.74) smtp.mailfrom=ericsson.com; openvswitch.org; dkim=none (message not signed) header.d=none;openvswitch.org; 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 HE1EUR02FT050.mail.protection.outlook.com (10.152.11.209) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.2559.14 via Frontend Transport; Fri, 20 Dec 2019 05:59:17 +0000 Received: from ESESSMB501.ericsson.se (153.88.183.162) by ESESSMR505.ericsson.se (153.88.183.127) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Fri, 20 Dec 2019 06:59:12 +0100 Received: from localhost.localdomain (153.88.183.153) by ESESSMB501.ericsson.se (153.88.183.162) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Fri, 20 Dec 2019 06:59:11 +0100 To: Date: Fri, 20 Dec 2019 11:20:09 +0530 Message-ID: <1576821010-16442-1-git-send-email-vishal.deep.ajmera@ericsson.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-Originating-IP: [153.88.183.153] X-ClientProxiedBy: ESESBMB501.ericsson.se (153.88.183.168) To ESESSMB501.ericsson.se (153.88.183.162) X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:192.176.1.74; IPV:; CTRY:SE; EFV:NLI; SFV:NSPM; SFS:(10009020)(4636009)(376002)(346002)(136003)(396003)(39860400002)(199004)(189003)(26005)(5660300002)(70206006)(2906002)(6916009)(478600001)(186003)(4326008)(7636002)(336012)(356004)(316002)(86362001)(70586007)(966005)(8936002)(36756003)(2616005)(16526019)(54906003)(8676002)(956004)(107886003)(246002); DIR:OUT; SFP:1101; SCL:1; SRVR:DB7PR07MB5628; 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: e5be252a-eb0b-4c6b-65c8-08d78511bf87 X-MS-TrafficTypeDiagnostic: DB7PR07MB5628: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4303; X-Forefront-PRVS: 025796F161 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: GIUeW9VtKFQMkevWyYcToqdhwIBmxpArWCEmxPhp5ZYMqfaPO5WuUtlkPwSP6DZCXmfv0EDYCHS3WgMA2pt0jH8lXomLIX4KTExBXbnDr63GfE+IYiW1EAfDqKiPBRA/DqL1una8JGL1bjgr0/q0xGOvpOYnW8niTZ7ew57ctfjafP/D1OLHzzJG58mm+uLew3QOnyjPprTvBiORMIm+8r+EkC3aDfMVI1eya+uYVaXPfd233LUB5kXt7qPAdyInNkQYGcrj45qbbOVpYgSQQwTOIYuPXzDtPx+wA5wlF6d6O50WFc6Rsj+JacnEHEzGsU9+I8ebcqGeRKPoiwWZYe6nvYtaeA1/FrNarP4bNFY+PeJ6dpY/y7molKYQ/+k/2/Vyj2S2KtvFmtAR81DoB1sy29/HcUncROhSuMvC+WdSFbAVtc46DFT0aGSfduo4oJ3p8R4wqEDdDRjfl1H5UbldDPN5qnzha0uFUrrE51o= X-OriginatorOrg: ericsson.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Dec 2019 05:59:17.0204 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e5be252a-eb0b-4c6b-65c8-08d78511bf87 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: DB7PR07MB5628 Cc: Manohar Krishnappa Chidambaraswamy , i.maximets@ovn.org, david.marchand@redhat.com Subject: [ovs-dev] [PATCH v9 0/1] Balance-tcp bond mode optimization X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Vishal Deep Ajmera via dev From: Brendan Doyle via dev Reply-To: Vishal Deep Ajmera Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" v8->v9: Applied Ben's patch for fixing sparse and type errors. Addressed review comments from Ben. https://mail.openvswitch.org/pipermail/ovs-dev/2019-December/366101.html v7->v8: Removed hash action for balance-tcp mode. Removed bond-only pmd reload action. Rebased to OVS master. v6->v7: Fixed issue reported by Matteo for bond/show. v5->v6: Addressed comments from Ilya Maximets. https://mail.openvswitch.org/pipermail/ovs-dev/2019-August/362001.html Rebased to OVS master. v4->v5: Support for stats per hash bucket. Support for dynamic load balancing. Rebased to OVS Master. v3->v4: Addressed Ilya Maximets comments. https://mail.openvswitch.org/pipermail/ovs-dev/2019-July/360452.html v2->v3: Rebased to OVS master. Fixed git merge issue. v1->v2: Updated datapath action to hash + lb-output. Updated throughput test observations. Rebased to OVS master. Signed-off-by: Manohar Krishnappa Chidambaraswamy Co-authored-by: Manohar Krishnappa Chidambaraswamy Signed-off-by: Vishal Deep Ajmera CC: Jan Scheurich CC: Venkatesan Pradeep Vishal Deep Ajmera (1): Avoid dp_hash recirculation for balance-tcp bond selection mode datapath/linux/compat/include/linux/openvswitch.h | 1 + lib/dpif-netdev.c | 502 ++++++++++++++++++++-- lib/dpif-netlink.c | 3 + lib/dpif-provider.h | 9 + lib/dpif.c | 49 +++ lib/dpif.h | 7 + lib/odp-execute.c | 2 + lib/odp-util.c | 4 + ofproto/bond.c | 56 ++- ofproto/bond.h | 9 + ofproto/ofproto-dpif-ipfix.c | 1 + ofproto/ofproto-dpif-sflow.c | 1 + ofproto/ofproto-dpif-xlate.c | 42 +- ofproto/ofproto-dpif.c | 24 ++ ofproto/ofproto-dpif.h | 8 +- tests/lacp.at | 9 + vswitchd/bridge.c | 6 + vswitchd/vswitch.xml | 23 + 18 files changed, 695 insertions(+), 61 deletions(-)