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 063F0129E89; Tue, 30 Apr 2024 10:57:39 +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=1714474660; cv=none; b=DuXbAFBNPemorE/nhY8sB6KRRmNnHJAqnkMocJs7RfRR5wH50DpPHz3Nx/HEaXnwkyI9Rd/OZCNZc5bILib+E4YGXCp3CpgrfV17XvG93JNh6YaSNrmQHmRLU+y9Jm50fMKE+c0iLVmX6+1G9MExZsA4hdEL/+3ZAG60q88KFCg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714474660; c=relaxed/simple; bh=VT6fUH+BQLW/P6aF0aZYJzJlmuX09tKV9N+LOr/EhQA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=S5uF4QTzLTCREY8Ye1UVJFUt1VCjSriea+KMcDreKrRhGpjgenIiKEPNZmWcfkk9k0J7+C47IQPIDAA0DlvHTJ79aebIt5xVH2ZwnO5gplKW0APFC2raZWmfrCXlq1gtmoHY0X0TXfwGygQCOuY9YRkOrxD3ymDqx1lDntFnqNM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=AYWIAKDR; 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="AYWIAKDR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3BCECC4AF18; Tue, 30 Apr 2024 10:57:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714474659; bh=VT6fUH+BQLW/P6aF0aZYJzJlmuX09tKV9N+LOr/EhQA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AYWIAKDRRs6bmu5MeVPUdHt5lDc5V+qNhpQ3JkCA7CRzg7tSbaztQtG5vbXNZjsPv zPw/cLbj1dnd8YNsr19cFbUMk/ux/udhL0sjMckwyD0Zk0tZLrlGTBWwv5Hyq8yTaS fTU+iIoAUOj40Y0ieajX7Jgp4X1dp+3f5GNdpON8= 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.8 185/228] net/mlx5e: Advertise mlx5 ethernet driver updates sk_buff md_dst for MACsec Date: Tue, 30 Apr 2024 12:39:23 +0200 Message-ID: <20240430103109.141807309@linuxfoundation.org> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240430103103.806426847@linuxfoundation.org> References: <20240430103103.806426847@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.8-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)