From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4D9A3A0548; Thu, 11 Aug 2022 13:36:29 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D7BE6410FC; Thu, 11 Aug 2022 13:36:28 +0200 (CEST) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2063.outbound.protection.outlook.com [40.107.237.63]) by mails.dpdk.org (Postfix) with ESMTP id D230C40DDE for ; Thu, 11 Aug 2022 13:36:27 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HgnOywnQIxgKP6pJJ5575F7ZdHtWDvmZPrPhXeYYd9pgf3I+SSKzHfEgQmGQMrAk+NAn7yR2jsK993VNY/dm/16BbTvXgIty5U/OvSwIQUQIDX24dx3jJ9WJ/pgxrxA/7eQqWDQI84YDrISEDneX0ZXiRRoTqArhb0AMS+tSDSAiCUCAwhNcrSFDhbcK59p/uyj67qlgmaVljkgB54ARyeJXw5W2xZLZz6QnA9o8TAxaLDqQTVphNeapZ+1Q4KehNBktu7jQ7VlKlEHKCjVmuMbBfMVlTP5IUs6nARXZgEi2wXjJpto8ManBrvNQOBp/jAhG7A01UAPftx2X8itI1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=rB7rUnHlcfxSCxb4Cz+I+JU1BP7IkIKA1uXeP0P0uDA=; b=MmkZmi6OlZJcWuvfRCHsbftFGpM3Hxzi1tbfnzCAGWGsPEnr9ciEO1ZRBgN1V70EBJyMAbHizRtCmgigzO4f9XjjpgGuFgdpzio/FjqmtK2SpQZeOd500aC7R+LTYVMGGL+JzjRl8sq/Ef7lXZt783fFf7iemOECCsyk9MC6KMPFm/Xgym+Zq8LI4/tqATH/GPskAWDLSAD6RdmK413MiAYbelFBatqGp1UErmi7dClqQCcHBIsjDv7ai/BPdwqB8/hLX2rC9w2FjkZL3rdq8q6Ua8zOYRpQcpIiswVznHQJ9tZm1zSiyuX5CQi+E5cPbpbxJBFn7KCq/Bhpx2yWEg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 12.22.5.236) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rB7rUnHlcfxSCxb4Cz+I+JU1BP7IkIKA1uXeP0P0uDA=; b=On8UR+wti560UFCsY5dyp0zFngFCyb2RO+LwUUxQ/Q/gQDxotQuTsfEdvb0tK2O9B459z5NLFzlpLp8r7jlpl2DcpmL9qdJmncpByeXl8H9fzHxA2CsMumUspsxTNdvIvw8lqQp4X1Ddh9fCFuPIuC6ajNH8JdJVwPYkOtupXZt4D2UvIcwuiuvdxyq2Jchuw2G2FOmxYkWYlm5O/5veyhHWidxLAyPie66JeEF9uAhCw5wI9Teta1HQ59LOTIKED8yrADYQqvRQ9akwZRg71wO07/ABkxFEKyAcYaEUo7S/dwpireO+FqsLgS9yia03bTF4Zd2wFQy852USKbJZxQ== Received: from MW4PR03CA0191.namprd03.prod.outlook.com (2603:10b6:303:b8::16) by DM5PR12MB1483.namprd12.prod.outlook.com (2603:10b6:4:d::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5504.14; Thu, 11 Aug 2022 11:36:26 +0000 Received: from CO1NAM11FT007.eop-nam11.prod.protection.outlook.com (2603:10b6:303:b8:cafe::d7) by MW4PR03CA0191.outlook.office365.com (2603:10b6:303:b8::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5504.14 via Frontend Transport; Thu, 11 Aug 2022 11:36:25 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 12.22.5.236) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 12.22.5.236 as permitted sender) receiver=protection.outlook.com; client-ip=12.22.5.236; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (12.22.5.236) by CO1NAM11FT007.mail.protection.outlook.com (10.13.174.131) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.5525.11 via Frontend Transport; Thu, 11 Aug 2022 11:36:25 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by DRHQMAIL109.nvidia.com (10.27.9.19) with Microsoft SMTP Server (TLS) id 15.0.1497.32; Thu, 11 Aug 2022 11:36:04 +0000 Received: from nvidia.com (10.126.230.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Thu, 11 Aug 2022 04:36:02 -0700 From: Michael Savisko To: , , CC: , Subject: [RFC] ethdev: add send to kernel action Date: Thu, 11 Aug 2022 14:35:44 +0300 Message-ID: <20220811113544.1718643-1-michaelsav@nvidia.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail201.nvidia.com (10.129.68.8) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1431e415-62a5-455a-efb3-08da7b8db93c X-MS-TrafficTypeDiagnostic: DM5PR12MB1483:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 69SmYYgDuXgG0JCqjxGbD9yZdV5QnkyfvyJr/Xf0KdXxZ5s93DL3CpDJqzyCH+FG1F0mQqGOOzP2cvIYtPTbxHJNnDO0D7A0RnDPnwqu6BE+YcgwKTpxLkgT71rqq8XvewgaP9CZ1IuM4Wq3MvD4Uzm9fFraEM+pUYzoznCbDAEO5P3mEaWdp4a/Lt1vDb2DoYg2ObpTkC9aS1Nw56LmN5GtSQSQ0mS7brcawkjpUPBOfav8uRccDrn8j6D3uu2nfWRfv+UW50eJ+SXVSkRpfarC8vN1sXtsnSzJdAkOOF+OOK7BGAZNjCYEbaw4kP6dSD82fWmpNbxpBWXho8VeQ75zSui9IahYix3URSUw9QoRayI+a5xD1GI19HTq9nljde4Hl2u01eQagngj/PtxyHEyWJ+XBlWepZKyktB7MrMJamAI79K8qUtiWFyfdXLXvMlLsEjEjp1tvc85VLNqzCoDAxdBqOQqgC9w+m9Zi57VlXKDeeiyhIcjQaxLwTcuAgdjyqRr/OuVW2+P1NFZx4tJvGz5z1Xwf+93bbe77CVujIs9BK6ze4x+GTT1YkMc7m8FtO0IRVuzlOOLcInSHiqeMMxfHHT2ZXTCPIUwlOH3fDTIj5jHHltplUVZRb8YNinvycddnBsUTPsZy9epWBkqrnXW2TD1W+6TF79MX5WioAo/CgZhgTqVLDUo12P7Sn+L+66DxWM+CGeUSdcAb7YkcT94IqeDL0uFMQJ/6khjNy4exafhlSlilVqyi7KJgYOHXBQyufxhZrl97BLqzKdOZZsCPvPctbpT2qKx71NM7RRhkUFgnvdapcoV3BMSIQBqTPYQ9XZaCTtZjbgkQg== X-Forefront-Antispam-Report: CIP:12.22.5.236; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:InfoNoRecords; CAT:NONE; SFS:(13230016)(4636009)(396003)(136003)(346002)(376002)(39860400002)(36840700001)(40470700004)(46966006)(70206006)(5660300002)(70586007)(8676002)(4326008)(316002)(110136005)(54906003)(55016003)(40480700001)(82310400005)(8936002)(4744005)(40460700003)(2906002)(82740400003)(36860700001)(36756003)(356005)(81166007)(86362001)(41300700001)(478600001)(6286002)(7696005)(6666004)(26005)(426003)(107886003)(186003)(336012)(1076003)(47076005)(16526019)(2616005)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Aug 2022 11:36:25.3636 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1431e415-62a5-455a-efb3-08da7b8db93c X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[12.22.5.236]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT007.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB1483 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org In some cases application may receive a packet that should have been received by the kernel. In this case application uses KNI or other means to transfer the packet to the kernel. This commit introduces rte flow action that the application may use to route the packet to the kernel while still in the HW. Signed-off-by: Michael Savisko --- lib/librte_ethdev/rte_flow.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/librte_ethdev/rte_flow.h b/lib/librte_ethdev/rte_flow.h index f92bef0184..969a607115 100644 --- a/lib/librte_ethdev/rte_flow.h +++ b/lib/librte_ethdev/rte_flow.h @@ -2853,6 +2853,11 @@ enum rte_flow_action_type { * See file rte_mtr.h for MTR profile object configuration. */ RTE_FLOW_ACTION_TYPE_METER_MARK, + + /* + * Send traffic to kernel. + */ + RTE_FLOW_ACTION_TYPE_SEND_TO_KERNEL, }; /** -- 2.27.0