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 E0BFCA0548; Fri, 10 Sep 2021 04:38:26 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 426794113B; Fri, 10 Sep 2021 04:38:16 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id 707C84113B for ; Fri, 10 Sep 2021 04:38:15 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10102"; a="243292327" X-IronPort-AV: E=Sophos;i="5.85,282,1624345200"; d="scan'208";a="243292327" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Sep 2021 19:38:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,282,1624345200"; d="scan'208";a="540096636" Received: from npg-dpdk-virtio-xiachenbo-nw.sh.intel.com ([10.67.119.53]) by FMSMGA003.fm.intel.com with ESMTP; 09 Sep 2021 19:38:14 -0700 From: Chenbo Xia To: dev@dpdk.org Cc: Ferruh Yigit Date: Fri, 10 Sep 2021 10:24:01 +0800 Message-Id: <20210910022402.26620-8-chenbo.xia@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210910022402.26620-1-chenbo.xia@intel.com> References: <20210910022402.26620-1-chenbo.xia@intel.com> Subject: [dpdk-dev] [PATCH 7/8] 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