Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1173776rwd; Sun, 14 May 2023 14:28:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6hG0CPJfYu+ucNW1vBLETBYw6CbmZW9FaqGgEt2yDuvAwdL7Vdw6OCi/I6W0zT1a4iPucK X-Received: by 2002:a17:90a:ac0f:b0:246:75c8:f071 with SMTP id o15-20020a17090aac0f00b0024675c8f071mr31821904pjq.3.1684099691832; Sun, 14 May 2023 14:28:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684099691; cv=none; d=google.com; s=arc-20160816; b=gGFuXZoJ8tyaDLTdLkDqOibRcdyzuaFVfZZQRJCqxjBqr6YlUmF1sQeUFQfFw4CPjo 17JqYucY0kgZDJUJhfg8XYgu2T5RW7r4dcqEtiSnzE87C9S7zM+Vb+ptyTBbhgcMym5K lJhEpTNgd26H66p43oq+WY+h6C+dcCEzk+N4AeKNTiY4Ym1YoOtNXm3OVHBEBW90CtDE jgHhgpWdbUVOrmrXvaEWFfecp/3BopnzIJTHc9GpQTeTtNH1QWVzJoDJIGEqc1aCtPmT BSDi7FwOpntpEIdHOsWZinqmoRY0O5uIEFwk8Cd1vx2jgjBiYgsOjd34BJUfD7qPzWQf BMtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=xEHINyP5G7y0HCpacYqzGCdEp3ObYp/dH14aB+3bnhs=; b=Jp3W3Eme4vcMAAjIkRSh5APBucCfXLIOVOQbfmgrqiW7WS/OYNFB2g2CSgIJNSufpP J9Q9X/sg4881NkF6XGOF6KQH+xne7nXA8uT5fokPmgiQRkZ/1tPKygK0vHOdcTeofRC0 xVU/NNN5F+8WV3I5yu+xkXieXUYGbyI8MzVfg4Rd5xK+YQVaTvAIersZtp6cGTwoEKyH XJdvXW2WrQM1DXKfzYGFL7w21GIJ5HW3IS1FNMof5seOwy22NnfUMJgNMe7n3kWCIf2D kk8u/4eUKBhnpq9i8SkpUQdvUfnqylK/CXlHSsXXBpaO2wfFxdEICgdqt5UWojmSjE+M u9Rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=09ywQmsc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o8-20020a17090a4b4800b0024eab334011si27081633pjl.175.2023.05.14.14.27.58; Sun, 14 May 2023 14:28:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=09ywQmsc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232252AbjENULY (ORCPT + 99 others); Sun, 14 May 2023 16:11:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229585AbjENULW (ORCPT ); Sun, 14 May 2023 16:11:22 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E86F61B5; Sun, 14 May 2023 13:11:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1684095081; x=1715631081; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=0v693RssdllD+u0hi8Qnrc42nWVUr677WOVyW0Gpybc=; b=09ywQmsc2eZZXZ5URGVWr6pyMc0lkcRhgXULb1ILsbn067gklyQtmgvH YAdVDwZKHMXpxEyyrKyeVlzKQGSsHGmS7rGvbPyrwXlc6YK0DEwqlMk7i QYSM5BNnRAAuVUi+zPdXWIf/Y5X+KqRgphp4L5bpTR8b4Dl5R6LQ7uvpd kMwu7ZHAazgEDNpSyTNEFKYM4NE2QmwZ5HW/m5S5f+lgpDlPOr5c0tgHd +ymSdeG/spbgSG3X8NvgycgGXkpAv3W+P6N8+/ENxuhdqEhvGmJubjykk SPOymlKqYF96ytLDe3II9o8vcW4k1IvgkJbscTWVyqQHXesO0KamaeumS g==; X-IronPort-AV: E=Sophos;i="5.99,274,1677567600"; d="scan'208";a="211196321" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 14 May 2023 13:11:20 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Sun, 14 May 2023 13:11:19 -0700 Received: from soft-dev3-1.microsemi.net (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2507.21 via Frontend Transport; Sun, 14 May 2023 13:11:17 -0700 From: Horatiu Vultur To: , CC: , , , , , Horatiu Vultur Subject: [PATCH net-next 0/7] net: lan966x: Add support for PCP, DEI, DSCP Date: Sun, 14 May 2023 22:10:22 +0200 Message-ID: <20230514201029.1867738-1-horatiu.vultur@microchip.com> X-Mailer: git-send-email 2.38.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series extends lan966x to offload to the hardware the following features: - PCP: this configuration is per port both at ingress and egress. - App trust: which allows to specify a trust order of app selectors. This can be PCP or DSCP or DSCP/PCP. - default priority - DSCP: this configuration is shared between the ports both at ingress and egress. Horatiu Vultur (7): net: lan966x: Add registers to configure PCP, DEI, DSCP net: lan966x: Add support for offloading pcp table net: lan966x: Add support for apptrust net: lan966x: Add support for offloading dscp table net: lan966x: Add support for offloading default prio net: lan966x: Add support for PCP rewrite net: lan966x: Add support for DSCP rewrite .../net/ethernet/microchip/lan966x/Kconfig | 11 + .../net/ethernet/microchip/lan966x/Makefile | 1 + .../ethernet/microchip/lan966x/lan966x_dcb.c | 366 ++++++++++++++++++ .../ethernet/microchip/lan966x/lan966x_main.c | 2 + .../ethernet/microchip/lan966x/lan966x_main.h | 57 +++ .../ethernet/microchip/lan966x/lan966x_port.c | 149 +++++++ .../ethernet/microchip/lan966x/lan966x_regs.h | 132 +++++++ 7 files changed, 718 insertions(+) create mode 100644 drivers/net/ethernet/microchip/lan966x/lan966x_dcb.c -- 2.38.0