From nobody Wed Nov 19 08:46:08 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1615392139; cv=none; d=zohomail.com; s=zohoarc; b=kjiYkDQGtjW3wHMMAM64x6dI/1Z6D40MSUwNBOOfuwralXJ4bWkS0dfuiBVtXcZzChPlq2kBFyIIGEQTSXDKpP2al7nvyELzp4OAOxdB52puDFDX/R7uXfD39cZqEJKBJFe5Zztma5yQoexAvfpbwfP04ZbF6lVoZzTeOTIeNfE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1615392139; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=B3xaH0TWbEO7Mh01q5cRC27I0HaUzq5ELvE0IDN8LPc=; b=I13SpSpGbbsSK5P0rhH/M5eVJhAjTtsP9MQIYfUQy3y0dIgn0pa5mdYNXEnGu5FNt6IYayO7R6w3jYWD42yv3oDjm7QyQZYFySRCh33SQ2H9/SIEIqqdg5FfNZ/2zi7uLuS+0wj78SGMJXKJISpvjX6b4rUuF08UBet3mWzJN8U= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1615392139024325.74188253045816; Wed, 10 Mar 2021 08:02:19 -0800 (PST) Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-553-NO2S_9cWMs-fj1fk9WKiMA-1; Wed, 10 Mar 2021 11:02:15 -0500 Received: by mail-ej1-f69.google.com with SMTP id n25so7422092ejd.5 for ; Wed, 10 Mar 2021 08:02:04 -0800 (PST) Return-Path: Return-Path: Received: from x1w.redhat.com (68.red-83-57-175.dynamicip.rima-tde.net. [83.57.175.68]) by smtp.gmail.com with ESMTPSA id e26sm11940282edj.29.2021.03.10.08.01.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Mar 2021 08:01:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1615392137; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=B3xaH0TWbEO7Mh01q5cRC27I0HaUzq5ELvE0IDN8LPc=; b=VcUI3X8fmtyOMyxrxKR33BsIlR2aoM6pSzV9YrRncXL5lmgJacj6LoHFwFeOPbz/Uo/up7 CZyQNjnvvzP1U7XB++oNXKRdpmOWj1f6HEoQ/TX7FKOREDj++pnOcIiNH4CbMVdCAv9hbA 6QE1iCO9bZETiAaQD9tNA2aRmCH5Px8= X-MC-Unique: NO2S_9cWMs-fj1fk9WKiMA-1 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=B3xaH0TWbEO7Mh01q5cRC27I0HaUzq5ELvE0IDN8LPc=; b=rdO4pFRCf6PTgaszWWiFDvdP1EIq4SoB8C8BHDcn6j7QXZYOyAkhZpbzGZu+tNjsXm 3w6OKIUiLujrepdMG6UHH0giEOAW/eKBSVQ5sFb0xNhmB7CSBJZvkq4W+W07VFngZ0gz Nf0AGLk/GNNSvyYuKJoyZ6crzBlZGeDFTP1781ACn++naOkQ8V+iW7W5lHokpcdKH1Vd zfYoMETR5Vc2aqY4wxTDQY6ZH2ltId4OL6/3O/UeDxXn2rbtCjR+vBuVxVjdOPfpz1H5 tl6AVlBOfQslaOUjbUgtnFDx6hFHN/gRCpAH+KnbH3KVQHtuTDqvgO25VrZJ7/8kxY+g isTg== X-Gm-Message-State: AOAM531K/k+VlEWjTte7Lh5fx1IYDy73O6eUjHQW+V5uy0uHbaz5GhGx weiL3+sW0kXRCvr598BHE5t8j2okv88l1vbTSu8FcgihtazRM1fkPo3NDb8nz4yAc1GvajviOrx M2o/xFZLsrAolVg== X-Received: by 2002:a17:906:684b:: with SMTP id a11mr4252465ejs.329.1615392118260; Wed, 10 Mar 2021 08:01:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJya64dRK5SMgu8YnTkmqmESDBriI7BUsWzsvLm+e3mD1nvxOWGHfnNrQ5WFAKM3XvdVx4ATgA== X-Received: by 2002:a17:906:684b:: with SMTP id a11mr4252033ejs.329.1615392114018; Wed, 10 Mar 2021 08:01:54 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Stefano Garzarella , Dmitry Fleytman , Paolo Bonzini , Miroslav Rezanina , Jason Wang , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH v5 3/7] net/eth: Make ip6_ext_hdr *ext_hdr pointer to const Date: Wed, 10 Mar 2021 17:01:31 +0100 Message-Id: <20210310160135.1148272-4-philmd@redhat.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210310160135.1148272-1-philmd@redhat.com> References: <20210310160135.1148272-1-philmd@redhat.com> MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) As the callee doesn't need to modify the ext_hdr buffer, mark it const. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- net/eth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/eth.c b/net/eth.c index 6a5a1d04e0b..7c47a267a7a 100644 --- a/net/eth.c +++ b/net/eth.c @@ -402,7 +402,7 @@ eth_is_ip6_extension_header_type(uint8_t hdr_type) static bool _eth_get_rss_ex_dst_addr(const struct iovec *pkt, int pkt_frags, size_t ext_hdr_offset, - struct ip6_ext_hdr *ext_hdr, + const struct ip6_ext_hdr *ext_hdr, struct in6_address *dst_addr) { struct ip6_ext_hdr_routing *rthdr =3D (struct ip6_ext_hdr_routing *) e= xt_hdr; --=20 2.26.2