From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 2C89512D76F; Tue, 30 Apr 2024 11:15:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714475727; cv=none; b=pziYzRKX6udhCbVWJQHgxpHoCD4SRXSPb3OFEUYzccb3p15tHf0jaRFc9b5BC9ZAFqQ61r48NLP0f3ohlipPy03HbMB3CDvDgF8LmWXK7XcqiyWoBZH/Z8zVrbaYmcepB+xhRgt56ombutsUiaAkWzrkUorSJOorFI74aemTYMs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714475727; c=relaxed/simple; bh=TKx4ABt9G5wDsi2jpP0ZgHBwGlf/9LotGEHr2w19N1g=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=CXbST3k9sjPUipR+WbQsNxys1urorh6OcaifQmAsHwljVSvQ7Pbz/Sh+XlwlfExL9EOwilupnlQRH3aUqRJOe/I8sneprEZHWt9cPteZ7IRdj6IKZRzewv3pKcj9XOamqO1lS3dk01jpmdaaZ0k/Go4mL7wV5k0C4JtyR++g8Wc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=2f4r6I5j; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="2f4r6I5j" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 91F94C2BBFC; Tue, 30 Apr 2024 11:15:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714475727; bh=TKx4ABt9G5wDsi2jpP0ZgHBwGlf/9LotGEHr2w19N1g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2f4r6I5j7L5Nce2B3XPCoa5h+jVZlJcCesu5YpSw4xg8YFlnXDs8xNVd8b5R2wrLw 9eRG6F13qsjWutWYVlzhimRShp6KxAwHt61/cLZQgNlx97fD2u6WxcWMklg/OXE90M kcn0HWiIOIbawcV9qD0cxCTj1G4ho9aS83w4H9Fc= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Rahul Rameshbabu , Benjamin Poirier , Cosmin Ratiu , Sabrina Dubroca , Jakub Kicinski Subject: [PATCH 6.6 185/186] net/mlx5e: Advertise mlx5 ethernet driver updates sk_buff md_dst for MACsec Date: Tue, 30 Apr 2024 12:40:37 +0200 Message-ID: <20240430103103.402032645@linuxfoundation.org> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240430103058.010791820@linuxfoundation.org> References: <20240430103058.010791820@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Rahul Rameshbabu commit 39d26a8f2efcb8b5665fe7d54a7dba306a8f1dff upstream. 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 Fixes: b7c9400cbc48 ("net/mlx5e: Implement MACsec Rx data path using MACsec skb_metadata_dst") Signed-off-by: Rahul Rameshbabu Reviewed-by: Benjamin Poirier Reviewed-by: Cosmin Ratiu Reviewed-by: Sabrina Dubroca Link: https://lore.kernel.org/r/20240423181319.115860-5-rrameshbabu@nvidia.com Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.c | 1 + 1 file changed, 1 insertion(+) --- 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_of .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)