From patchwork Sat Jan 20 01:44:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Kicinski X-Patchwork-Id: 863897 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=netronome-com.20150623.gappssmtp.com header.i=@netronome-com.20150623.gappssmtp.com header.b="ZCg9HvUK"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3zNgWQ17GJz9t3k for ; Sat, 20 Jan 2018 12:45:38 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756286AbeATBpa (ORCPT ); Fri, 19 Jan 2018 20:45:30 -0500 Received: from mail-pg0-f66.google.com ([74.125.83.66]:38132 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756103AbeATBpY (ORCPT ); Fri, 19 Jan 2018 20:45:24 -0500 Received: by mail-pg0-f66.google.com with SMTP id y27so2719570pgc.5 for ; Fri, 19 Jan 2018 17:45:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netronome-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=kxx5EobHMAFq+uanW1Perfof1+ttqb4lgZaFzp2pzjk=; b=ZCg9HvUK+9+JA3GvEtr9jQ2lpkz8236bmfVO1cXWTaeGBFGvxLlG18lniSF3Pyte6o 9OYZh4aXR7cHy6jt+nqk3owx1MHjXf6axwgxKZUoS+X0/qe9elJSS6ijDfeT7x/UblBv x3ojp61DpyEx7JuI3+h56TySkKvszjSUO7XvBrUq/b8JfxKttiJdAZz3c/JLxJbGkTym dB9PO/SyVXPHSn55J+RAW/7lDYxwKukzTty0fZHJJJEvxmU3F3ZgBC71feT+4DF1IUH2 vLLvO+JEBvQ55qjyVQlq74ngp8ElDLn245Fnd/lXyJKLXNR0sAnwJGMaEsueul9q7xTb zsbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=kxx5EobHMAFq+uanW1Perfof1+ttqb4lgZaFzp2pzjk=; b=Zn/Hvd+MzPqKv5POiJHqAtpJM/4lso1Z4q6BBbEckXJs4VAn/1Hq5/OxxEzmyoWhcn 4HA6Dc8/bD6pKD1k80uZsGwNIKnleUYuvpZM66oZ6bvi4moB7+deHWziGCYZDyRzJiGi izjdVUbhVtG4V3ZwPmXITZtlerloU8RsokT3yLm6YTfZAMGN/bKOMXVaPhbwrQzkpK3A frIt6mDPYjd+f3DAmfn5Ehw5jC5XQ67iFXQ0Z0+7/eJXRz3D2NczttYtrLyc16Dn26P7 DlA5DJJJsnAwQvlX+TfjkzMWKgF3oUFtKD8WLFyqTb2Asc3h0vr3SnQLpOjEpKtg5Lyv gVUw== X-Gm-Message-State: AKwxytcIcykA0RsH8oQIhq54/O9nCleN8ilY5iSEjC/Hancb8qgcP8bx m+dXzHoJzwcJw3lSvlsG2xoUDA== X-Google-Smtp-Source: AH8x225mUq6nrX/v7nOhif98Vv9VwR38NsVa6WLH31cQUneVPAf33d0V1Y8WV/h511VACX5o8UN+Uw== X-Received: by 10.101.66.193 with SMTP id l1mr424241pgp.17.1516412723753; Fri, 19 Jan 2018 17:45:23 -0800 (PST) Received: from jkicinski-Precision-T1700.netronome.com ([75.53.12.129]) by smtp.gmail.com with ESMTPSA id 206sm18886461pfy.71.2018.01.19.17.45.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 19 Jan 2018 17:45:23 -0800 (PST) From: Jakub Kicinski To: davem@davemloft.net, dsahern@gmail.com Cc: jiri@resnulli.us, aring@mojatatu.com, daniel@iogearbox.net, alexei.starovoitov@gmail.com, netdev@vger.kernel.org, oss-drivers@netronome.com, Quentin Monnet Subject: [PATCH net-next v4 2/8] net: sched: cls_matchall: propagate extack support for filter offload Date: Fri, 19 Jan 2018 17:44:44 -0800 Message-Id: <20180120014450.29666-3-jakub.kicinski@netronome.com> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180120014450.29666-1-jakub.kicinski@netronome.com> References: <20180120014450.29666-1-jakub.kicinski@netronome.com> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Quentin Monnet Propagate the extack pointer from the `->change()` classifier operation to the function used for filter replacement in cls_matchall. This makes it possible to use netlink extack messages in the future at replacement time for this filter, although it is not used at this point. Signed-off-by: Quentin Monnet Reviewed-by: Jakub Kicinski --- net/sched/cls_matchall.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/net/sched/cls_matchall.c b/net/sched/cls_matchall.c index f67d3d7fcf40..b47929c15792 100644 --- a/net/sched/cls_matchall.c +++ b/net/sched/cls_matchall.c @@ -86,7 +86,8 @@ static void mall_destroy_hw_filter(struct tcf_proto *tp, static int mall_replace_hw_filter(struct tcf_proto *tp, struct cls_mall_head *head, - unsigned long cookie) + unsigned long cookie, + struct netlink_ext_ack *extack) { struct tc_cls_matchall_offload cls_mall = {}; struct tcf_block *block = tp->chain->block; @@ -205,7 +206,8 @@ static int mall_change(struct net *net, struct sk_buff *in_skb, goto err_set_parms; if (!tc_skip_hw(new->flags)) { - err = mall_replace_hw_filter(tp, new, (unsigned long)new); + err = mall_replace_hw_filter(tp, new, (unsigned long)new, + extack); if (err) goto err_replace_hw_filter; }