Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp7018570yba; Thu, 2 May 2019 02:42:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqzDK4gKYJq53tXdHewqcAg+lJ80JeDQ/lNuhmo/h1kNyr0wp1ELjJRmdyYXGmbQDOQ7f7Gd X-Received: by 2002:a62:1897:: with SMTP id 145mr3170823pfy.122.1556790135340; Thu, 02 May 2019 02:42:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556790135; cv=none; d=google.com; s=arc-20160816; b=bfiso01cEJMjYlMI/aJCreFO/3Mp3YBVsMbynabGQkcFqQ+6hlhp+puzd2yCVId9dP GdXa4QS7s8+6nb2bXf075AR7AGfGbvvfeZ/xI2m+5WThpMjBRTL1iKHNSrcyZvgsulX1 R/mOlYRQAnOVGveqXGRZpXrJSVAaaX5/G0QoohCUtYajSQMOGqWO7UuMrQ+lPgjGn+Li 02+e0hfiqINM17zt8YqdLi55i0xMUGbyQQ5daGDDULHU+nS9nLZcUk4KApM+7lLFh7fC 7xtIXi4LZRC8KplHLxaXUN3wgZ02cOy+97Gz8tj0xh/aIR1+HUYkK23PXYboR2qXapVj eQ5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=qoq/x0ni4SOfF5O4pRKAq/ar8WQFFpDofPCCX6Hbq6k=; b=D7ZVEtp7R3u5n6ar29oLBCyB7pDvCEJxEQ/eXXcWVMw7F8kLapa7Tl9B8jPCcbd9lb AwX38aW5s3quBKJSvukrjjFSm7R/CcAHRa63N7+6lzCYj3gm3HjyZI+dQRlGDuLBOr2g AwxFJZxvnI3++B+YFPbSB9slj2vSCrk0vWEl7wasdqCc62Qp67klXxF3CKkXeNjYUhpw l5A8QgBsDxgnYRm9AgfsfN5FA/raSEjSWqqfRzUKrdxQpKu3zb4qPFgrHuq3eW4Jiet4 x+pSWVfCU0Kg4eWIZJesSbTo1mHO3eTdJsyQnkvYAZNzMaDWKxF6/rrIWnR4f0PJmyD9 Y50A== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=microchip.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 30si31232557plc.8.2019.05.02.02.41.59; Thu, 02 May 2019 02:42:15 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726334AbfEBJlH (ORCPT + 99 others); Thu, 2 May 2019 05:41:07 -0400 Received: from esa3.microchip.iphmx.com ([68.232.153.233]:8818 "EHLO esa3.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726127AbfEBJlH (ORCPT ); Thu, 2 May 2019 05:41:07 -0400 Received-SPF: Pass (esa3.microchip.iphmx.com: domain of Joergen.Andreasen@microchip.com designates 198.175.253.82 as permitted sender) identity=mailfrom; client-ip=198.175.253.82; receiver=esa3.microchip.iphmx.com; envelope-from="Joergen.Andreasen@microchip.com"; x-sender="Joergen.Andreasen@microchip.com"; x-conformance=spf_only; x-record-type="v=spf1"; x-record-text="v=spf1 mx a:ushub1.microchip.com a:smtpout.microchip.com a:mx1.microchip.iphmx.com a:mx2.microchip.iphmx.com include:servers.mcsv.net include:mktomail.com include:spf.protection.outlook.com ~all" Received-SPF: None (esa3.microchip.iphmx.com: no sender authenticity information available from domain of postmaster@email.microchip.com) identity=helo; client-ip=198.175.253.82; receiver=esa3.microchip.iphmx.com; envelope-from="Joergen.Andreasen@microchip.com"; x-sender="postmaster@email.microchip.com"; x-conformance=spf_only Authentication-Results: esa3.microchip.iphmx.com; dkim=none (message not signed) header.i=none; spf=Pass smtp.mailfrom=Joergen.Andreasen@microchip.com; spf=None smtp.helo=postmaster@email.microchip.com; dmarc=pass (p=none dis=none) d=microchip.com X-IronPort-AV: E=Sophos;i="5.60,421,1549954800"; d="scan'208";a="31734059" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa3.microchip.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 02 May 2019 02:41:05 -0700 Received: from localhost (10.10.76.4) by chn-sv-exch05.mchp-main.com (10.10.76.106) with Microsoft SMTP Server id 14.3.352.0; Thu, 2 May 2019 02:40:55 -0700 From: Joergen Andreasen To: CC: Joergen Andreasen , Jamal Hadi Salim , Cong Wang , Jiri Pirko , Alexandre Belloni , Microchip Linux Driver Support , "David S. Miller" , Ralf Baechle , "Paul Burton" , James Hogan , , Subject: [PATCH net-next 0/3] Add hw offload of TC police on MSCC ocelot Date: Thu, 2 May 2019 11:40:26 +0200 Message-ID: <20190502094029.22526-1-joergen.andreasen@microchip.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series enables hardware offload of ingress port policing on the MSCC ocelot board. Joergen Andreasen (3): net/sched: act_police: move police parameters into separate header file net: mscc: ocelot: Implement port policers via tc command MIPS: generic: Add police related options to ocelot_defconfig arch/mips/configs/generic/board-ocelot.config | 7 + drivers/net/ethernet/mscc/Makefile | 2 +- drivers/net/ethernet/mscc/ocelot.c | 6 +- drivers/net/ethernet/mscc/ocelot.h | 3 + drivers/net/ethernet/mscc/ocelot_police.c | 289 ++++++++++++++++++ drivers/net/ethernet/mscc/ocelot_police.h | 16 + drivers/net/ethernet/mscc/ocelot_tc.c | 151 +++++++++ drivers/net/ethernet/mscc/ocelot_tc.h | 19 ++ include/net/tc_act/tc_police.h | 41 +++ net/sched/act_police.c | 27 +- 10 files changed, 532 insertions(+), 29 deletions(-) create mode 100644 drivers/net/ethernet/mscc/ocelot_police.c create mode 100644 drivers/net/ethernet/mscc/ocelot_police.h create mode 100644 drivers/net/ethernet/mscc/ocelot_tc.c create mode 100644 drivers/net/ethernet/mscc/ocelot_tc.h create mode 100644 include/net/tc_act/tc_police.h -- 2.17.1