From nobody Mon Feb 9 22:03:43 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) client-ip=63.128.21.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 63.128.21.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=1615401095; cv=none; d=zohomail.com; s=zohoarc; b=NJbXTjnmi9K1oxPUwEI6/rqtMOUtdFbmYpbNxyf1Q49t/4qUa+9nrf0KC6/kzRz5ThEclkcW0Tb8lPkQ4VOt0ml9Tu2exmRxMr5SqmgVWYaoWZ8K6J2sRHt83qtKNyildqujgpoeQepBrijHX9K4UANm/Vz6A6cD+nCjXmUH1X4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1615401095; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=ipgg6mN4Nj5/k/GECTeOGbUIwyHhVgdcMcgTAKQ9hjM=; b=SCAo7DKnH5MNEKIOGg8zObtzjGZQpnUNyQNIAQUF6XQPyZNt4s7o64lv/pFhLOe2oVytJ4Uclekwu0xBcjWN21E5Iwl+/Pe1PoN6hf8cRHRGbn5EEODXars5UX1d2NUQbjWnvU7gRycOzCzjybwqOIhyMOscZgTB+BrtE6lz1GQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.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 [63.128.21.124]) by mx.zohomail.com with SMTPS id 1615401095882453.3194269541682; Wed, 10 Mar 2021 10:31:35 -0800 (PST) Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-246-tjLmZW1LMKmcFx920GeRlQ-1; Wed, 10 Mar 2021 13:31:32 -0500 Received: by mail-ed1-f70.google.com with SMTP id u1so8800449edt.4 for ; Wed, 10 Mar 2021 10:31:32 -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 br13sm129461ejb.87.2021.03.10.10.31.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Mar 2021 10:31:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1615401094; 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=ipgg6mN4Nj5/k/GECTeOGbUIwyHhVgdcMcgTAKQ9hjM=; b=cjWusd2rJdqvxoF2SLeS8K3CDkyOd/laQNN+TEXrz1wruNHJ2A397ACOcXP4AtyGDdkjIV IfApQ27x0MQzJnDGIRL3waDFDsPJKUjUGNqmtALvdTJjuogeVnyWl1ws99hSheNG1L13vl 9B5Wnou9+L0EhG5WM2jA9QoB8LAnhSs= X-MC-Unique: tjLmZW1LMKmcFx920GeRlQ-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=ipgg6mN4Nj5/k/GECTeOGbUIwyHhVgdcMcgTAKQ9hjM=; b=Lad7VpCpV77mT4pGr5Lie2P1RrmGAgrWd6nmhHKe2cIX83y3XCsTKsJDid5dkKi0UP Rf9UaMO35v5KJSVOOEYvd3VjRrOom42Ave08C7HyAgYRrXqMEULeqI+DdUlkR7FFUqCm VRFYbl3zjRmj/KHOwtFSCjA2dtf1AxLtSb2FQRvWz1tsa73tZzo2AB3hdwRFQtWDy29M S3QBoidu7quUmoyco7Ftm7UCz1iLhddbmw58YUrsrjEpzR4C9c36eaAKpweF/7rfKpwh x43+JIp84SkrLlv6jGZIqnRZTd35EFvsPUCIwp9LbOXOtIu0c1Au+QjLWCgONZgPo4W/ vRuA== X-Gm-Message-State: AOAM531nqJsSdVP0F4asyIuf683I4g6BAc2DGXs9kbmLUAB7QH9xmPMe A2yKsxw071KGcG2CSqcbc4aVAZHlNgEK1Uf1vNU8BUjsSBD8AbMJ2R2hy0XMAQK0AnXcYoFSj5K 0nYuAA5aKgUb8nQ== X-Received: by 2002:a17:906:82c5:: with SMTP id a5mr5236348ejy.232.1615401091550; Wed, 10 Mar 2021 10:31:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJwZori+yBg4baXM9CgHd+nY+QgzxVd74b302zxJ8PmITHPDL2a80GeRY9tCjeTM/QUNhkfHcw== X-Received: by 2002:a17:906:82c5:: with SMTP id a5mr5236328ejy.232.1615401091321; Wed, 10 Mar 2021 10:31:31 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Jason Wang , Stefano Garzarella , Thomas Huth , Miroslav Rezanina , Dmitry Fleytman , Paolo Bonzini , Laurent Vivier , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , qemu-stable@nongnu.org Subject: [PATCH v6 1/7] net/eth: Use correct in6_address offset in _eth_get_rss_ex_dst_addr() Date: Wed, 10 Mar 2021 19:31:17 +0100 Message-Id: <20210310183123.1212612-2-philmd@redhat.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210310183123.1212612-1-philmd@redhat.com> References: <20210310183123.1212612-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) The in6_address comes after the ip6_ext_hdr_routing header, not after the ip6_ext_hdr one. Fix the offset. Cc: qemu-stable@nongnu.org Reported-by: Stefano Garzarella Fixes: eb700029c78 ("net_pkt: Extend packet abstraction as required by e100= 0e functionality") Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Stefano Garzarella --- net/eth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/eth.c b/net/eth.c index 1e0821c5f81..ef1b5136f1c 100644 --- a/net/eth.c +++ b/net/eth.c @@ -419,7 +419,7 @@ _eth_get_rss_ex_dst_addr(const struct iovec *pkt, int p= kt_frags, } =20 bytes_read =3D iov_to_buf(pkt, pkt_frags, - rthdr_offset + sizeof(*ext_hdr), + rthdr_offset + sizeof(*rthdr), dst_addr, sizeof(*dst_addr)); =20 return bytes_read =3D=3D sizeof(*dst_addr); --=20 2.26.2