Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4646526imm; Mon, 14 May 2018 10:29:17 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoT7X09vJlBbYXzm7n3EPBcutQjHLCKigZgQIgDNlAbj4TwEQUvD2AtOj59VWw4VcQh7XRA X-Received: by 2002:a65:4d8a:: with SMTP id p10-v6mr9215222pgq.21.1526318957531; Mon, 14 May 2018 10:29:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526318957; cv=none; d=google.com; s=arc-20160816; b=kgz5xUfV3lyBmaVk3A6lPdAX+2WZpqVlEE2G71p+WEz42RNZDKjoekMj5/08D/kEjz HoD+pm3GW/9mYhw3rbIXWFCscuKi7GtbeND08cFi25tVwOu7wrgPtfQ6+o2UO9kOqO18 ldWooBFD/Rp09NLoeBEPyucP3ICq1+5X7pH/AiNR9erXeNa9gYi5jMd4WzZEC++0/T4s cIN8l5B6izVncw93xtpLin3iWtdx/wibAT3Z2ncy6NH9ue+U2g7t6HUOIzqMXKT/NEds OxJLaxNtcFU3TtgSuEzqMxEmj0yvr3EIIYlhywc8IDaCX0ZZ6izJ3kYwvyxZDFL+UUvW KodQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=hUTxTU5ZweO9gzYQS8YF2MwCEYS/RggC2VQ/wMFwjhI=; b=ZMDcfVKqnMhyxlozu93+OxXcRcZz/LWKnMpD543ia/wgUfVxypKCOp0LcRRLMQBFp8 3bznvW73gX+NtSXpm+VuF6ieZyxXJp4nmkASctGzUDx1U8FaCgOpJMuzmshaE5Fl5tcq yE4Vt8C+bWbaR+NwWiZO5vHnXmLEKdl1a4R9frh/vZy8qkqhH8Pg0TEpsVKEx2Ye2O0b p6BVKvOZGmegw7uk5WOtHnG2u+BjE7HocQBPZpewtyjSqs/eje0mXOKYnQj1J7tNb8rw XS5TNGqblN3ein+xFMGMqKfWdG0K53zaV5iR5tuF5cTH+tWvOd9y9+VcOVWKJmQl1dxL Zuvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@resnulli-us.20150623.gappssmtp.com header.s=20150623 header.b=q+9Vtn05; 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 e5-v6si7800500pgn.339.2018.05.14.10.29.03; Mon, 14 May 2018 10:29:17 -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=@resnulli-us.20150623.gappssmtp.com header.s=20150623 header.b=q+9Vtn05; 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 S1755076AbeENQat (ORCPT + 99 others); Mon, 14 May 2018 12:30:49 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:45708 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753661AbeENQaq (ORCPT ); Mon, 14 May 2018 12:30:46 -0400 Received: by mail-wr0-f195.google.com with SMTP id p5-v6so13007211wre.12 for ; Mon, 14 May 2018 09:30:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=hUTxTU5ZweO9gzYQS8YF2MwCEYS/RggC2VQ/wMFwjhI=; b=q+9Vtn05LDzO79nz1fe9Z0dkErEBJsJFOEeP/vtnrtAEM38IYho4ciCBxi4UYEWmsB Pq6vBEJnrgowXUAHhwlqefTAPhBFovthcmWyxrpX8XJVzx9CXyApHB+89weXPMc7hkSN 7QhjvftkHjIRuhs40tgJo800gj9PGcFn7XQQu03JvG1gWkTXlgUv3h1sS4s1LW5rvIHt 3jHDlo97BPLPW87xFHJPyTHF0NYKqz2IlWZ1r7PCFWiB9aJbG+aN8ue7ZMcRkCMDrIRi nYpdwntcp610wnOIxDfrJC67YRh4iRjoA1IkA2XGOwnsIGtII4YucQbtbtlU1GpmKgke 4ARg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=hUTxTU5ZweO9gzYQS8YF2MwCEYS/RggC2VQ/wMFwjhI=; b=AlBgWAIudqZOLU9KY/apwP+f7iklLUez6yaIzcKAt5niAux/xKQi/enAQJ3ONk751j x1v7Df8w413rt8gvfoOXeQExoJG6Sj52dRcQunVuPWSH697lgLn8W8KrvTUzyyfA+xEz tClAYhhJP1JeN/WERsbuoyc2+nWFfWqD0lavkAMpzUHeYGJ215B0yPdBnPIoOKZg4QAR BsS6KyjtnZU09gxXZ5T2QcvPPVSrwLkvuZCu0FX2zgiUf0Sqov8HIOZ35fIWfItep0eV 8VzGr70UpfrjcjZTas/jbTOSTdVrjgc4NFPFaMc5b+MR8NGiYEgWn+x1tPhMPZElwNPr 4/yA== X-Gm-Message-State: ALKqPwecFEaeWJc69UiYgPa+Z6ULDhmZHHObJ62xrj5oyVqr0+P+bpfh zG7q+eYu8LST9fH4Dx5WGQ73XA== X-Received: by 2002:adf:a38b:: with SMTP id l11-v6mr7180190wrb.208.1526315445380; Mon, 14 May 2018 09:30:45 -0700 (PDT) Received: from localhost (jirka.pirko.cz. [84.16.102.26]) by smtp.gmail.com with ESMTPSA id z192-v6sm10453334wmc.10.2018.05.14.09.30.44 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 May 2018 09:30:45 -0700 (PDT) Date: Mon, 14 May 2018 18:30:44 +0200 From: Jiri Pirko To: Vlad Buslov Cc: netdev@vger.kernel.org, davem@davemloft.net, jhs@mojatatu.com, 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 03/14] net: sched: add 'delete' function to action ops Message-ID: <20180514163044.GE2134@nanopsycho.orion> References: <1526308035-12484-1-git-send-email-vladbu@mellanox.com> <1526308035-12484-4-git-send-email-vladbu@mellanox.com> <20180514151222.GC1848@nanopsycho> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180514151222.GC1848@nanopsycho> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Mon, May 14, 2018 at 05:12:22PM CEST, jiri@resnulli.us wrote: >Mon, May 14, 2018 at 04:27:04PM CEST, vladbu@mellanox.com wrote: >>Extend action ops with 'delete' function. Each action type to implement its >>own delete function that doesn't depend on rtnl lock. >> >>Signed-off-by: Vlad Buslov >>--- >> include/net/act_api.h | 1 + >> 1 file changed, 1 insertion(+) >> >>diff --git a/include/net/act_api.h b/include/net/act_api.h >>index e634014..73175a3 100644 >>--- a/include/net/act_api.h >>+++ b/include/net/act_api.h >>@@ -100,6 +100,7 @@ struct tc_action_ops { >> void (*stats_update)(struct tc_action *, u64, u32, u64); >> size_t (*get_fill_size)(const struct tc_action *act); >> struct net_device *(*get_dev)(const struct tc_action *a); >>+ int (*delete)(struct net *net, u32 index); > >Probably better to squash this to patch 14. Oh, I see you call it in patch 6. Fine.