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 50E6A10CAD for ; Wed, 21 Dec 2016 16:10:04 +0100 (CET) Received: by mail-wj0-f193.google.com with SMTP id xy5so32459481wjc.1 for ; Wed, 21 Dec 2016 07:10:04 -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; bh=svbq+LX398oAak18hK+/x2yjRIQJ2jMG6BUYSMKeU54=; b=GBmz+bIlondKUyut7FUUmFkDGq/7ZnFS7qs79zzD978fBllSAYwY2XjV3AICszkd/b a+UFrcEmITFpTKbNs0NIyW2p9fvwHZhysWKp8VODEDq+4/mfvOnhfakzL7Lk/UftlpFv LVrO9TEaR5eu4ICtJutqEA4f9D0l9VEF8EoSKTwKvoE9prPVfiZBPa1Z0os27O8p0vDj T+Mfb7IDWHgT6Qt6vfjTaLZtTHcf5PEOvgVuKKIGDc5F7Z4kLXW1563k2Zte1y8gDlBD 3Ut2HshHkMPqaAjHfdSRYdNW7wqaxUeSPmWRFBmfl+upFBV3EXIWspxCHZxPUOdywaJh 3D/A== 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; bh=svbq+LX398oAak18hK+/x2yjRIQJ2jMG6BUYSMKeU54=; b=t5otCRss3N7vvFRNp1ijhn5l1KMxP66GmTzs9eDhwVOgpqG2hNw+tqaMiKuAU2Jg2Z 8nqcu9xFw60krDi6NSBFYyrowNbvaZzSuOcl/lFUTWwgONxxFJXkW9tQyhDqAqOzQlxP 6cCOeW6v2j1D5OpLkEJL7Hl6z+U4GbWIkcb06Fn03gNogKtHt2hgWuv6QRrOzB9YiFzm 7OLD09EKx/0B64gXqXk1gtRu3mXZDdtPUYZPb9oEft/I2wb129ZungUy66SF8TwBNyp6 mCsqiO9z7iZQlDoDmXXI6r02e0JdaU3A1ADrkPE866l3wWahQ+ou14igkTHwm39l7aSO Vx1w== X-Gm-Message-State: AIkVDXLz9jXX8mwqS2SFHwBv8zXMeU98967YVLDuqdTNQq/GklRPo024HegbV3nTicEjOw== X-Received: by 10.194.246.69 with SMTP id xu5mr4904807wjc.85.1482333004046; Wed, 21 Dec 2016 07:10:04 -0800 (PST) Received: from weierstrass.local.net ([91.200.109.169]) by smtp.gmail.com with ESMTPSA id 135sm27627375wmh.14.2016.12.21.07.10.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Dec 2016 07:10:03 -0800 (PST) Sender: Jan Blunck From: Jan Blunck To: dev@dpdk.org Cc: Stephen Hemminger , shreyansh.jain@nxp.com, david.marchand@6wind.com Date: Wed, 21 Dec 2016 16:09:26 +0100 Message-Id: <1482332986-7599-4-git-send-email-jblunck@infradead.org> X-Mailer: git-send-email 2.7.4 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 v4 03/23] 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: Wed, 21 Dec 2016 15:10:04 -0000 From: Stephen Hemminger The info in rte_device about driver is immutable and shouldn't change. Acked-by: Jan Blunck Acked-by: Jan Blunck --- 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 8840380..e5471a2 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