Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp239661ybi; Fri, 31 May 2019 00:19:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqx09Kpi5V12DdFoLPZkvLhLaziM1P87IU82XzgMTntFK5EZbjV1+4qFNPa4X+04YLSxPR3W X-Received: by 2002:a65:52c9:: with SMTP id z9mr41420pgp.177.1559287197678; Fri, 31 May 2019 00:19:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559287197; cv=none; d=google.com; s=arc-20160816; b=ro9BMi+My1AT80KQSnVDE8f4JmLLOxgKq3YCCerotsu9D83ecjzv43f3gsGIT4k9bA YLONFpG9YpyA/12DWZx7GB1AHhWlDXPT9StAuz+HQe8pQq+I0h36JmpPTkXMqBiHLJJy KO7E0PBY4PhaD0fCGpNYZpE8xNf24/EpqBaWFeU4Y1KXEK/uu+uHSiXTYo2roanoN+V7 oegLk+qCl987EWjvwGAVHrLCI34gI9H6++Jf2SLIkyq5cDUKQimJfC6UpjKv6rAaHAsC Y+49Zwvwgr1l87rL2xjojOJNXMEcJFqXzn6TXHB2bcJjUBz700xrVqApqYQ3i+hNpz3H mWDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:mime-version:message-id:date:subject :cc:from; bh=r3CfJSEpF0a2024Z3FYDbHrmUvnaklNV9tglBjoFuuQ=; b=ONmNMsA8H+cfSKfhD4vAyew6S2ai40NBUMVeXCw0cS2s7SCeEB7DUhoCde2PPia4zT ipW3ZV+xiAtCGvv69NAg5IODMg7lu8isWajJ0YXxOje/1YLUreWn9FKSGBAnOqG/If0h s++JJQ8ZOofHnmOfuuI1D+mVvd72y9qpcIIrjRXdAS8dRxUsHKpJ6CgYM8xCEGDrRxCM I6DWyIK5GKZeSewFWHjjqdKhIN1efExtVB0vJTUX+eVzeTRR5BkiZP79+VzC2Z4jR+Z/ bTZDmOCyPi6CVEQR/0uPirfkkMicWrssij6c+d9ugui91bQbH+HyowahMzSKL/6IrMcf dBiw== 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 h4si5039148pgm.571.2019.05.31.00.19.40; Fri, 31 May 2019 00:19:57 -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 S1726809AbfEaHS2 (ORCPT + 99 others); Fri, 31 May 2019 03:18:28 -0400 Received: from esa6.microchip.iphmx.com ([216.71.154.253]:41341 "EHLO esa6.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725963AbfEaHS2 (ORCPT ); Fri, 31 May 2019 03:18:28 -0400 Received-SPF: Pass (esa6.microchip.iphmx.com: domain of Horatiu.Vultur@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="Horatiu.Vultur@microchip.com"; x-sender="Horatiu.Vultur@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="Horatiu.Vultur@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=Horatiu.Vultur@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,534,1549954800"; d="scan'208";a="32575660" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 31 May 2019 00:18:27 -0700 Received: from soft-dev3.microsemi.net (10.10.85.251) by mx.microchip.com (10.10.85.144) with Microsoft SMTP Server id 15.1.1713.5; Fri, 31 May 2019 00:18:23 -0700 From: Horatiu Vultur CC: Horatiu Vultur , Alexandre Belloni , Microchip Linux Driver Support , Rob Herring , "Mark Rutland" , Ralf Baechle , "Paul Burton" , James Hogan , "David S. Miller" , , , , Subject: [PATCH net-next v3 0/2] Add hw offload of TC flower on MSCC Ocelot Date: Fri, 31 May 2019 09:16:55 +0200 Message-ID: <1559287017-32397-1-git-send-email-horatiu.vultur@microchip.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain To: unlisted-recipients:; (no To-header on input) 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 for flower filter used in traffic controller on MSCC Ocelot board. v2->v3 changes: - remove the check for shared blocks v1->v2 changes: - when declaring variables use reverse christmas tree CC: Alexandre Belloni CC: Microchip Linux Driver Support CC: Rob Herring CC: Mark Rutland CC: Ralf Baechle CC: Paul Burton CC: James Hogan CC: "David S. Miller" CC: linux-mips@vger.kernel.org CC: devicetree@vger.kernel.org CC: linux-kernel@vger.kernel.org CC: netdev@vger.kernel.org Horatiu Vultur (2): net: mscc: ocelot: Add support for tcam net: mscc: ocelot: Hardware ofload for tc flower filter arch/mips/boot/dts/mscc/ocelot.dtsi | 5 +- drivers/net/ethernet/mscc/Makefile | 2 +- drivers/net/ethernet/mscc/ocelot.c | 13 + drivers/net/ethernet/mscc/ocelot.h | 8 + drivers/net/ethernet/mscc/ocelot_ace.c | 777 ++++++++++++++++++++++++++++++ drivers/net/ethernet/mscc/ocelot_ace.h | 232 +++++++++ drivers/net/ethernet/mscc/ocelot_board.c | 1 + drivers/net/ethernet/mscc/ocelot_flower.c | 357 ++++++++++++++ drivers/net/ethernet/mscc/ocelot_regs.c | 11 + drivers/net/ethernet/mscc/ocelot_s2.h | 64 +++ drivers/net/ethernet/mscc/ocelot_tc.c | 16 +- drivers/net/ethernet/mscc/ocelot_vcap.h | 403 ++++++++++++++++ 12 files changed, 1880 insertions(+), 9 deletions(-) create mode 100644 drivers/net/ethernet/mscc/ocelot_ace.c create mode 100644 drivers/net/ethernet/mscc/ocelot_ace.h create mode 100644 drivers/net/ethernet/mscc/ocelot_flower.c create mode 100644 drivers/net/ethernet/mscc/ocelot_s2.h create mode 100644 drivers/net/ethernet/mscc/ocelot_vcap.h -- 2.7.4