Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1597328ybm; Thu, 23 May 2019 03:52:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqykaxJC66GgeQen5FLBjpHP8YE8vnTFcLL060B8Q8UgNGviWyaRCpd5Cal+dlP8X4AGt4n5 X-Received: by 2002:a63:295:: with SMTP id 143mr95830387pgc.279.1558608739337; Thu, 23 May 2019 03:52:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558608739; cv=none; d=google.com; s=arc-20160816; b=gStQ5AriBp7F8OBFCeiwIXxqHBYRL1Oc7714PHTzkkBP1iNqFE7sqdmPtXaTV9Nd7q 8AWXwu97NUvsJsz1tiHFL65HcQTrfB1kOB4m4WFKizSzlUcXNCeqnrGX8Ndjrk0gin6E Jt22/kzXzxgnc+qDmaHUtuyejhpyenReGwEYVuBZG67A2+rk57+lPlHVojWHHLDhQbNX O5NBpfPUzPbL0bQIMxy0T9FPB9QNsWILJZNLwVQ0dTVknL1ntCjN7Zb9k7lychoQ4wfK 7E/qZyUAUIfUraiPCB29exJ2wgPd2quxlP8rY/7Uvccl2sg4EX2OeBluMLBqUcNcwLl0 es4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=vM2zIlMBG03D0GNZvUbcdEyLhFT+Am+TnwSDpwdrWsA=; b=l3ZFKCkDcertUtqM/OamJOn7vsaDgQxw0BJzxoRAWGBH4QnIAS2wKmLKZQYYc3FCVY UQzIqSOkVVa33vD8OTyEu4rPb6BErXQMZXeIvAHSRthxLgYmCG6PZ5LDfttSBY5EpgAj 2YFz+2MGILkyZfoY6qymieAk7YTjgr6sdoPb7pkPbgnjaH1yDiLOyAjqNxjlu484U1xg k7y3vJW6ABWDvVPPJ32Dfy/yKYMjaKQ9L6xiK7wrEU6yTY5AFgjDrLbLzQTYpyNG31Jl VTHw2YcQGc/QfPrjfwf0lLLxAo2JY2tXF0mgBZcnU36lVxFuMgsG6oJ2yiL6KTuXcjx+ /wHA== 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 d197si27203718pga.110.2019.05.23.03.52.03; Thu, 23 May 2019 03:52:19 -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 S1730277AbfEWKu5 (ORCPT + 99 others); Thu, 23 May 2019 06:50:57 -0400 Received: from esa6.microchip.iphmx.com ([216.71.154.253]:3315 "EHLO esa6.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726310AbfEWKu5 (ORCPT ); Thu, 23 May 2019 06:50:57 -0400 Received-SPF: Pass (esa6.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=esa6.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 (esa6.microchip.iphmx.com: no sender authenticity information available from domain of postmaster@email.microchip.com) identity=helo; client-ip=198.175.253.82; receiver=esa6.microchip.iphmx.com; envelope-from="Joergen.Andreasen@microchip.com"; x-sender="postmaster@email.microchip.com"; x-conformance=spf_only Authentication-Results: esa6.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,502,1549954800"; d="scan'208";a="31575768" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa6.microchip.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 23 May 2019 03:50:56 -0700 Received: from localhost (10.10.76.4) by chn-sv-exch06.mchp-main.com (10.10.76.107) with Microsoft SMTP Server id 14.3.352.0; Thu, 23 May 2019 03:50:56 -0700 From: Joergen Andreasen To: CC: Joergen Andreasen , "Microchip Linux Driver Support" , Alexandre Belloni , "David S. Miller" , Subject: [PATCH net-next v2 0/1] Add hw offload of TC police on MSCC ocelot Date: Thu, 23 May 2019 12:49:38 +0200 Message-ID: <20190523104939.2721-1-joergen.andreasen@microchip.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190502094029.22526-1-joergen.andreasen@microchip.com> References: <20190502094029.22526-1-joergen.andreasen@microchip.com> 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. Changes v1 -> v2: v2 now consists of only one patch: "[PATCH net-next v2 1/1] net: mscc: ocelot: Implement port policers via tc command". The patch, "[PATCH net-next 00/13] net: act_police offload support", from Jakub Kicinski, removed the need for this patch: "[PATCH net-next 1/3] net/sched: act_police: move police parameters". Alexandre Belloni asked me to remove patch, "[PATCH net-next 3/3] MIPS: generic: Add police related options to ocelot_defconfig", from the series and instead send it through the MIPS tree and I will do that. The remaining patch is now the only patch in this series and all suggested changes have been incorporated. Joergen Andreasen (1): net: mscc: ocelot: Implement port policers via tc command 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 | 227 ++++++++++++++++++++++ drivers/net/ethernet/mscc/ocelot_police.h | 22 +++ drivers/net/ethernet/mscc/ocelot_tc.c | 164 ++++++++++++++++ drivers/net/ethernet/mscc/ocelot_tc.h | 19 ++ 7 files changed, 440 insertions(+), 3 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 -- 2.17.1