From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f173.google.com (mail-pf0-f173.google.com [209.85.192.173]) by dpdk.org (Postfix) with ESMTP id 52A122E41 for ; Mon, 21 Mar 2016 18:53:17 +0100 (CET) Received: by mail-pf0-f173.google.com with SMTP id 4so142010348pfd.0 for ; Mon, 21 Mar 2016 10:53:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=sL3FN68+ATa/lz0vq2OMc0+KHhAEuO64xB+/lN1obyo=; b=2K5nyH2rpVGet1kGD3RyO8IcfGi/fLVTpt3VsMiyC3CBcnNwATJyZEOwb7FGBnR9dm x67fuYcyDLIPj2uGwleEm/z3RI5p0nwCu9ntAWsRfl2/PYwx7ejnVmdVEFZnFSuu58qz nQkB9wKAdZgTcH3g76dxGXrjP467uQdhSsZ3V1GzoBxN7Ln7HiB+1SadDpLWadCY9PSk cX+cJ/ySo8rq3a6tdHkNRHZmrcUfPagbF9TNEDWOpo68FvIj0pjgqXD8xr9gqmu4HJHA AzkaYKKlTzLTBKiSvJ0OMwS18fgLvVVAOnLoNNBHEAp5d8Hp0p3ZfnX7f3A6rEIsmgaK k8wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=sL3FN68+ATa/lz0vq2OMc0+KHhAEuO64xB+/lN1obyo=; b=lNOlmY8zPwv4Oy0JGGD4t4vHPJblUy8RilfaxYe8nzhD/1mDbyfaPX/sA5+0WNMr7h SXYv6g4zQEPmK6+v+w5TutRFXduDm32itZXbc80iMq5ej7xni9gUbykOpdDh5VXmFCJ8 YXB9jP+4pGCNZiWAyN0U2ElGKaiLruUASEW4LUyPOkB8VoCEEFUNdNhdNr+XM2I8OTLh ljSm+oC4yiIwrbbZ6ejtt3xUcrRHF0IUCCIazg8XA8LZZQPm/HqdktbYkMWcE/5Qlqef shgHsAz0r+kQWuEkCB8X4ihK83N3TMDWHOGYWLx6i2Pd0xz7dYOzdV0q4GeEiTBhWFvR 0WuQ== X-Gm-Message-State: AD7BkJKEzjlfKbEWi5nOWLPn/1VlkmRlPxt8e0oRZ9wsTcQs9R7yDo9j1SGMTwNOAEFECg== X-Received: by 10.66.235.9 with SMTP id ui9mr47244817pac.135.1458582796629; Mon, 21 Mar 2016 10:53:16 -0700 (PDT) Received: from xeon-e3.home.lan (static-50-53-65-230.bvtn.or.frontiernet.net. [50.53.65.230]) by smtp.gmail.com with ESMTPSA id h2sm42201898pfd.91.2016.03.21.10.53.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 21 Mar 2016 10:53:16 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Mon, 21 Mar 2016 10:53:26 -0700 Message-Id: <1458582809-19628-4-git-send-email-stephen@networkplumber.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1458582809-19628-1-git-send-email-stephen@networkplumber.org> References: <1458582809-19628-1-git-send-email-stephen@networkplumber.org> Subject: [dpdk-dev] [PATCH 3/6] bnx2x: make eth_dev_ops const X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Mar 2016 17:53:17 -0000 Signed-off-by: Stephen Hemminger --- drivers/net/bnx2x/bnx2x_ethdev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/bnx2x/bnx2x_ethdev.c b/drivers/net/bnx2x/bnx2x_ethdev.c index fe8cfd0..7e5be08 100644 --- a/drivers/net/bnx2x/bnx2x_ethdev.c +++ b/drivers/net/bnx2x/bnx2x_ethdev.c @@ -348,7 +348,7 @@ bnx2x_mac_addr_remove(struct rte_eth_dev *dev, uint32_t index) sc->mac_ops.mac_addr_remove(dev, index); } -static struct eth_dev_ops bnx2x_eth_dev_ops = { +static const struct eth_dev_ops bnx2x_eth_dev_ops = { .dev_configure = bnx2x_dev_configure, .dev_start = bnx2x_dev_start, .dev_stop = bnx2x_dev_stop, @@ -371,7 +371,7 @@ static struct eth_dev_ops bnx2x_eth_dev_ops = { /* * dev_ops for virtual function */ -static struct eth_dev_ops bnx2xvf_eth_dev_ops = { +static const struct eth_dev_ops bnx2xvf_eth_dev_ops = { .dev_configure = bnx2x_dev_configure, .dev_start = bnx2x_dev_start, .dev_stop = bnx2x_dev_stop, -- 2.1.4