From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-it0-f52.google.com (mail-it0-f52.google.com [209.85.214.52]) by dpdk.org (Postfix) with ESMTP id DEA44FABC for ; Mon, 19 Dec 2016 22:59:55 +0100 (CET) Received: by mail-it0-f52.google.com with SMTP id c20so22512998itb.0 for ; Mon, 19 Dec 2016 13:59:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=A9bV4gicMHNB6VqzjVYRu2W5USKfk4ax2s2+TSGVq7w=; b=RP27emzVZcTBw5HhEF4ASQ4ivo1bZZyVWzbPP2UF4RZwpWqnOq/WHwIUE6I9k/NNiX n8gRwI4zA1Sf9WFiYcsMSp3lUqs8FmV8UmGSV2ZZcKoVvErlSO3dW9jlLd/fMEZ4T3bf 1kxRT7sMQWwnOlXZ8BMgA8TK7E94oWcZ7IKj8HfdDQAWh7jFKtQquRVLBSz9v7/DfR39 BENxK4tnR0+LiPWPEk/4UTRthTwlLjSWwuOiCOIyZPMkICQsxqxxZx93gxCPB2LsWery wb2BWtMXkPiH7Jn6c3AbqZ/EJtGPaFD9yYF9SYF+fQaSYI5GsXvnutK3PyoytpyvCZ2h phiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=A9bV4gicMHNB6VqzjVYRu2W5USKfk4ax2s2+TSGVq7w=; b=fm0XdctS2ZJyliXHutZpY6VE30h2Plgrd1CkPkHX37oHIsREd6OCPMC5vCG4+Y3NhV /HSpIyV5GP/eVh/YwhK2OqdvOasAQDtcWwvfYrXTLgbT/MnyAnaYR8mK6lXH5rZluBgQ Ajb65y6wprnX2RM7uRVigAinUxsYDM70hHaYucpce5LYtDMBTyoR2Fi8pX+/KnY4fDGj +/Cr1trl5xUZbmGdW/EN5tbCGhTcDUBqrWdUnfMJgIp5fmzqE1oqM5voKfz4w70w6Gks Zyi/4DWbDbCftyzGhIpXurkQf3Cy6a8sY7deri+XLLVA7IIZx2hcAJXQedUVxhp00kwq Prbw== X-Gm-Message-State: AKaTC03+PrDVeG8Okpq+heVo9jAuLNPDtYXGqVHsk0ZWIMsOBBS9bAhHW9owuKD0xfUSyg== X-Received: by 10.36.13.82 with SMTP id 79mr18507394itx.66.1482184794957; Mon, 19 Dec 2016 13:59:54 -0800 (PST) Received: from xeon-e3.wavecable.com (204-195-18-65.wavecable.com. [204.195.18.65]) by smtp.gmail.com with ESMTPSA id p20sm8270581itc.2.2016.12.19.13.59.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Dec 2016 13:59:54 -0800 (PST) From: Stephen Hemminger X-Google-Original-From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Mon, 19 Dec 2016 13:59:33 -0800 Message-Id: <20161219215944.17226-3-sthemmin@microsoft.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20161219215944.17226-1-sthemmin@microsoft.com> References: <20161219215944.17226-1-sthemmin@microsoft.com> Subject: [dpdk-dev] [PATCH 02/13] rte_device: make driver pointer const 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: Mon, 19 Dec 2016 21:59:56 -0000 The info in rte_device about driver is immutable and shouldn't change. --- lib/librte_eal/common/include/rte_dev.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_eal/common/include/rte_dev.h b/lib/librte_eal/common/include/rte_dev.h index 8840380d..e5471a22 100644 --- a/lib/librte_eal/common/include/rte_dev.h +++ b/lib/librte_eal/common/include/rte_dev.h @@ -122,7 +122,7 @@ struct rte_driver; */ struct rte_device { TAILQ_ENTRY(rte_device) next; /**< Next device */ - struct rte_driver *driver; /**< Associated driver */ + const struct rte_driver *driver;/**< Associated driver */ int numa_node; /**< NUMA node connection */ struct rte_devargs *devargs; /**< Device user arguments */ }; -- 2.11.0