From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D8FABC67861 for ; Fri, 5 Apr 2024 07:46:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:CC:To:MIME-Version:Message-ID:Date: Subject:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Ix597lLV18OQJAMlbm88e55wcMNXsQiPVWecnQ9I0Io=; b=aEYznM9sxEtxg7 whL0LRES2Q+WM8MXwEa80MZ491WZWGhLkojXnYq9AK0UFIDM/OK6yuA+O5+pb/7yQhFn4J2GuHMuA 8PimS/nHemjrV/ScCJJGu9vUO0v8XUuUz0hHXYpoIbNiQ6iVSixznnC/xAWUz8dmj99+G6P4QjTm2 5z9c5hzjt+5OFmDvg5ORAFktv2Qs57W7PKrsZ5bGPZvn3oxIMkr5wJ8VzxhJccaO4CVgvwQK+EQRo rxwqSlSsGA5QWDhd1docfFuBKkfbTufu12JLsfQ7p4Qdsbh8KeBsPJ4LyywcyeAXhVbsR83qgsyvT lAzwhvn/GJMRI+Qq1Aww==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rseGv-00000005juB-0omq; Fri, 05 Apr 2024 07:46:01 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rseGq-00000005jr4-3ArO for linux-arm-kernel@lists.infradead.org; Fri, 05 Apr 2024 07:45:58 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1712303156; x=1743839156; h=from:subject:date:message-id:mime-version: content-transfer-encoding:to:cc; bh=1ZDpfD3a7RKRHSzvUXknQC7JfUb0EeRAFmr7HaGNp/o=; b=JXidk1rUNSVzbLi3o5HyTNKdlRWIbTI/5TdtCD7hWJ85TyY0Vxsg5qT2 PhDspSg4SKL12rAYHIlkreTfwlmWcSj2NeWj4ERu4y4YR/Ugq6ZmYmiay WZzKGz9T6m0zDgYHKVsvrvdu33eaqTHfg7ni05Bz/0Y66xIUJegRqQ59/ 3OLEmcpMYRvTUKAmDKVCnl/hDc55RDZjNkjykW23t8MC/CufH/cG+3B9G 1u6LiNsbU35q7uEVg9vVQe1djpS3i8FkSPRddnuJFkEJp1cy9UbBcyW53 hR8hMxtuNd3ryAwimyjpO6c5gCpg21eldXSM/XB/ioIYSkDDx76gk5BYO Q==; X-CSE-ConnectionGUID: 4qZUTU13T9uNgS2+V4FJcw== X-CSE-MsgGUID: iW+rMIoVTuCswnVlz6AsWg== X-IronPort-AV: E=Sophos;i="6.07,180,1708412400"; d="scan'208";a="250415236" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa5.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 05 Apr 2024 00:45:55 -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.35; Fri, 5 Apr 2024 00:45:03 -0700 Received: from DEN-DL-M70577.microchip.com (10.10.85.11) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Fri, 5 Apr 2024 00:45:00 -0700 From: Daniel Machon Subject: [PATCH net-next v2 0/2] Add support for flower actions mirred and redirect Date: Fri, 5 Apr 2024 09:44:48 +0200 Message-ID: <20240405-mirror-redirect-actions-v2-0-875d4c1927c8@microchip.com> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAPCrD2YC/3WNywqDMBBFf0Vm3SkxPhq76n8UFzJO6yxMZBLEI v57g3Tb5eFyzt0hsgpHuBc7KK8SJfgM9lIATYN/M8qYGayxtamNxVlUg6LyKMqUcKCUlYhEdds RNa5xLWR7UX7Jdpaf4Dmh5y1Bn5dJYgr6OS/X8tx/9epvfS3RIDm+kSsrS657zEIaaJLlSmGG/ jiOL7BiBU3MAAAA To: Lars Povlsen , Steen Hegelund , , "David S. Miller" , Eric Dumazet , "Jakub Kicinski" , Paolo Abeni CC: Ratheesh Kannoth , , , , Daniel Machon X-Mailer: b4 0.14-dev X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240405_004556_867847_7353D922 X-CRM114-Status: UNSURE ( 9.87 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org ================================================================================ Add support for tc flower actions mirred and redirect. ================================================================================ This series adds support for the two tc flower actions mirred and redirect. Both actions are implemented by means of a port mask and a mask mode. The mask mode controls how the mask is applied, and together they are used by the switch to make a forwarding decision. Both actions are configurable via the IS0 or IS2 VCAP's (ingress stage 0 and 2, respectively). Patch #1: adds support for tc flower mirred action. Patch #2: adds support for tc flower redirect action. Signed-off-by: Daniel Machon --- Changes in v2: - Squash patch #1 and #2 from previous version, to silence the false positive NIPA warnings. - Return directly from vcap_rule_add_action_u72() in *_mirred() and *_redirect() - Link to v1: https://lore.kernel.org/r/20240403-mirror-redirect-actions-v1-0-c8e7c8132c89@microchip.com --- Daniel Machon (2): net: sparx5: add support for tc flower mirred action. net: sparx5: add support for tc flower redirect action .../ethernet/microchip/sparx5/sparx5_tc_flower.c | 68 ++++++++++++++++++++++ drivers/net/ethernet/microchip/vcap/vcap_api.c | 12 ++++ .../net/ethernet/microchip/vcap/vcap_api_client.h | 2 + 3 files changed, 82 insertions(+) --- base-commit: 5fc68320c1fb3c7d456ddcae0b4757326a043e6f change-id: 20240402-mirror-redirect-actions-cc469cc58586 Best regards, -- Daniel Machon _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel