From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wj0-f193.google.com (mail-wj0-f193.google.com [209.85.210.193]) by dpdk.org (Postfix) with ESMTP id 59CACFB5A for ; Tue, 20 Dec 2016 12:14:17 +0100 (CET) Received: by mail-wj0-f193.google.com with SMTP id xy5so27139658wjc.1 for ; Tue, 20 Dec 2016 03:14:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=7mr1Ax2eU0QZlzXR24GKCNRcDIoJtVLiSCPAo+2bci8=; b=r9ts06Yuug8AFV+hzWPd6BHAQqCpErk4WPWmgLd46zY9XCCr4YpgCttM43WJZSksfn L8/S6oK66uhD3MIzDH+vKlF57r1Ywyx8GfljM6VstxCBkiAImIUhlWAJeVmSZYOI/roY 3w759VXyuJwMbHjF6IH9XOEmh/lz9RiGe9u4No9jiCA9e4iqalJIdX1vBmAaNAKjGJA2 n8xwOdV2yhDEtFb4GZivoT2mZyiIbg5eSiMM193ErQEtBd93p9ro+CnxnNnPkuPblPNw 609FzgFhGTvhIkFu3aX25j8nmdzrma9kkMwcOCKvzhltzemtBbEeDUeq8cffaAWvpFZs cifA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=7mr1Ax2eU0QZlzXR24GKCNRcDIoJtVLiSCPAo+2bci8=; b=tkQG1sDLPtNA5vrr94AIMmUYS9I5RYx9yaNWDpvTdlpNlYacBkit5f9aJ3JFFbzRfs sYyur/R/enFk7cu6/BydD2yTDh2z5ipZj4h0Lg7A0q0Joh82XwuKIgjUmBYZRnBXHKLR ciIS8yAOga9DRwWrlVX06g906wXS8TH1oFq67kogsGrzsW7nXjQuR1HFFwp5iZyP6O7q v7dYCiT+omcA5lz1qL751YpfF0y+pfwjRxdSJ3l78qsf3xg3ByV5/hhvB6WqTnJMNHbG fTfO4RLs0GK2lBnAjpk+wJaxo2wsHNbynQ+4snmnfxjvxXitudgXzPhCw6892bdVgENv AMqA== X-Gm-Message-State: AIkVDXICgZLCDNt+DJwFQBOcsBkULWEyxUwpJkujtESPdGsO4kKLHJeegAzWoxWKCQp3551Ppz6+etBiwz9lJQ== X-Received: by 10.195.30.165 with SMTP id kf5mr17703271wjd.41.1482232456943; Tue, 20 Dec 2016 03:14:16 -0800 (PST) MIME-Version: 1.0 Sender: jblunck@gmail.com Received: by 10.28.63.83 with HTTP; Tue, 20 Dec 2016 03:14:16 -0800 (PST) In-Reply-To: <20161219215944.17226-3-sthemmin@microsoft.com> References: <20161219215944.17226-1-sthemmin@microsoft.com> <20161219215944.17226-3-sthemmin@microsoft.com> From: Jan Blunck Date: Tue, 20 Dec 2016 12:14:16 +0100 X-Google-Sender-Auth: u-UPTFEhgnKrEsPE4T-W3k7Kx18 Message-ID: To: Stephen Hemminger Cc: dev@dpdk.org, Stephen Hemminger Content-Type: text/plain; charset=UTF-8 Subject: Re: [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: Tue, 20 Dec 2016 11:14:17 -0000 On Mon, Dec 19, 2016 at 10:59 PM, Stephen Hemminger wrote: > 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 > Acked-by: Jan Blunck