From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id E3B964C8D for ; Fri, 1 Mar 2019 19:42:26 +0100 (CET) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x21IfhZE005529; Fri, 1 Mar 2019 10:42:26 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : content-type : content-transfer-encoding : mime-version; s=pfpt0818; bh=cuSd6CUSv+LueaK0Ml/GMaynjwpCJIv+cEPNtUY7v20=; b=Wj0+VJ1yNlmg1D/9L954PJz65NDDsIs74Y7pOy0oZjR7VqAnwbzwXKByVRH4lnv+Bs/I R/K6bxQfQEB2ijnrImLzFwZKeGu471hofqiZrALVEvGLyNWh+Rh3vGQ4IFzLZioei3sB 1IDJ+0ycLk0kjN6/MbQiFWEXlotl6sEBJa6Q/PgfAz5ir3fcaR3Mt6z0Pf4bfS/kOGWH lTSfzMBhLPM5E8Tzxpmy94mjHJLHgSzjtVA1Ql3g3A+a6QpAdSmml/IQ5YWByzSt5Uj+ NKjIzEcNyiTS2iP40D1KQdl2wA10dcLlkzQDEC0xNxqXrvu6GqjdipUxg29r8s4yQHsa 8w== Received: from sc-exch04.marvell.com ([199.233.58.184]) by mx0a-0016f401.pphosted.com with ESMTP id 2qxprq2vv6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Fri, 01 Mar 2019 10:42:25 -0800 Received: from SC-EXCH04.marvell.com (10.93.176.84) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Fri, 1 Mar 2019 10:42:24 -0800 Received: from NAM05-CO1-obe.outbound.protection.outlook.com (104.47.48.52) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Fri, 1 Mar 2019 10:42:24 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cuSd6CUSv+LueaK0Ml/GMaynjwpCJIv+cEPNtUY7v20=; b=cX69KSWJqxfc0yL9GJiD5VZc0EPKrgC51t3g0Z8SQp7fYBhYN6mfZRPpfIz0lOC5s1uGoN1DUjPb+8mUUU+D+Omj8jzcyDZMkkM32eJhz+2rHflp4y9Cmwo+z7nxiRnTvNr7iJ2dTTlmJmGe1WyitpxW7BQEba6DGXh28px1Gfc= Received: from MN2PR18MB2877.namprd18.prod.outlook.com (20.179.20.218) by MN2PR18MB2605.namprd18.prod.outlook.com (20.179.83.161) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1665.18; Fri, 1 Mar 2019 18:42:20 +0000 Received: from MN2PR18MB2877.namprd18.prod.outlook.com ([fe80::1905:8cf6:f4a1:5d9a]) by MN2PR18MB2877.namprd18.prod.outlook.com ([fe80::1905:8cf6:f4a1:5d9a%4]) with mapi id 15.20.1665.017; Fri, 1 Mar 2019 18:42:20 +0000 From: Anoob Joseph To: Akhil Goyal , Pablo de Lara CC: Anoob Joseph , Jerin Jacob Kollanukkaran , Narayana Prasad Raju Athreya , Suheil Chandran , Ankur Dwivedi , "dev@dpdk.org" Thread-Topic: [PATCH 1/3] common/cpt: improve structures used in datapath Thread-Index: AQHU0F6AY9XlCgc4Z0O+B+gfL0RfgQ== Date: Fri, 1 Mar 2019 18:42:20 +0000 Message-ID: <1551465683-26721-1-git-send-email-anoobj@marvell.com> Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BMXPR01CA0008.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:d::18) To MN2PR18MB2877.namprd18.prod.outlook.com (2603:10b6:208:3b::26) x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.7.4 x-originating-ip: [115.113.156.2] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: b5d696ed-06ef-4888-e413-08d69e75a2c8 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(2017052603328)(7153060)(7193020); SRVR:MN2PR18MB2605; x-ms-traffictypediagnostic: MN2PR18MB2605: x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1; MN2PR18MB2605; 23:lIFVIBpxRN75Q3FDQPEY7wKvnSUD0mY2XqABn5R?= =?iso-8859-1?Q?vVtuL9adpJpHX0aGlRsLYIm3zN+Imy4YtaCdQvT7DyBLKa7RbGQ8YjYVwW?= =?iso-8859-1?Q?+A/pzwN6dAPvpTwuds+v8HJEMPgks7Nup2zGvqQshztqMuN2jEj1yMYkRy?= =?iso-8859-1?Q?ZIKwZMDPzcgMa8/NgMQRa/skX9ByUgbE6cWgQa2TwAUIRAAZfuvB0qqi9F?= =?iso-8859-1?Q?fThB2Cjr0Ve9SeHN4Fng3AVqlINufg38/Lqf2JCGQ74L0rxsrsDwAZ2p8v?= =?iso-8859-1?Q?j7aEwzITqaclJeBcBZIAKw46giJCf8ITy2l9kYlcWSX0j/OKPWaSoUPLgy?= =?iso-8859-1?Q?Jkpk3tkgFbAkW4nQThWThrNcA3uAr0+7JYFWH8u8rXnKYtrIKQ3MVCrO94?= =?iso-8859-1?Q?qNhREcfRwduTr8VnWKDAnf9oZD+23Iu6R3zyIOgzFCvK/qfb8yOc/VpKaR?= =?iso-8859-1?Q?AJllU+MJWzpSlyminJK8Ojy4wU7xMXuz1/zmKARch9EaXTpDwDK45v3J0T?= =?iso-8859-1?Q?JXvosMRtQgvU3rLPkcuzedp/vd5KlmF35ins2+BBljlSXOkAU5TQyJyvm4?= =?iso-8859-1?Q?HTSLYMB53WxBaDqcyAwzn+S8rflFczbxZmsAV017GfJ658w5b14wKe8W0g?= =?iso-8859-1?Q?iRZ4ln+P9Dow+DDUvTC886cxgEar12ObcETa5aeXCyXl9vZi09xdnVAZPk?= =?iso-8859-1?Q?vwIgS5YFjdO0fovfG+uCWA1H6y6iIsGBOruDL09NFJSJmGdJdBae1tWJYB?= =?iso-8859-1?Q?9x2q57Zwtz3bxQUvUvpLW4XRN6+rvzDOPFFTSmzFAz08wBPAOj2r4KUzzD?= =?iso-8859-1?Q?3oZr+nYix+I56xDxlQ0QRvGuFv9L+7zQKGbvFnQiBNBYsplnECDlNuTAC2?= =?iso-8859-1?Q?HEtIWYhm7OR1AtLoKqve+6cFq/dw49hs+Hg+Xyip5EMK09YMZqeVDoYGdZ?= =?iso-8859-1?Q?+1mwiCf7rcnOA78CebNq5PyH8mLhF2USoN7KhIo4ts2bbZq7pO+ISK1zb6?= =?iso-8859-1?Q?tnZCWEA668EAqndzoZBKU6DcRsV9DVWFJi2tZaWs9rGJ4errP2KxlcI43A?= =?iso-8859-1?Q?gmAIRgaW+ueUZS8pdxyQU7ZvHRMgqhtuNGsQXG7MRARii0t6d9oA1iX5wT?= =?iso-8859-1?Q?sSGUwY5JNedm6QUHhuaPADoin6C9fAHqlgiwZfahUWX9W7I/dwCFqzucT1?= =?iso-8859-1?Q?Fk870O29FKFY6KOeFw8yakWHi5p9Sw7FwoQdTos3IbG4drKD2AviPQ=3D?= x-microsoft-antispam-prvs: x-forefront-prvs: 09634B1196 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(136003)(346002)(376002)(39850400004)(396003)(189003)(199004)(6436002)(66066001)(68736007)(71200400001)(25786009)(4326008)(6486002)(50226002)(14454004)(6512007)(5660300002)(36756003)(71190400001)(305945005)(7736002)(53936002)(478600001)(81166006)(8676002)(8936002)(316002)(81156014)(476003)(2616005)(26005)(102836004)(55236004)(106356001)(3846002)(186003)(86362001)(4744005)(6116002)(110136005)(54906003)(99286004)(256004)(14444005)(52116002)(6506007)(105586002)(386003)(486006)(97736004)(2906002); DIR:OUT; SFP:1101; SCL:1; SRVR:MN2PR18MB2605; H:MN2PR18MB2877.namprd18.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: marvell.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: kUdTSxHEVawm4nThHePSOCfx9uHX/Rq6S2+sHL8amcql7i9ZK8eOp1FP+SP0C2ukjs8JiuZOnH+UEFS17DssGlpuzhfWy/nMkMW1ycil0AaUN9SgvfeoWbxY1w0j5awFYtwAKOq8N5ko2kQyPZVaelu5FDWcl8d4tIZlAtgz1lPeQDDKA0fbXiogqX4prDz5PbXbBefXU0bKcmJVWgwDdX1Rf8ZdGE1pAhLuZPWcv6l5UDwGkzu0RdQFQX6yEUdqXCzTVP3x5lo6mozQso14ZC8LBFLcrZJR8n83BJULWMvhhkfq3qoMXjbX07FnH3GtxDvCuUZVyzqP0Pt7ohiFMb9ZG48zUyfP1MkIWmd4M5aOiz64GwzeJBiW/xWKyrNXBE0Y9ErcftDnZqkcOzny5Ct41vhj8tygJrkXuKbVORc= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: b5d696ed-06ef-4888-e413-08d69e75a2c8 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Mar 2019 18:42:20.3844 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR18MB2605 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-03-01_13:, , signatures=0 X-Proofpoint-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=484 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1903010129 Subject: [dpdk-dev] [PATCH 1/3] common/cpt: improve structures used in datapath X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Mar 2019 18:42:27 -0000 Signed-off-by: Ankur Dwivedi Signed-off-by: Anoob Joseph --- drivers/common/cpt/cpt_common.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/common/cpt/cpt_common.h b/drivers/common/cpt/cpt_commo= n.h index 8461cd6..8568d5b 100644 --- a/drivers/common/cpt/cpt_common.h +++ b/drivers/common/cpt/cpt_common.h @@ -60,14 +60,14 @@ struct rid { * */ struct pending_queue { + /** Pending requests count */ + uint64_t pending_count; + /** Array of pending requests */ + struct rid *rid_queue; /** Tail of queue to be used for enqueue */ uint16_t enq_tail; /** Head of queue to be used for dequeue */ uint16_t deq_head; - /** Array of pending requests */ - struct rid *rid_queue; - /** Pending requests count */ - uint64_t pending_count; }; =20 struct cpt_request_info { @@ -86,6 +86,6 @@ struct cpt_request_info { /** Control path fields */ uint64_t time_out; uint8_t extra_time; -}; +} __rte_cache_aligned; =20 #endif /* _CPT_COMMON_H_ */ --=20 2.7.4