From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f177.google.com (mail-pf0-f177.google.com [209.85.192.177]) by dpdk.org (Postfix) with ESMTP id 21ED3376C for ; Mon, 21 Mar 2016 18:53:19 +0100 (CET) Received: by mail-pf0-f177.google.com with SMTP id u190so274016709pfb.3 for ; Mon, 21 Mar 2016 10:53:19 -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=Uv9spWeFYfBaRXc+sWn28QUqrb93zJ2f3lgOYwt1c4k=; b=kimhNAdkzOJyMPmZ22vP2h2MXJRv0IkHGNZmDcBQ42BsGKCX2RYcgcwBa9PiBzhP9M PcO6EQk6Rxg7+ia8e3KeLF4emS5y8+d9XNx1YamPR0smhUa/Ithe0qg+xavL01qB+IBH 6wapc/xsz3vvqEabPolKIoLwpQu/10UC1gZOHk7MfUvIuVT7RL/sdsXBffKNE+qsp1T0 fKelfbmodVYb7mD0Tu4cKCrNyKILRysAbDaPtWsua/XFOweNG+KmKrZ+2km7KITsl7z6 AGMUNN4/VfdZ98dFELJIAQpV83D7NaGlB4MLKA9mh+cTKHCOCXjH3Ps9BNok15N//20q Fyaw== 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=Uv9spWeFYfBaRXc+sWn28QUqrb93zJ2f3lgOYwt1c4k=; b=a/SQJ5kcBK0+D1KjOvJA1OKmcVIMCVpv9vtcHrcx06PEjuo5pwlQTCvwg8ggcCWRum ER/VnNdMKsAtE4m9+BmcZeNaCSpWnZ2+SmPFjc510Gr/tBIhsSBKFUCR5mHvc2yi1exA NtpigVnXAZ3OT2sE8M4qSgoZcA6HROkFPCNyq5wXnoMMHien/N8F/T/cQr7Bbssr6ESF zzPhNzA3GHUdguK1VthnCeFw7OS8fsALSXZkyBYDX2xHJk6TVFoOPokNOraflKmXouIv GNrHXP04csJR0lQGhpq0dBjbUvJ1HCabhJN7yUV6fM9wX8hUeTD/ifh0lpL/vuNuPOMY FmjQ== X-Gm-Message-State: AD7BkJJNCXg3f6P0F/9fiO6wXRcXOP4pp5WCKHmtCcjj6MXN/RrCX/SllXR1V6B1Re4kiw== X-Received: by 10.66.141.11 with SMTP id rk11mr47735707pab.75.1458582798561; Mon, 21 Mar 2016 10:53:18 -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.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 21 Mar 2016 10:53:17 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Mon, 21 Mar 2016 10:53:28 -0700 Message-Id: <1458582809-19628-6-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 5/6] szedata: 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:19 -0000 All usage of eth_dev_ops should be const. And fix the indentation Signed-off-by: Stephen Hemminger --- drivers/net/szedata2/rte_eth_szedata2.c | 48 ++++++++++++++++----------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/drivers/net/szedata2/rte_eth_szedata2.c b/drivers/net/szedata2/rte_eth_szedata2.c index 81c806e..1d6a600 100644 --- a/drivers/net/szedata2/rte_eth_szedata2.c +++ b/drivers/net/szedata2/rte_eth_szedata2.c @@ -1317,30 +1317,30 @@ eth_allmulticast_disable(struct rte_eth_dev *dev) cgmii_ibuf_mac_mode_write(ibuf, SZEDATA2_MAC_CHMODE_ONLY_VALID); } -static struct eth_dev_ops ops = { - .dev_start = eth_dev_start, - .dev_stop = eth_dev_stop, - .dev_set_link_up = eth_dev_set_link_up, - .dev_set_link_down = eth_dev_set_link_down, - .dev_close = eth_dev_close, - .dev_configure = eth_dev_configure, - .dev_infos_get = eth_dev_info, - .promiscuous_enable = eth_promiscuous_enable, - .promiscuous_disable = eth_promiscuous_disable, - .allmulticast_enable = eth_allmulticast_enable, - .allmulticast_disable = eth_allmulticast_disable, - .rx_queue_start = eth_rx_queue_start, - .rx_queue_stop = eth_rx_queue_stop, - .tx_queue_start = eth_tx_queue_start, - .tx_queue_stop = eth_tx_queue_stop, - .rx_queue_setup = eth_rx_queue_setup, - .tx_queue_setup = eth_tx_queue_setup, - .rx_queue_release = eth_rx_queue_release, - .tx_queue_release = eth_tx_queue_release, - .link_update = eth_link_update, - .stats_get = eth_stats_get, - .stats_reset = eth_stats_reset, - .mac_addr_set = eth_mac_addr_set, +static const struct eth_dev_ops ops = { + .dev_start = eth_dev_start, + .dev_stop = eth_dev_stop, + .dev_set_link_up = eth_dev_set_link_up, + .dev_set_link_down = eth_dev_set_link_down, + .dev_close = eth_dev_close, + .dev_configure = eth_dev_configure, + .dev_infos_get = eth_dev_info, + .promiscuous_enable = eth_promiscuous_enable, + .promiscuous_disable = eth_promiscuous_disable, + .allmulticast_enable = eth_allmulticast_enable, + .allmulticast_disable = eth_allmulticast_disable, + .rx_queue_start = eth_rx_queue_start, + .rx_queue_stop = eth_rx_queue_stop, + .tx_queue_start = eth_tx_queue_start, + .tx_queue_stop = eth_tx_queue_stop, + .rx_queue_setup = eth_rx_queue_setup, + .tx_queue_setup = eth_tx_queue_setup, + .rx_queue_release = eth_rx_queue_release, + .tx_queue_release = eth_tx_queue_release, + .link_update = eth_link_update, + .stats_get = eth_stats_get, + .stats_reset = eth_stats_reset, + .mac_addr_set = eth_mac_addr_set, }; /* -- 2.1.4