From patchwork Fri Apr 19 01:17:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rahul Rameshbabu X-Patchwork-Id: 13635570 X-Patchwork-Delegate: kuba@kernel.org Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2085.outbound.protection.outlook.com [40.107.237.85]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 439064696; Fri, 19 Apr 2024 01:18:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.237.85 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713489483; cv=fail; b=Ylrzqiw8HNSCMMWabbdKRXtWiJESinIvXUfNf08QNVnh4B39PHg1bEiunxhR2iNeMuRKjiMh+M8JNjdP5E1q36rFdbYjmRBVkU0LAXBzwHHddgdgpV2W9o5LAUlXu7sYH1G0FyzrfFc5NuphJDfltUQCxJPups6lj2GrZYpWrSw= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713489483; c=relaxed/simple; bh=ngvh2qc4htDMIy6YBph6Cs5B2mv5a/73cwIVLNEvUg8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=MUF+V6XkTgp1tm7wr0qgYYKXlqfgimqczUZ9jBtrbIiB+YDXCwgAud8FxftujUCfj7KKMreG4Sjp/LB8yf2uX0GWm8PZYik1+YZmn11dhYsJVAZOj5eEPc2AixCdtMpn1Xa/+ewHcVfmlp7OJAmJHLM3jsp/PpU+lRWJUcErswk= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com; spf=fail smtp.mailfrom=nvidia.com; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b=r6JTQ9HY; arc=fail smtp.client-ip=40.107.237.85 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nvidia.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b="r6JTQ9HY" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TwFqww6+HnKSElj8HhDAyGlIkvrXebcSa7iByh4vzMHuNaB2hsrMt0RxSD7KvKAI9NaOj/ggT5ZOGbzwbM8Lm2nu5BwkpRLQfT13mv+WBy8AruBHOqhw8eGb+FkhR9MCS3vqn7zdSIoCPTWnLW/myRimRuQ2TgH1W1PkwMTYAi8T8K73u82odV0NQunLrNNL6UwiLztb+YAEE1LLdZ2OxW2Y4JcPI8aDFysCq1Z8Dkjlt63WD15TYPZ416/tGp4EE9C0EQ/RItnxrxPjrbdrySwIk5at3P/StMDepMVAtIQUEyItVUIYUTejRkh8TueyTN6mQwKr5fhMjSeIiyTDGw== 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=16IWn82d0wSU4/zaNVShA83xDTy+3kxeAB0bDaf9BS4=; b=n/XYCCK2bBHXQsF3xCnyApsvcifyX+duS6atB+ZZFYIWFYWAV38PidyG25WvDWPRVHhtJyYAPW0YxGnlD7ypWAdE1oUYHtzyMQ9EZ5s/yb/1G61R7SOWHa8cwxpgM3L8hngoTEWjVRe2ls32lcGKcCWQaYuxUlpV/rq4cxISVkQHoOJKq2ZRe0JdLOIXvATY4541l+Z2vv0yk33CMkXQD93JZE1tUK2/r52aTXqtwehpsZWmvyXtdcFj0f5kbMZPSGShkIqO346exb9M9RmRrTHbr5qRIVMknCCXBILV6OvCSpB/3V7wAenp6qn40qEGyUfHTk2bVexxAmfzhWV8Kw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; 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=16IWn82d0wSU4/zaNVShA83xDTy+3kxeAB0bDaf9BS4=; b=r6JTQ9HYFGdLJXE0el+DIfPuauA6wiqPS0oIchRGUn+YnSTCQptsWASE/E3VwiSqcOVOqYBgtVST778zXWtkRPsTTSqwlTUoZk0YsWx0ZUCNKRKmXpGpQ8cpTTXKgg7NoWrc1r9yFGRccg8DeSJdlDsHqiZa1vwCTyIZH5ua8ggLN4uM++sLFIw5c8SLnAv9aqPKD73NEskLE7HwRUDUlH1fyXqxDc6lfza6jO9frfNwadQlg8mcWJcMuBAsDim7jaSZNlEVvslGz9+R7ByHJ+o9an86ox2EwkJbTl0LkqH7B64p29CeX0e6sdg4j4qBEYBca0Ty+ti9B+H+wqOplg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from BYAPR12MB2743.namprd12.prod.outlook.com (2603:10b6:a03:61::28) by DS0PR12MB6656.namprd12.prod.outlook.com (2603:10b6:8:d2::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.41; Fri, 19 Apr 2024 01:17:55 +0000 Received: from BYAPR12MB2743.namprd12.prod.outlook.com ([fe80::3ec0:1215:f4ed:9535]) by BYAPR12MB2743.namprd12.prod.outlook.com ([fe80::3ec0:1215:f4ed:9535%4]) with mapi id 15.20.7452.049; Fri, 19 Apr 2024 01:17:55 +0000 From: Rahul Rameshbabu To: netdev@vger.kernel.org, stable@vger.kernel.org Cc: Jakub Kicinski , Eric Dumazet , "David S. Miller" , Paolo Abeni , Gal Pressman , Tariq Toukan , Sabrina Dubroca , Yossi Kuperman , Benjamin Poirier , Cosmin Ratiu , Rahul Rameshbabu Subject: [PATCH net-next 3/3] net/mlx5e: Advertise mlx5 ethernet driver updates sk_buff md_dst for MACsec Date: Thu, 18 Apr 2024 18:17:17 -0700 Message-ID: <20240419011740.333714-4-rrameshbabu@nvidia.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20240419011740.333714-1-rrameshbabu@nvidia.com> References: <20240419011740.333714-1-rrameshbabu@nvidia.com> X-ClientProxiedBy: BYAPR08CA0061.namprd08.prod.outlook.com (2603:10b6:a03:117::38) To BYAPR12MB2743.namprd12.prod.outlook.com (2603:10b6:a03:61::28) Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BYAPR12MB2743:EE_|DS0PR12MB6656:EE_ X-MS-Office365-Filtering-Correlation-Id: 29f1a788-b84f-4626-b228-08dc600e8ac2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: dOrrNCCxsFCheHzWX9s+q6NPa8Lp6Eixn+3HUJHI+U/OT+u+r9pVTZZTET1c6vGDZEMJkjKlj8vZZ7Enf8YAVpng9ku8KQz+ma8GJCrwc571bWc9bOzZ06p60PsE6oHBM6uiCnuyQNYbuKR0Nar4BlYPgcbfJm2NjK9vUMtNc28PkMUF1MaY1/ZFdLiMUqFQFsG17BgWoleoDo15zuUQfPPudNbQ2gFKTo3qjEKnGz/YGOz0mta5SJMlAP25BSrz0KuNb7w/aHnxfk0CcyjnuvODCY3pzaQ75Bf0578xGS2HqL6YpGKe9LTCy73EdBPu4FhRrgopjWbVsF7YQWc1v7LOQEr46G84Sck43h9WlFvLY3enOOvl20+w+877Qw8a9QMixAEEZKkJASFYuq3se8I6X4ikN6q8hh8ZrDZl0ce0nJA8keViAXjCJA96rGmE6EXAU5hLwXMYBoHmou8MOzGjqh00LktnDR52/B12vIksgI8E17zLNdPegdV46EA+Yblfwv2I7LsDZOSeuO+NeC6tKRHXy9pUK3z4i2wzKZ+ubW2KevyJeUrb9c3HJBebmPwAPW4qxf7QtbTiLfYYcrtrreMmi7e7ffL5F3xROyzOkE9cNRNqJ5Jta03uNetRAxRbUI6igFKpFr0gqAI99EFLeTJHib63AIunXxCxbnSIKMDP9WzueXuZ23Rxo8yqxYvw8nkymTW0Ezj7ql9ZdJUi3hkmct7KYDOwYE04xfl5lLT5PCcUA2PpEL9FIU1MkFX2Qn0LdenGLTRjqa7ap7orRXjgu8XC3GveADhwTzeCXjbejh0JmQmQl+WZgJ9t6pZZYCkXBKHiy1x7pfqX/VN7gCrBXGp6vca6jkiDCrPNhKPUhhK478s/AwaqTFhDAAB9ejPV6x0dPmsnpzk9ofNFKteFnNW8+oRzSp/UkII5FMU+rN6HwGuKxJDM/+xrw3/rvMKaocjoSs8fOB4nMOERXSjbdYC8eWgCJAd/n+umfX8O7yhw96QGTb9ogxuVtpbULK7zu19MrPWqA473kzDMUfI9MHwurZAs5gDl1XoQNt/KkZ3NOKzkSoRK4hOGm77u5im8/jutC8ezEU+DbZuMDrR7fMMRdrLB4KZVnZnUmoq3jwRz13kIFWwQiRftuPqvjNXXsFmnUL57W7kJb7ncfrlvyU2kBjQb3Peb06JAGzPy7ln/Yr6OFsnjLZB4jncyeKK6pXgCuEuG1Wuz76JHwJNEmarrtDGqF1KuTuVv52beNKyUZ60dOf0cjB6LZFUmJ64mK1HvfzOkQCk2kw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR12MB2743.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(1800799015)(366007);DIR:OUT;SFP:1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Pryte74R235SVFvZHAuRC7IVLuybox2gGsJSvs4sysAFeQbdeoKBomP5kDlgCtzgN8oVvqp2BySKs5oSx8CuklyVoCqjE78z/LPYijllVFwADkWcOBXNzn5AnmbdS2UORLF0m1Yiuh+8yhJyMTNmfW9w3CY3skodtovyN5nElQlAOAvC9iNQA6QFMQ0Ycc26vCDznHZt9EnmsnjiXhDBpWYHKcEgYL50aJ9oHV2rMf5RkTNc6jBVAASoG0eUR8BNhrt6BFTBeSc0jVIj1a6lLiH9yY+PhXlvBkikcjmWZBXj/16ZqSnSNpv5K70Bte2/Fj/gghb98J/p3S2Coim0CCOwpUXRS833z+zkC92WzSh3gKi6MgZ2rJwA+BQMNki7IyfomstYaomzmJo56Q0q4S4/ZYhAzp5ZC+ut8C04U7CnaF4ynfRM366lsz9aisC5BUhfuLT5Q7EN75bBTim759MIPG9tErmWOWDpd9sLoB69KT8RVAHA0sY/irGGhEAZ65jOIJcIy2gMWn+O1AVoUozc7JuWnSXytQuhXs0dkBNd+yqu9FmHH5ywSK57J2ptrd5QF2P0nRaEFgondVJrzdeBaZphiQ== X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 29f1a788-b84f-4626-b228-08dc600e8ac2 X-MS-Exchange-CrossTenant-AuthSource: BYAPR12MB2743.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Apr 2024 01:17:55.4665 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: FctHSoftRy8oITPdjCghCmaxINbHVoJUuKHVILdG5XgHiGywzTmPaWTcuBPelpK9gfAtIa/pr3IGi4WiBof+tw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR12MB6656 X-Patchwork-Delegate: kuba@kernel.org mlx5 Rx flow steering and CQE handling enable the driver to be able to update an skb's md_dst attribute as MACsec when MACsec traffic arrives when a device is configured for offloading. Advertise this to the core stack to take advantage of this capability. Cc: stable@vger.kernel.org Signed-off-by: Rahul Rameshbabu Reviewed-by: Benjamin Poirier Reviewed-by: Cosmin Ratiu --- drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c b/drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c index b2cabd6ab86c..cc9bcc420032 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c @@ -1640,6 +1640,7 @@ static const struct macsec_ops macsec_offload_ops = { .mdo_add_secy = mlx5e_macsec_add_secy, .mdo_upd_secy = mlx5e_macsec_upd_secy, .mdo_del_secy = mlx5e_macsec_del_secy, + .rx_uses_md_dst = true, }; bool mlx5e_macsec_handle_tx_skb(struct mlx5e_macsec *macsec, struct sk_buff *skb)