From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f68.google.com (mail-wm0-f68.google.com [74.125.82.68]) by dpdk.org (Postfix) with ESMTP id 0B4602C5E for ; Fri, 23 Dec 2016 16:58:31 +0100 (CET) Received: by mail-wm0-f68.google.com with SMTP id m203so42198922wma.3 for ; Fri, 23 Dec 2016 07:58:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=W3vhK0CuZgDa41k65E/YbcQe6OvcrsilWQ9iaeXgUSk=; b=ZcK+3ReVXnRzwR2WzblB4gbmLVqB6MbDuRMGgf/NteQm+XkLzaAe55DArarI+aCdnx kBJ6ReNyrkwiswRTxkjLMnUr8Gfy2FIGoFEmg0qe0rrPSVqi6IDTlZAikP+OtdPKClBf y9ARyfs8BuOM4BQetOqqEp4JCOd+UtGk5v0HqP1Yl1yoXhtzBb0DUy4F4rvHx+CMa2L4 8iIU1ycpbwbKl8rJHs6T9QTc8VgIenQ7UaHcu2B9qaS6Bp7Z6UUi/6QybJX6xjiNL4NR zQcs6WVPpAFMjWpBNcK0YvEAVwEWTkHxvYon1pBxxgbeq5y8TJxB6ARx4bWiEOtz6SUQ IpMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:in-reply-to:references; bh=W3vhK0CuZgDa41k65E/YbcQe6OvcrsilWQ9iaeXgUSk=; b=NJsfn/GsaA5mlNZIKk2IY6zjtNMXqcY4ZARGZYm5jswyTqZAurLhoBGVRBXhddpuSd LK1Njb2nDDzQ/6BQBLc/RSHUpBjVvOFPLGZQzokQyPH1UVYpsbTOLNIFT9wRV7V2jupz vMI2ChEqvr7qZ9032Fqrq1mUTEJDYFq0BM8dj6bWkZoatvVssjKJbD/N9EF9ozF/dkYG v86FERgGDjpiBqAto7p2FHI1mKaGf8+OEhusz65gJY3ZOvSnc+Km75A8GBaxHpe0q5Dz 3VP1J1olpxPhFr3Eyrd3Hsl4k5Rm7h/uRLA6xAKQUG9vp1fCILDfuxN+HzJJxSN4+Lh+ GDUg== X-Gm-Message-State: AIkVDXLCSN0aLial6CHvnH75kzg6ZI8Ksqp9DNNoFs9akG5XiKFt7ESTbzpFsgkpWlkbqg== X-Received: by 10.28.9.131 with SMTP id 125mr15995853wmj.22.1482508711577; Fri, 23 Dec 2016 07:58:31 -0800 (PST) Received: from weierstrass.local.net ([91.200.109.169]) by smtp.gmail.com with ESMTPSA id jm6sm41027072wjb.27.2016.12.23.07.58.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Dec 2016 07:58:30 -0800 (PST) Sender: Jan Blunck From: Jan Blunck To: dev@dpdk.org Cc: Stephen Hemminger , shreyansh.jain@nxp.com, david.marchand@6wind.com Date: Fri, 23 Dec 2016 16:57:54 +0100 Message-Id: <1482508691-11408-4-git-send-email-jblunck@infradead.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1482508691-11408-1-git-send-email-jblunck@infradead.org> References: <1482508691-11408-1-git-send-email-jblunck@infradead.org> In-Reply-To: <1482332986-7599-1-git-send-email-jblunck@infradead.org> References: <1482332986-7599-1-git-send-email-jblunck@infradead.org> Subject: [dpdk-dev] [PATCH v5 03/20] 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: Fri, 23 Dec 2016 15:58:32 -0000 From: Stephen Hemminger The info in rte_device about driver is immutable and shouldn't change. Acked-by: Jan Blunck Acked-by: Shreyansh Jain --- 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 1708244..b17791f 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.7.4