From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 54072A04C2; Fri, 15 Nov 2019 01:03:07 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8B45A2BAF; Fri, 15 Nov 2019 01:03:06 +0100 (CET) Received: from mail-pf1-f194.google.com (mail-pf1-f194.google.com [209.85.210.194]) by dpdk.org (Postfix) with ESMTP id B31CB2B86 for ; Fri, 15 Nov 2019 01:03:04 +0100 (CET) Received: by mail-pf1-f194.google.com with SMTP id s5so5375793pfh.9 for ; Thu, 14 Nov 2019 16:03:04 -0800 (PST) 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:mime-version :content-transfer-encoding; bh=G1TgmwV2MpRbWX4+ZGPdXqfMZpE8AZqjKpXJ5PLmuvc=; b=BQDgvNF8VPsPiFEsoWJ/JxCEM6ni52RncYyaBdYLObqafTd0QsQVeR0H0HKt+WxvdK J/XFwcJ0kDost+LdXUWKVCElP1TZr7IrO4MTEtTN+vhSsZt1vA+I0Cz1nFOK36rGSJ9f HgKaIbTwtC3gUMW8xXAlF7YN4ld24JDlvoUS8Anj3qdDJ4uMV8Ohk5VLnnZ3MfjcKvla //wm1LrvMPAYPWfrRvBmvoJBiGbwxNToGQupjFtIeCA3MziTHIL7KX6naWSd7/7MEw9A mld+lEbPBCSHoF9tewtcwOTC0iBfT0Qwb3x3P8BLAV0QzsjhP8lkdwv4TWfeeian/ilY FxiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=G1TgmwV2MpRbWX4+ZGPdXqfMZpE8AZqjKpXJ5PLmuvc=; b=ZyGnF4q4G99Z82jIv+vDtwaEpYl99YcCaroHOFNiTjWmuGc1MccYQQh9LO9gA/HfQK zLOdohBNCN/KPZGh3VjRydGAsdRgIUu/TCMgfe+0kGso7+HphRvZfwNEnsjpKzU9ReXA iCA54OXfCWGWEmm0uk9KRtfnAZqFfgn8dPHBgq/TWw4YzQitgDYiOfO0sBiyfKeZFcdk x7Y4nkIlk5lhzx4jPLqAiFDKfZmroCx6vzIhUdkll1lmdPX0kNyHmBTqp0Le/O4Av+kf P0M8OY+mVJhBGcQY6csjB1cUPfjde4r/gzD1JxhAANg/XxeVsZIX/ojWOQrcHA7MUIEI GkWw== X-Gm-Message-State: APjAAAUsawbtfADV754VKoRYj91p+s6Y27yVfEdYvW2oBS5B2j5DQSAH nUYr7a9uTNMeoNDEOUE0rJ5gWIqpthWHlQ== X-Google-Smtp-Source: APXvYqwp/14Jwy336+lCTNbBTk2sHViY+JxFc7ThjEcpx89ePuFagNZBwNOPYNAU3z8s+Vg+No6jJg== X-Received: by 2002:a17:90b:958:: with SMTP id dw24mr15971749pjb.30.1573776183131; Thu, 14 Nov 2019 16:03:03 -0800 (PST) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id 13sm8087081pgq.72.2019.11.14.16.03.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Nov 2019 16:03:02 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Thu, 14 Nov 2019 16:02:59 -0800 Message-Id: <20191115000259.10930-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] net: constify pointer to ipv6 header X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The function rte_ipv6_get_next_ext does not modify the header that is passed in. Signed-off-by: Stephen Hemminger --- lib/librte_net/rte_ip.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_net/rte_ip.h b/lib/librte_net/rte_ip.h index e3300fd0fe18..1ceb7b79312f 100644 --- a/lib/librte_net/rte_ip.h +++ b/lib/librte_net/rte_ip.h @@ -463,7 +463,7 @@ rte_ipv6_udptcp_cksum(const struct rte_ipv6_hdr *ipv6_hdr, const void *l4_hdr) */ __rte_experimental static inline int -rte_ipv6_get_next_ext(uint8_t *p, int proto, size_t *ext_len) +rte_ipv6_get_next_ext(const uint8_t *p, int proto, size_t *ext_len) { int next_proto; -- 2.20.1