From: Ferruh Yigit Date: Thu, 12 Jan 2017 22:18:55 +0000 (+0000) Subject: net/ena: make ethdev functions struct const X-Git-Tag: spdx-start~4802 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=103ab18c0f1cbdc19483d9d1819e52bc0753eca7;p=dpdk.git net/ena: make ethdev functions struct const Reported-by: Stephen Hemminger Signed-off-by: Ferruh Yigit --- diff --git a/drivers/net/ena/ena_ethdev.c b/drivers/net/ena/ena_ethdev.c index b9d0e8a405..8497cd7a60 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,