From patchwork Tue Jan 16 17:20:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Aring X-Patchwork-Id: 861784 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=mojatatu-com.20150623.gappssmtp.com header.i=@mojatatu-com.20150623.gappssmtp.com header.b="HZUqiCbp"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3zLcSQ714Vz9t6C for ; Wed, 17 Jan 2018 04:20:54 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750909AbeAPRUv (ORCPT ); Tue, 16 Jan 2018 12:20:51 -0500 Received: from mail-it0-f66.google.com ([209.85.214.66]:33171 "EHLO mail-it0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750772AbeAPRUu (ORCPT ); Tue, 16 Jan 2018 12:20:50 -0500 Received: by mail-it0-f66.google.com with SMTP id c102so12112315itd.0 for ; Tue, 16 Jan 2018 09:20:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mojatatu-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=lYrAPi7RR1zgzw9fU5wB29z97g9Jv5GhX/6pKtTrkAU=; b=HZUqiCbpO9SdqGG0T28l2yRLNzK+ylsDsf+vLYwe6UMyNWPWl/eUErlALNhLPn3BAb VnONJKkcr3L7jfekw+ayf4/YpTqTiG1ru7MTRJJ8+UyzDEiVKTQcYFsU/T59gI9EMY5l 9LBaNy65V/xSBqEsE4SiIcJCMLeg6yi/0YS8U4Bv3aOLLc5G/PnUEuYf/1EbQ3KeH6YV CfzZ7x6Sh3763S6UuQARPN5co9xu6iu/O8NGtHksel+EO4wL+RTT4LwvNUWDbWoU+8sI Jy5HVaO+mQv4loyRMIJ/HC6PtXPxq372YneYvW95X3LQED1z64UgJFwAmWH7u8SFy/qn G30A== 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; bh=lYrAPi7RR1zgzw9fU5wB29z97g9Jv5GhX/6pKtTrkAU=; b=Bxp88H5ICK2sMrxCx0444jMZbmxi2ZAQwXBwlK/3GcGuHrJ+nHpoABBsX7dJM9smv9 brVnBkRq/RAMzIvSuImVwo6TcfxKLz7kvKcFF9msTZ9wTxx/yosqh4uR4M4Q7i5Q1RqC KQyY4ao4l2peBL0qDcOrwcU9VchmpCMlu/pxYiPFA330akNm4HPUjbSie/Zbensf2224 IXL3o12YsqPcDb/D0FtdhrdAayTxx3ujSg049HQHLqPHnCyZWEc/rvSX4i2shLwgh0eN uawKgebPlDbab3nwqGhUWDSXnYiHE2/IzaIGD+fGJF8RoMd/Kmhlq2J44eW/7eWFPI2u 6oTA== X-Gm-Message-State: AKwxytfpME5sZBC8jD/B2tJs3c0C+QOHhwSWZlPQQUc7JFV/Teg3ePBm ajGrI6lh7CJOuIjnUOQSxZIaYg== X-Google-Smtp-Source: ACJfBotxJ0tsBVkUydxtSdDa4wpDIYg7Thw+LgJmSQ5B7C812Yj5l92k5pKHT88PSgOUO/mtvqRZlw== X-Received: by 10.36.246.204 with SMTP id u195mr17973500ith.19.1516123249656; Tue, 16 Jan 2018 09:20:49 -0800 (PST) Received: from x220t.lan ([64.26.149.125]) by smtp.gmail.com with ESMTPSA id a13sm1353124itj.33.2018.01.16.09.20.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Jan 2018 09:20:49 -0800 (PST) From: Alexander Aring To: jhs@mojatatu.com Cc: xiyou.wangcong@gmail.com, jiri@resnulli.us, davem@davemloft.net, netdev@vger.kernel.org, kernel@mojatatu.com, Alexander Aring , David Ahern Subject: [PATCH net-next 0/8] net: sched: cls: add extack support Date: Tue, 16 Jan 2018 12:20:19 -0500 Message-Id: <20180116172027.22128-1-aring@mojatatu.com> X-Mailer: git-send-email 2.11.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Hi, this patch adds extack support for TC classifier subsystem. The first patch fixes some code style issues for this patch series pointed out by checkpatch. The other patches until the last one prepares extack handling for the TC classifier subsystem and handle generic extack errors. The last patch is an example for u32 classifier to add extack support inside the callbacks delete and change. There exists a init callback as well, but most classifier implementation run a kalloc() once to allocate something. Not necessary _yet_ to add extack support now. I know there are patches around which makes changes to these files. I will rebase my stuff on Jiri's patches if they get in before mine. - Alex Cc: David Ahern Alexander Aring (8): net: sched: cls: fix code style issues net: sched: cls_api: handle generic cls errors net: sched: cls: add extack support for change callback net: sched: cls: add extack support for tcf_exts_validate net: sched: cls: add extack support for delete callback net: sched: cls: add extack support for tcf_change_indev net: sched: cls: add extack support for tc_setup_cb_call net: sched: cls_u32: add extack support include/net/pkt_cls.h | 13 ++++-- include/net/sch_generic.h | 7 +++- net/sched/cls_api.c | 74 +++++++++++++++++++++++++-------- net/sched/cls_basic.c | 14 ++++--- net/sched/cls_bpf.c | 32 ++++++++------ net/sched/cls_cgroup.c | 9 ++-- net/sched/cls_flow.c | 8 ++-- net/sched/cls_flower.c | 31 ++++++++------ net/sched/cls_fw.c | 17 ++++---- net/sched/cls_matchall.c | 24 +++++++---- net/sched/cls_route.c | 12 +++--- net/sched/cls_rsvp.h | 7 ++-- net/sched/cls_tcindex.c | 14 ++++--- net/sched/cls_u32.c | 104 ++++++++++++++++++++++++++++++++-------------- 14 files changed, 243 insertions(+), 123 deletions(-)