From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752552AbeEOIUt (ORCPT ); Tue, 15 May 2018 04:20:49 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:55253 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752228AbeEOIUq (ORCPT ); Tue, 15 May 2018 04:20:46 -0400 X-Google-Smtp-Source: AB8JxZou4Yg4U95XM0wgYsVapGrFOIcyQ2gRLJBX+u4/hrLFL4lIz3EZ2PNPVNi4JTOi5vtAKlOKnQ== Date: Tue, 15 May 2018 10:20:43 +0200 From: Jiri Pirko To: Jamal Hadi Salim Cc: Vlad Buslov , netdev@vger.kernel.org, davem@davemloft.net, xiyou.wangcong@gmail.com, 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 Subject: Re: [PATCH 00/14] Modify action API for implementing lockless actions Message-ID: <20180515082043.GH2134@nanopsycho.orion> References: <1526308035-12484-1-git-send-email-vladbu@mellanox.com> <23f37e5a-dd30-0ad3-a5ab-df22bf0ad7f9@mojatatu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <23f37e5a-dd30-0ad3-a5ab-df22bf0ad7f9@mojatatu.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Mon, May 14, 2018 at 08:03:20PM CEST, jhs@mojatatu.com wrote: >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. Oh, that reminds me. Vlad, please run also: tools/testing/selftests/net/forwarding/tc_* Thanks!