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 DEA2C427E4 for ; Mon, 20 Mar 2023 18:03:18 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D9E46427E9; Mon, 20 Mar 2023 18:03:18 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 63253427E9 for ; Mon, 20 Mar 2023 18:03:16 +0100 (CET) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 32KFcNsA013431 for ; Mon, 20 Mar 2023 10:03:15 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=lp1kGZYwfB41EYcbdDBDD+tf23+4AQ+QVqgQl+9GhwI=; b=kqVVqkI0W5p1LU8MBgxHPb2WgW2RfOrHzVAHMrb+pt5JD58JqUlli4h9U/l+QzomGyeB RbH3bE+iVDD1d9u7/NNTdWULxLijv56Us9Rs/3AQG7TXzzCX4sRR+771aDyy12P/8LzF 7vD+bwTAIWQsNQv5d/LX/lpjVJRDpqYdsvT80b2cg4ic163BpvivQf666dKNWtBHwwAH Y+0Y4jvvK8yakHHnrk/wkmfj6zgLzkEC7fMOoVZilWfaVFdH+QlYfLSmW9Bt1UAV7YXG QBKx0Uec1LS9BLsAvV2LvZ51cKV1U05rwJ0ejVDZ79OnlwTptrEIAmkbaz4ovvmtKSxe EA== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3pen9j1m2w-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Mon, 20 Mar 2023 10:03:15 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Mon, 20 Mar 2023 10:03:13 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.42 via Frontend Transport; Mon, 20 Mar 2023 10:03:13 -0700 Received: from localhost.localdomain (unknown [10.28.34.38]) by maili.marvell.com (Postfix) with ESMTP id C46153F7043; Mon, 20 Mar 2023 10:03:10 -0700 (PDT) From: Gowrishankar Muthukrishnan To: CC: , , , "Akhil Goyal" , Gowrishankar Muthukrishnan Subject: [PATCH 21.11] common/cnxk: fix auth key length Date: Mon, 20 Mar 2023 22:33:05 +0530 Message-ID: <20230320170305.167316-1-gmuthukrishn@marvell.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: j8OtbNikg9SXmQvInBdNg6CniYZlC9hX X-Proofpoint-GUID: j8OtbNikg9SXmQvInBdNg6CniYZlC9hX X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-03-20_14,2023-03-20_02,2023-02-09_01 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org [ upstream commit 0fcaf90fe25ecaa002d765fa9759e554500e3f76 ] Auth key length is stored as 8 bit value in SE context. It should be larger enough to accommodate supported auth key length of 1024 bytes maximum, as in HMAC. Fixes: a45859312ff ("common/cnxk: add SE definitions for symmetric crypto") Signed-off-by: Gowrishankar Muthukrishnan --- drivers/common/cnxk/roc_se.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/common/cnxk/roc_se.h b/drivers/common/cnxk/roc_se.h index 500f94ac11..fbe4e3e856 100644 --- a/drivers/common/cnxk/roc_se.h +++ b/drivers/common/cnxk/roc_se.h @@ -280,7 +280,7 @@ struct roc_se_ctx { uint64_t enc_cipher : 8; uint64_t hash_type : 8; uint64_t mac_len : 8; - uint64_t auth_key_len : 8; + uint64_t auth_key_len : 16; uint64_t fc_type : 4; uint64_t hmac : 1; uint64_t zsk_flags : 3; -- 2.25.1