From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pd0-f179.google.com (mail-pd0-f179.google.com [209.85.192.179]) by dpdk.org (Postfix) with ESMTP id 66CAB5AA0 for ; Sat, 7 Mar 2015 03:23:34 +0100 (CET) Received: by pdev10 with SMTP id v10so33060732pde.0 for ; Fri, 06 Mar 2015 18:23:33 -0800 (PST) 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=9v+pjbs5GGRRKlFT3wyv3fkLfgGxjH3BbmABB7r7suA=; b=Qo5eDs6hMdG62FeS+Kia350T20SMHn4eXZy5M6cr8PPhAsqWh45K2DL7mfR/oNznvL pQSxR/qqAc9z+SgJ5gU76gCfG4wwdR2iA5/m9y/wXSyf+ODqH6+d6UNpLNMky36r5thz rn9dIQbWcq5GymE0jPsEhI7GCV6lDHr8FWT8QVLmL9Vf3PB97RhtNz7xqrPZlu2D1912 OMi82zkyTFufUJVC5ZwR6BPwV9RHX/kYi1Frow3zKVmPCC7efYO4YlVXGrlyHzItmLP5 lcqfrX3VbWVWNWJ3L+1O51nyScJxlvQOBTvBXFObuilvX+CDrKBVEQ4n3A2i1zvQZ5zI pB8A== X-Gm-Message-State: ALoCoQkDckfxk93pQTzHlKyaTOKDrnJG8BEeNBAh5kb0d20OY92jBEf2VFOTUL8kLnSHv+Q8PE/i X-Received: by 10.69.25.105 with SMTP id ip9mr30317968pbd.5.1425695013023; Fri, 06 Mar 2015 18:23:33 -0800 (PST) Received: from urahara.brocade.com (static-50-53-82-155.bvtn.or.frontiernet.net. [50.53.82.155]) by mx.google.com with ESMTPSA id x4sm10797098pas.40.2015.03.06.18.23.31 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 06 Mar 2015 18:23:31 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Date: Fri, 6 Mar 2015 18:23:21 -0800 Message-Id: <1425695004-29605-3-git-send-email-stephen@networkplumber.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1425695004-29605-1-git-send-email-stephen@networkplumber.org> References: <1425695004-29605-1-git-send-email-stephen@networkplumber.org> Subject: [dpdk-dev] [PATCH 2/5] ixgbe: make register maps 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: Sat, 07 Mar 2015 02:23:34 -0000 These are const data structures, just put them in txt segment rather than having compiler emit code to set them up on the stack. Signed-off-by: Stephen Hemminger --- lib/librte_pmd_ixgbe/ixgbe_rxtx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/librte_pmd_ixgbe/ixgbe_rxtx.c b/lib/librte_pmd_ixgbe/ixgbe_rxtx.c index e6aec8f..8706c1e 100644 --- a/lib/librte_pmd_ixgbe/ixgbe_rxtx.c +++ b/lib/librte_pmd_ixgbe/ixgbe_rxtx.c @@ -860,14 +860,14 @@ rx_desc_hlen_type_rss_to_pkt_flags(uint32_t hl_tp_rs) { uint64_t pkt_flags; - static uint64_t ip_pkt_types_map[16] = { + static const uint64_t ip_pkt_types_map[16] = { 0, PKT_RX_IPV4_HDR, PKT_RX_IPV4_HDR_EXT, PKT_RX_IPV4_HDR_EXT, PKT_RX_IPV6_HDR, 0, 0, 0, PKT_RX_IPV6_HDR_EXT, 0, 0, 0, PKT_RX_IPV6_HDR_EXT, 0, 0, 0, }; - static uint64_t ip_rss_types_map[16] = { + static const uint64_t ip_rss_types_map[16] = { 0, PKT_RX_RSS_HASH, PKT_RX_RSS_HASH, PKT_RX_RSS_HASH, 0, PKT_RX_RSS_HASH, 0, PKT_RX_RSS_HASH, PKT_RX_RSS_HASH, 0, 0, 0, -- 2.1.4