From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <ferruh.yigit@intel.com>
Received: from mga11.intel.com (mga11.intel.com [192.55.52.93])
 by dpdk.org (Postfix) with ESMTP id 04B7EDE3
 for <dev@dpdk.org>; Mon, 16 Jan 2017 14:27:44 +0100 (CET)
Received: from fmsmga006.fm.intel.com ([10.253.24.20])
 by fmsmga102.fm.intel.com with ESMTP; 16 Jan 2017 05:27:44 -0800
X-ExtLoop1: 1
X-IronPort-AV: E=Sophos;i="5.33,239,1477983600"; d="scan'208";a="54439225"
Received: from sivswdev02.ir.intel.com ([10.237.217.46])
 by fmsmga006.fm.intel.com with ESMTP; 16 Jan 2017 05:27:43 -0800
From: Ferruh Yigit <ferruh.yigit@intel.com>
To: dev@dpdk.org,
	Stephen Hemminger <stephen@networkplumber.org>
Cc: Stephen Hurd <stephen.hurd@broadcom.com>;
 Ajit Khaparde <ajit.khaparde@broadcom.com>,
 Jan Medala <jan@semihalf.com>; Jakub Palider <jpa@semihalf.com>;
 Netanel Belgazal <netanel@amazon.com>; Evgeny Schemeilin <evgenys@amazon.com>,
 Ferruh Yigit <ferruh.yigit@intel.com>
Date: Mon, 16 Jan 2017 13:27:39 +0000
Message-Id: <20170116132739.30872-2-ferruh.yigit@intel.com>
X-Mailer: git-send-email 2.8.4
In-Reply-To: <20170116132739.30872-1-ferruh.yigit@intel.com>
References: <20170112191212.22710-1-stephen@networkplumber.org>
 <20170116132739.30872-1-ferruh.yigit@intel.com>
Subject: [dpdk-dev] [PATCH] net/ena: make eth dev ops struct const
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <http://dpdk.org/ml/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://dpdk.org/ml/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <http://dpdk.org/ml/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
X-List-Received-Date: Mon, 16 Jan 2017 13:27:45 -0000

Reported-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
---
 drivers/net/ena/ena_ethdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ena/ena_ethdev.c b/drivers/net/ena/ena_ethdev.c
index b9d0e8a..8497cd7 100644
--- a/drivers/net/ena/ena_ethdev.c
+++ b/drivers/net/ena/ena_ethdev.c
@@ -227,7 +227,7 @@ static int ena_rss_reta_query(struct rte_eth_dev *dev,
 			      uint16_t reta_size);
 static int ena_get_sset_count(struct rte_eth_dev *dev, int sset);
 
-static struct eth_dev_ops ena_dev_ops = {
+static const struct eth_dev_ops ena_dev_ops = {
 	.dev_configure        = ena_dev_configure,
 	.dev_infos_get        = ena_infos_get,
 	.rx_queue_setup       = ena_rx_queue_setup,
-- 
2.9.3