Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp11828rdb; Wed, 31 Jan 2024 21:43:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IEO8Ykpce8SiinD2v+qHpTeSqKGjlnsAXW72qNpm+3icUHQHvUBxqo6Q0SL8rYIeCsoGrCs X-Received: by 2002:a17:902:bcc5:b0:1d6:fe15:b588 with SMTP id o5-20020a170902bcc500b001d6fe15b588mr3435506pls.64.1706766196670; Wed, 31 Jan 2024 21:43:16 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706766196; cv=pass; d=google.com; s=arc-20160816; b=FtOhyub8SlNNnVhx+D1hHkbMowhj3H+pNK90UJZomSEpa6OfY1qdYxh3HtF/ZtXBII nAXBE3ax+8DxQMm+y3itHwlBQU1D0BqdXTQwqbJ8riCP01X42SnIzaha6kk8lV4tETb7 tCpm+jMglr4Q8pSByqIVrHo9BrxCWmYTBBC0VpAQdLOZXbJonOZERUb8FTwRJnGlCOeU soK9vIwOMNvbuXcgHQdcAh/r9/q2OWKipcfSVSGLW41uv9HJ8oUTPgJf05keYfnhj/MU Zp80C7J2563KxXClZnNqXEqDM/NBugCM/iwX/HNrQbtPQ42RQTqyK3Dll56JiPeIJwLz qwxw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=FbYPWBWSx4JTQEcSOXlxcmIuQLcFq8DTiKoSLKe1dkw=; fh=k+YTJwnmwLnjqmkyWBvbi7uJUVeSC4x5OrG0MWvRbaI=; b=MQ2/37LBYDYgFOh+4gk4BGcVrUSMWEEUJAgOEMJJzUKn6AnztLTTftIy1a6IlVTxEK A5T4WYJL/piF7AkCHLCInsHynzsIiMWNQ2kBBT1XINZtVO+1WBX0FbLdpgAoSBt0e3ua xooZsuqOv0qv9UUJWZaFSLb6veEsmoTXyS90pGyz/5wCyUz95EBqPrGlchLGqcjSX5sG z08A7bvsBnk+HP7gjHqdT67bmIuMtC61lLK/5sWmmaClE1LdcuPWWN0QXrlihQG0lKKm SZArF0f4SlrQ2egzHnndxu9soBwmn+3qlAg9u3Ch+gQ79Pc+/q6ybDkdSW9q7SYshXGN yqKg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=J3rPQN3Q; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-47655-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47655-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com X-Forwarded-Encrypted: i=1; AJvYcCWM7YiSdOhTbMJ20YCQLPBZsGyFWL+/LqHj/t+x9b1BMtxbuusnw3/ea5s8/47OFJs7zTcB/lv9IgXVrsr2L9NUlP6h7W1874FXf9hU2Q== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id p17-20020a170902e75100b001d5b6eee7ebsi6773695plf.152.2024.01.31.21.43.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 21:43:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-47655-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=J3rPQN3Q; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-47655-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47655-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 31C91B25DB1 for ; Thu, 1 Feb 2024 05:38:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 64BAD5F861; Thu, 1 Feb 2024 05:38:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="J3rPQN3Q" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2B2ED1A290 for ; Thu, 1 Feb 2024 05:37:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706765879; cv=none; b=HuO0+9QCzhaeYWOzFJag4Tjj7rSXO+iBGULR+N0/nT93CxasgLaDa/WR/jeeiWV9jOhLJTwp8DRErRRjlt2RksarrXXCRsUAvQHY7UHkRxe6jF+gOGBOUJhXDSfBvsCvP5mlsAa/fDOULA3SYUQRj5in/QAj42HuD0tqA8q1A4E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706765879; c=relaxed/simple; bh=FbYPWBWSx4JTQEcSOXlxcmIuQLcFq8DTiKoSLKe1dkw=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=SJ0DugFvXSj/niVSj+pcM+L+p69u9990FwB5lAp/ganwJklgCMO//P6k+dkqGDLLImcJjhUpBwqR8N7y5XnhkovwlGyhikFAFBe28/xT9OGOWeG+IyDR6okjZks54XNeoEALYnqkIwL4m5JNZomGSkezw/rph1hGvUlFEn4aQvE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=J3rPQN3Q; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1706765876; 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=FbYPWBWSx4JTQEcSOXlxcmIuQLcFq8DTiKoSLKe1dkw=; b=J3rPQN3Q3kxUoHn63DHiKD7gKFgtKyoMuiUNxcgOc1WMQYetofi9hm8aFCmnFq1ADIkEZB iCYWg5xvxrq7ZQ2s1ks/U6WQr+5UCOuDWkgYAESOtcYC2XgMv4jBuQjAUFPvoLJKg/q0OP 7m4VANIro0a+LZRiePsf8D0Cxt+4tRU= Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-531-1cmB_qgwNP2HQEvFsjN0oQ-1; Thu, 01 Feb 2024 00:37:54 -0500 X-MC-Unique: 1cmB_qgwNP2HQEvFsjN0oQ-1 Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-292bc8b6b7cso501966a91.2 for ; Wed, 31 Jan 2024 21:37:54 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706765874; x=1707370674; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FbYPWBWSx4JTQEcSOXlxcmIuQLcFq8DTiKoSLKe1dkw=; b=xQooyExaro2mFbs7X7Dd7WTAYEyxHZPYmra+AMYhZUJgGcwdyEh1tnO1gclywfvTTb nFGqTXDSy07uwcp23o5XccimkT8NSvfUefdbZmA4WOPDFTJLXLr6In4gXJuwF7NW5pyK SbO0KwLQ8TDNz7/LMkr1c6k2XiorOVZdWtUQCk312FnEqj91YrKdbSbdigkSNZVRmRwE cYrs9YcltMhVPK7mWceBgqaHusONu15Qd/iRIP7RUaQdQk/4cex5d+8nRZP7Gii7ISrp rdT5RcqioMRm9wYQdzWvn9QsvxfwGvbVswZRjHxUELf8GAfMZ6371d+hbtGdoi56QQ7i 8pLg== X-Gm-Message-State: AOJu0YwcmlGOgSP1cFSIhT8nEZy3Zpr8Feqy40H9J0ZpGZuZiWUEK9Kh BzetR9p4orZ+ML6x48vyb74fJ7RGeGxAAh3CsDxuQToQh7dwvyM8e7kNi3YtnzHWsCGd6qVsY1E 0j47ISMJdFlxFIiTr8QzHe+sjUasfqxiLpIQfbpVJb+z9p8virKTzcUMZecfAx4elPgRFX9mGJh DlGkTj/8j/ZflJpzBI4ju4G5YAmNpnLdmGi9i9 X-Received: by 2002:a17:90a:1189:b0:295:cca3:73d4 with SMTP id e9-20020a17090a118900b00295cca373d4mr3873879pja.4.1706765873817; Wed, 31 Jan 2024 21:37:53 -0800 (PST) X-Received: by 2002:a17:90a:1189:b0:295:cca3:73d4 with SMTP id e9-20020a17090a118900b00295cca373d4mr3873869pja.4.1706765873535; Wed, 31 Jan 2024 21:37:53 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240131035535.22258-1-liangchen.linux@gmail.com> In-Reply-To: <20240131035535.22258-1-liangchen.linux@gmail.com> From: Jason Wang Date: Thu, 1 Feb 2024 13:37:42 +0800 Message-ID: Subject: Re: [PATCH v4] virtio_net: Support RX hash XDP hint To: Liang Chen Cc: mst@redhat.com, hengqi@linux.alibaba.com, xuanzhuo@linux.alibaba.com, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Jan 31, 2024 at 11:55=E2=80=AFAM Liang Chen wrote: > > The RSS hash report is a feature that's part of the virtio specification. > Currently, virtio backends like qemu, vdpa (mlx5), and potentially vhost > (still a work in progress as per [1]) support this feature. While the > capability to obtain the RSS hash has been enabled in the normal path, > it's currently missing in the XDP path. Therefore, we are introducing > XDP hints through kfuncs to allow XDP programs to access the RSS hash. > > 1. > https://lore.kernel.org/all/20231015141644.260646-1-akihiko.odaki@daynix.= com/#r > > Signed-off-by: Liang Chen > Reviewed-by: Xuan Zhuo Acked-by: Jason Wang Thanks