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 9E71DA0C47; Sat, 18 Sep 2021 04:39:38 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7108C410EF; Sat, 18 Sep 2021 04:39:24 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id ACA3A4111B for ; Sat, 18 Sep 2021 04:39:20 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10110"; a="222563612" X-IronPort-AV: E=Sophos;i="5.85,303,1624345200"; d="scan'208";a="222563612" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Sep 2021 19:39:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,303,1624345200"; d="scan'208";a="546751666" Received: from npg-dpdk-virtio-xiachenbo-nw.sh.intel.com ([10.67.119.53]) by FMSMGA003.fm.intel.com with ESMTP; 17 Sep 2021 19:39:19 -0700 From: Chenbo Xia To: dev@dpdk.org, david.marchand@redhat.com Cc: Ferruh Yigit Date: Sat, 18 Sep 2021 10:24:42 +0800 Message-Id: <20210918022443.12719-7-chenbo.xia@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210918022443.12719-1-chenbo.xia@intel.com> References: <20210910022402.26620-1-chenbo.xia@intel.com> <20210918022443.12719-1-chenbo.xia@intel.com> Subject: [dpdk-dev] [PATCH v2 6/7] kni: replace unused variable definition with reserved bytes X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" PCI ID and address in structure rte_kni_conf are never used. And in order not to break ABI, replace these variables with reserved bytes. Signed-off-by: Chenbo Xia --- lib/kni/rte_kni.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/kni/rte_kni.h b/lib/kni/rte_kni.h index b0eaf46104..2281abbf6a 100644 --- a/lib/kni/rte_kni.h +++ b/lib/kni/rte_kni.h @@ -17,7 +17,6 @@ * and burst transmit packets to KNI interfaces. */ -#include #include #include #include @@ -66,8 +65,7 @@ struct rte_kni_conf { uint32_t core_id; /* Core ID to bind kernel thread on */ uint16_t group_id; /* Group ID */ unsigned mbuf_size; /* mbuf size */ - struct rte_pci_addr addr; /* depreciated */ - struct rte_pci_id id; /* depreciated */ + uint8_t rsvd[20]; __extension__ uint8_t force_bind : 1; /* Flag to bind kernel thread */ -- 2.17.1