Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4679790imm; Mon, 14 May 2018 11:03:56 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqP09so6lt5aiE9Oy5Acws55eO6NQnXaW9g4uTt+cHjRSUaKHm2BFD4+6lLxxl9rELrZV0+ X-Received: by 2002:a17:902:1566:: with SMTP id b35-v6mr11010386plh.107.1526321036624; Mon, 14 May 2018 11:03:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526321036; cv=none; d=google.com; s=arc-20160816; b=FLMRZLjVtLqjeb2QkFp31SXm/AF7KRPpIgocLchLXnqOUs7/xyLTZAToLDy60UuRD4 dEzn5A+iVKICpHO67Ki5gQlHrvQKvKEeMFVCzEy/ACAbEO+e3VVNQ3mTlLmH3ChP+olx ZMRSyznaq7VDl6+HNwlQXXKz4j7Qfl0NuMwsP6nnrscebBBE1sjeDLBxggGbaAiRZiXH +NSWBEqEpUJ41wZ7O4dOotRFKnv8pn/GwHXcOlICkTBVolFrxbM86CveCPMBzirElwXa smwPmoEK8LrEnLpv7eVJffMWs7vbLiOMAdwIfYMJd4Zlr5Q6Mv4WEyHwcPfo+vniyqGB bFqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=DeDIrY5n++cpkndrAX/e5HNsZiaAkfhHpkVrNJurk6E=; b=Xo2MpEGaBy83zNjNFH6ZQmoEAakTnmE+1HzNv/suHPL+dluCRJFHauDy/1zHjKbo5x 2fjs+j07ICYXAuH3frOG8JyB6NGvd5P+e11PpUkald84M+cjtdU+gR3DXeE1sblzN2tx a2vQY9Vo9H7tXKMG3Ao5pCxOZ6L638uS7JFYNwCdJCxOrUJe0MMr32thKfYGjmtbNyVg i5x7Rq19SpyxXLR2GE7hX4Sy7NMLxLg+9kegCFRM8sfSu5qU0q6RX7PFQVqgRQ1GKSu7 /0WG47D6WJOL4MJecRt2Wh5y9Zw3GWFbDuMjMHoKh2E+aL+fZg1sqhq+5kdIu0TCNwSH YWlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mojatatu-com.20150623.gappssmtp.com header.s=20150623 header.b=USJAm5oY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id az5-v6si10018731plb.369.2018.05.14.11.03.42; Mon, 14 May 2018 11:03:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@mojatatu-com.20150623.gappssmtp.com header.s=20150623 header.b=USJAm5oY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752018AbeENSDZ (ORCPT + 99 others); Mon, 14 May 2018 14:03:25 -0400 Received: from mail-it0-f65.google.com ([209.85.214.65]:55723 "EHLO mail-it0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751402AbeENSDX (ORCPT ); Mon, 14 May 2018 14:03:23 -0400 Received: by mail-it0-f65.google.com with SMTP id 144-v6so12482896iti.5 for ; Mon, 14 May 2018 11:03:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mojatatu-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=DeDIrY5n++cpkndrAX/e5HNsZiaAkfhHpkVrNJurk6E=; b=USJAm5oYb31fTwolUQjTpzHE463GdvWZ8XYINAUnryaJvmV19w0DVk0NKgLknL7kQP yvRL7z0bTNuR9YCrxCTDX32W5vSZX10zwXCsXd9FeX8TK5pmFDctkV87A+RCFHpN7loh oXU2PDAhXmlqhwgO5zWFu5AC4POK3HOuOd508iOoXTf591VvTlr7B0LVdMwIqh88tEcj ijcZnqqQBMLU5HwHS2Co4HTlgEg9TA14DWChJzkwGjM2DHBFCZmFDypZnRUtkdQcsQTY 9k+QdskBNjSHRmo5HSnUt7KU8C/n69/R9O8HiWBDdGGb4xXIXiGSrG/znzXH3cM85eOA Mzjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=DeDIrY5n++cpkndrAX/e5HNsZiaAkfhHpkVrNJurk6E=; b=lpqtBK6h9kK5Q3StggSIFu4r+kdKqYQbr1CI1UZOlrSPpFYGDrCwZpzx5en+fWWQQd XowP1cKboZfUY3tJJNdHpAmx70vmYSOyXaQ+EjQozQolAAIqK9rqtQ7/QfauPFO3KmCv vRf1XZcqTLNVtoI8xmkilGXhj3MovzhinrImA0gRb9HzAsX9Esq9QSijuZyjvo+ZoR7L uPuTLhW3w7sCj44A0mxb26QRPyhJ6s+1yAptoSs0TrOFd2tLd86GXmS6xY/b72zCfOEz uKjmy2b5W+94Xud4GMDLBSzHIewJIK7EwxDHfKTkmZ7AvdeO8S4YdJVwpZc5f8/qXw9l DtIA== X-Gm-Message-State: ALKqPwfg3UUHGMbqvVypi18IZBreJggjThvXj4ugLFiJJSnArX87jlcu CRRaXSlIsWKYZdEZ8yxXy6y5Uw== X-Received: by 2002:a6b:d90e:: with SMTP id r14-v6mr12194756ioc.240.1526321002417; Mon, 14 May 2018 11:03:22 -0700 (PDT) Received: from [10.0.0.151] ([64.26.149.125]) by smtp.googlemail.com with ESMTPSA id m14-v6sm4327504iti.36.2018.05.14.11.03.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 May 2018 11:03:21 -0700 (PDT) Subject: Re: [PATCH 00/14] Modify action API for implementing lockless actions To: Vlad Buslov , netdev@vger.kernel.org Cc: davem@davemloft.net, xiyou.wangcong@gmail.com, jiri@resnulli.us, pablo@netfilter.org, kadlec@blackhole.kfki.hu, fw@strlen.de, ast@kernel.org, daniel@iogearbox.net, edumazet@google.com, keescook@chromium.org, linux-kernel@vger.kernel.org, netfilter-devel@vger.kernel.org, coreteam@netfilter.org, kliteyn@mellanox.com References: <1526308035-12484-1-git-send-email-vladbu@mellanox.com> From: Jamal Hadi Salim Message-ID: <23f37e5a-dd30-0ad3-a5ab-df22bf0ad7f9@mojatatu.com> Date: Mon, 14 May 2018 14:03:20 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <1526308035-12484-1-git-send-email-vladbu@mellanox.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 14/05/18 10:27 AM, Vlad Buslov wrote: > Currently, all netlink protocol handlers for updating rules, actions and > qdiscs are protected with single global rtnl lock which removes any > possibility for parallelism. This patch set is a first step to remove > rtnl lock dependency from TC rules update path. It updates act API to > use atomic operations, rcu and spinlocks for fine-grained locking. It > also extend API with functions that are needed to update existing > actions for parallel execution. > > Outline of changes: > - Change tc action to use atomic reference and bind counters, rcu > mechanism for cookie update. > - Extend action ops API with 'delete' function and 'unlocked' flag. > - Change action API to work with actions in lockless manner based on > primitives implemented in previous patches. > - Extend action API with new functions necessary to implement unlocked > actions. Please run all the tdc tests with these changes. This area has almost good test coverage at this point. If you need help just ping me. cheers, jamal