From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.9 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 99381C5DF60 for ; Fri, 8 Nov 2019 16:56:59 +0000 (UTC) Received: from dpdk.org (dpdk.org [92.243.14.124]) by mail.kernel.org (Postfix) with ESMTP id 333F220656 for ; Fri, 8 Nov 2019 16:56:59 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=marvell.com header.i=@marvell.com header.b="JGfw+ecj" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 333F220656 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=marvell.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=dev-bounces@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6CAD11C2EF; Fri, 8 Nov 2019 17:56:58 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 26C1C1C2EA for ; Fri, 8 Nov 2019 17:56:57 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id xA8GuGg3014933; Fri, 8 Nov 2019 08:56:56 -0800 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=pfpt0818; bh=zKlbPruqK0L4zY7L5ZUcguEGp8JEnuYV2grkzTe4Mww=; b=JGfw+ecj7Nv2A9jBMFYofIanE2wcx+Q+q16cvdj08xlgZU2xd4WFAMe7nskhAMyrcq99 nX/lN8c6ppR9KIl5QTprJb7vfl57x1Q7nxSaVgNfckBdOsyfAtYiNO5tLk+bPVtMekQH Tgm7OD4Br5FOnRGp6tvXbG+F8DQEXaLIhkrTtNNa7m/WCeCWPK7oKItdki7scHUfq9f8 Z3aT5qcraBY2MwmiNfiOy2X5hOMm/eQM6TUZRLgwb13Urn4QQjFkNi2APRGULPmqg324 sM9urtPebgMJcjzS+/BkhsdEQTTx/R9PfF+m4yYWuKYAfoem0izAzzobXj3HUh26TUIa wQ== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0b-0016f401.pphosted.com with ESMTP id 2w4fq6xwc1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Fri, 08 Nov 2019 08:56:56 -0800 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Fri, 8 Nov 2019 08:56:54 -0800 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Fri, 8 Nov 2019 08:56:54 -0800 Received: from jerin-lab.marvell.com (jerin-lab.marvell.com [10.28.34.14]) by maili.marvell.com (Postfix) with ESMTP id 4FB233F703F; Fri, 8 Nov 2019 08:56:53 -0800 (PST) From: To: , Jerin Jacob CC: Date: Fri, 8 Nov 2019 22:26:03 +0530 Message-ID: <20191108165603.3652-1-jerinj@marvell.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,18.0.572 definitions=2019-11-08_05:2019-11-08,2019-11-08 signatures=0 Subject: [dpdk-dev] [PATCH] eventdev: reserve space in main structs for extension 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Jerin Jacob The struct rte_eventdev and rte_eventdev_data are supposed to be used internally only, but there is a chance that increasing their size would break ABI for some applications. In order to allow smooth addition of features without breaking ABI compatibility, some space is reserved. Signed-off-by: Jerin Jacob --- lib/librte_eventdev/rte_eventdev.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/librte_eventdev/rte_eventdev.h b/lib/librte_eventdev/rte_eventdev.h index ced6f29d9..bc8952576 100644 --- a/lib/librte_eventdev/rte_eventdev.h +++ b/lib/librte_eventdev/rte_eventdev.h @@ -1282,6 +1282,8 @@ struct rte_eventdev_data { char name[RTE_EVENTDEV_NAME_MAX_LEN]; /**< Unique identifier name */ + uint64_t reserved_64s[4]; /**< Reserved for future fields */ + void *reserved_ptrs[4]; /**< Reserved for future fields */ } __rte_cache_aligned; /** @internal The data structure associated with each event device. */ @@ -1314,6 +1316,9 @@ struct rte_eventdev { RTE_STD_C11 uint8_t attached : 1; /**< Flag indicating the device is attached */ + + uint64_t reserved_64s[4]; /**< Reserved for future fields */ + void *reserved_ptrs[4]; /**< Reserved for future fields */ } __rte_cache_aligned; extern struct rte_eventdev *rte_eventdevs; -- 2.23.0